public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/ghasher] rawhide: drop ix86 support
@ 2026-07-19  4:07 Filipe Rosset
  0 siblings, 0 replies; only message in thread
From: Filipe Rosset @ 2026-07-19  4:07 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/ghasher
Branch : rawhide
Commit : 6d9170154606c79b27e742148d738aa23e3ecb11
Author : Filipe Rosset <rosset.filipe@gmail.com>
Date   : 2026-07-19T01:06:20-03:00
Stats  : +21/-15 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/ghasher/c/6d9170154606c79b27e742148d738aa23e3ecb11?branch=rawhide

Log:
drop ix86 support

---
diff --git a/ghasher.spec b/ghasher.spec
index fb96510..894b933 100644
--- a/ghasher.spec
+++ b/ghasher.spec
@@ -5,12 +5,16 @@ Summary:        GUI hasher for GTK+ 2
 # Automatically converted from old format: BSD - review is highly recommended.
 License:        LicenseRef-Callaway-BSD
 URL:            http://asgaard.homelinux.org/code/ghasher/
-Source0:        http://asgaard.homelinux.org/code/ghasher/ghasher-%{version}.tar.gz
+Source:         http://asgaard.homelinux.org/code/ghasher/ghasher-%{version}.tar.gz
+ExcludeArch:    %{ix86}
+BuildRequires:  desktop-file-utils
 BuildRequires:  gcc
-BuildRequires:  gtk2-devel >= 2.4 openssl-devel desktop-file-utils libglade2-devel
-BuildRequires: make
-Patch0:         %{name}-format-security.patch
-Patch1:         %{name}-openssl-1.1.0.patch
+BuildRequires:  gtk2-devel >= 2.4
+BuildRequires:  libglade2-devel
+BuildRequires:  make
+BuildRequires:  openssl-devel
+Patch:          %{name}-format-security.patch
+Patch:          %{name}-openssl-1.1.0.patch
 
 %description
 ghasher can easily show the MD5 sum (or md2, md4, sha1, sha, ripemd160, dss1)
@@ -21,33 +25,35 @@ command line for checking the MD5 sum of files they download.
 %autosetup
 
 %build
-%make_build
+%make_build CFLAGS="%{optflags} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE $(pkg-config gtk+-2.0 libglade-2.0 --cflags)" LDFLAGS="%{build_ldflags} $(pkg-config gtk+-2.0 libglade-2.0 --libs) -lcrypto"
 
 %install
-#make_install
-install -D -m 0755 %{name} $RPM_BUILD_ROOT%{_bindir}/%{name}
-install -D -m 0644 hash.xpm $RPM_BUILD_ROOT%{_datadir}/pixmaps/hash.xpm
+install -p -D -m 0755 %{name} %{buildroot}%{_bindir}/%{name}
+install -p -D -m 0644 hash.xpm %{buildroot}%{_datadir}/pixmaps/hash.xpm
+
 cat > %{name}.desktop << EOF
 [Desktop Entry]
-Encoding=UTF-8
 Name=MD5 Sum Utility
 Comment=Calculate the md5 sum of a file
 Exec=ghasher %%F
 Terminal=false
 Type=Application
 Icon=hash
-Categories=Utility;GTK;Application;
+Categories=Utility;GTK;
 EOF
 desktop-file-install \
-  --dir $RPM_BUILD_ROOT%{_datadir}/applications \
+  --dir %{buildroot}%{_datadir}/applications \
   %{name}.desktop
 
+%check
+desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
+
 %files
 %doc AUTHORS NEWS README TODO
 %license LICENSE
-%{_bindir}/*
-%{_datadir}/applications/*%{name}.desktop
-%{_datadir}/pixmaps/*
+%{_bindir}/%{name}
+%{_datadir}/applications/%{name}.desktop
+%{_datadir}/pixmaps/hash.xpm
 
 %changelog
 %autochangelog

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-07-19  4:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-19  4:07 [rpms/ghasher] rawhide: drop ix86 support Filipe Rosset

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox