The package rpms/partclone.git has added or updated architecture specific content in its spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s): https://src.fedoraproject.org/cgit/rpms/partclone.git/commit/?id=25c710229a6....
Change: -%ifarch %{ix86} x86_64
Thanks.
Full change: ============
commit 25c710229a6365afbd50a3e95131c58e6df44811 Author: Robert Scheck robert@fedoraproject.org Date: Mon Dec 25 18:12:07 2023 +0100
Build fail-mbr.bin on all architectures (using cross-compile)
diff --git a/partclone.spec b/partclone.spec index 7a9c1c2..e49bf80 100644 --- a/partclone.spec +++ b/partclone.spec @@ -4,7 +4,7 @@ Summary: Utility to clone and restore a partition Name: partclone Version: 0.3.27 -Release: 1%{?dist} +Release: 2%{?dist} # Partclone itself is GPL-2.0-or-later but uses other source codes, breakdown: # GPL-3.0-or-later: fail-mbr/fail-mbr.S # BSD-2-Clause AND GPL-2.0-only AND GPL-2.0-or-later AND LGPL-3.0-or-later: src/btrfs* @@ -37,6 +37,10 @@ BuildRequires: libmount-devel %if 0%{?fedora} BuildRequires: nilfs-utils-devel %endif +# Building fail-mbr.bin requires a compiler that can build x86 binaries +%ifnarch %{ix86} x86_64 +BuildRequires: gcc-x86_64-linux-gnu +%endif %if 0%{?testsuite} BuildRequires: e2fsprogs BuildRequires: ntfsprogs @@ -71,6 +75,12 @@ libraries, e.g. e2fslibs is used to read and write the ext2 partition. %setup -q autoreconf -i -f
+# Building fail-mbr.bin requires a compiler that can build x86 binaries +%ifnarch %{ix86} x86_64 +sed -e '/^case\s/{N;/.*)/d}' -e '/^\s*;;$/,$d' -e 's/(gcc|obj\S)/x86_64-linux-gnu-\1/g' \ + -i fail-mbr/compile-mbr.sh +%endif + %build # src/progress.c:50: undefined reference to `__fpclassifyf', # reported: https://github.com/Thomas-Tsai/partclone/issues/153 @@ -109,11 +119,6 @@ export LDFLAGS="$RPM_LD_FLAGS $(pkg-config --libs-only-L openssl11)-lm" %install %make_install
-# Building fail-mbr.bin requires a compiler that can build x86 binaries -%ifnarch %{ix86} x86_64 -rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/ -%endif - %find_lang %{name}
%if 0%{?testsuite} @@ -141,12 +146,13 @@ make check || (cat tests/test-suite.log; exit 1) %license COPYING %doc AUTHORS ChangeLog %{_sbindir}/%{name}.* -%ifarch %{ix86} x86_64 %{_datadir}/%{name}/ -%endif %{_mandir}/man8/%{name}*.8*
%changelog +* Mon Dec 25 2023 Robert Scheck robert@fedoraproject.org 0.3.27-2 +- Build fail-mbr.bin on all architectures (using cross-compile) + * Wed Oct 04 2023 Robert Scheck robert@fedoraproject.org 0.3.27-1 - Upgrade to 0.3.27 (#2242163)