public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Filipe Rosset <rosset.filipe@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/ghasher] rawhide: drop ix86 support
Date: Sun, 19 Jul 2026 04:07:49 GMT	[thread overview]
Message-ID: <178443406977.1.15858167970851333505.rpms-ghasher-6d9170154606@fedoraproject.org> (raw)

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

                 reply	other threads:[~2026-07-19  4:07 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178443406977.1.15858167970851333505.rpms-ghasher-6d9170154606@fedoraproject.org \
    --to=rosset.filipe@gmail.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox