From 28b45e2a7913408cc5dbea12548f9ffff1e12c8f Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Wed, 18 Dec 2024 11:39:17 +0100 Subject: [PATCH 1/4] Use /usr/sbin directory --- fxload.spec | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/fxload.spec b/fxload.spec index 81529b1..9c750c3 100644 --- a/fxload.spec +++ b/fxload.spec @@ -1,6 +1,6 @@ Name: fxload Version: 2008_10_13 -Release: 28%{?dist} +Release: 29%{?dist} Summary: A helper program to download firmware into FX and FX2 EZ-USB devices License: GPL-2.0-or-later @@ -36,18 +36,21 @@ appears on the bus. %{make_build} CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_LD_FLAGS -pie" %install -mkdir -p -m 755 %{buildroot}/sbin -install -m 755 fxload %{buildroot}/sbin +mkdir -p -m 755 %{buildroot}/usr/sbin +install -m 755 fxload %{buildroot}/usr/sbin mkdir -p -m 755 %{buildroot}/%{_mandir}/man8/ install -m 644 fxload.8 %{buildroot}/%{_mandir}/man8/ %files %doc COPYING %doc README.txt -%attr(0755, root, root) /sbin/fxload +%attr(0755, root, root) /usr/sbin/fxload %{_mandir}/*/* %changelog +* Wed Dec 18 2024 Jaroslav Kysela - 2008_10_13-29 +- use /usr/sbin directory + * Wed Jul 17 2024 Fedora Release Engineering - 2008_10_13-28 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild From 37f46a5adadb082a1157110147b08467a11cee78 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 16 Jan 2025 19:04:04 +0000 Subject: [PATCH 2/4] Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild --- fxload.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fxload.spec b/fxload.spec index 9c750c3..1ed28ad 100644 --- a/fxload.spec +++ b/fxload.spec @@ -1,6 +1,6 @@ Name: fxload Version: 2008_10_13 -Release: 29%{?dist} +Release: 30%{?dist} Summary: A helper program to download firmware into FX and FX2 EZ-USB devices License: GPL-2.0-or-later @@ -48,6 +48,9 @@ install -m 644 fxload.8 %{buildroot}/%{_mandir}/man8/ %{_mandir}/*/* %changelog +* Thu Jan 16 2025 Fedora Release Engineering - 2008_10_13-30 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + * Wed Dec 18 2024 Jaroslav Kysela - 2008_10_13-29 - use /usr/sbin directory From 755823fbb197945a44c18271022786d5a6cf9d08 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 23 Jul 2025 20:54:42 +0000 Subject: [PATCH 3/4] Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild --- fxload.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fxload.spec b/fxload.spec index 1ed28ad..adcf594 100644 --- a/fxload.spec +++ b/fxload.spec @@ -1,6 +1,6 @@ Name: fxload Version: 2008_10_13 -Release: 30%{?dist} +Release: 31%{?dist} Summary: A helper program to download firmware into FX and FX2 EZ-USB devices License: GPL-2.0-or-later @@ -48,6 +48,9 @@ install -m 644 fxload.8 %{buildroot}/%{_mandir}/man8/ %{_mandir}/*/* %changelog +* Wed Jul 23 2025 Fedora Release Engineering - 2008_10_13-31 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + * Thu Jan 16 2025 Fedora Release Engineering - 2008_10_13-30 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild From 65b17bc69e976afbf7d088774ed51d3ae3f44f22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Wed, 22 Oct 2025 09:20:00 +0200 Subject: [PATCH 4/4] Use %_sbindir for the binary This effectively moves the binary to /usr/bin/ on any recent Fedora system. --- fxload.spec | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/fxload.spec b/fxload.spec index adcf594..2ecae3f 100644 --- a/fxload.spec +++ b/fxload.spec @@ -1,6 +1,6 @@ Name: fxload Version: 2008_10_13 -Release: 31%{?dist} +Release: 33%{?dist} Summary: A helper program to download firmware into FX and FX2 EZ-USB devices License: GPL-2.0-or-later @@ -21,33 +21,34 @@ BuildRequires: gcc kernel-headers make Requires: udev Conflicts: hotplug-gtk hotplug -%description +%description This program is conveniently able to download firmware into FX and FX2 EZ-USB devices, as well as the original AnchorChips EZ-USB. It is intended to be invoked by udev scripts when the unprogrammed device appears on the bus. %prep -%setup -q +%setup -q %patch -P0 -p1 -b .fxload-noa3load %patch -P1 -p1 -b .ldflags -%build +%build %{make_build} CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_LD_FLAGS -pie" %install -mkdir -p -m 755 %{buildroot}/usr/sbin -install -m 755 fxload %{buildroot}/usr/sbin -mkdir -p -m 755 %{buildroot}/%{_mandir}/man8/ -install -m 644 fxload.8 %{buildroot}/%{_mandir}/man8/ +install -m 755 -Dt %{buildroot}%{_sbindir}/ fxload +install -m 644 -Dt %{buildroot}%{_mandir}/man8/ fxload.8 %files %doc COPYING %doc README.txt -%attr(0755, root, root) /usr/sbin/fxload -%{_mandir}/*/* +%{_sbindir}/fxload +%{_mandir}/man8/fxload.8* %changelog +* Wed Oct 22 2025 Zbigniew Jędrzejewski-Szmek - 2008_10_13-33 +- Use %%_sbindir for the binary (rhbz#2405414) + * Wed Jul 23 2025 Fedora Release Engineering - 2008_10_13-31 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild