The package rpms/rust-below-btrfs.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/rust-below-btrfs.git/commit/?id=f4cb....
Change: +ExcludeArch: %{ix86}
Thanks.
Full change: ============
commit f4cb7e6cffb813d79f1653e31707c23bb1e42a2d Author: Michel Alexandre Salim salimma@fedoraproject.org Date: Wed Jan 18 15:54:49 2023 -0600
Initial Fedora package
Signed-off-by: Michel Alexandre Salim salimma@fedoraproject.org
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3cc99cf --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/below-btrfs-0.6.3.crate diff --git a/below-btrfs-fix-metadata.diff b/below-btrfs-fix-metadata.diff new file mode 100644 index 0000000..1359a0e --- /dev/null +++ b/below-btrfs-fix-metadata.diff @@ -0,0 +1,11 @@ +--- below-btrfs-0.6.3/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ below-btrfs-0.6.3/Cargo.toml 2023-01-18T20:41:26.477310+00:00 +@@ -31,7 +31,7 @@ + version = "0.2.135" + + [dependencies.nix] +-version = "0.25" ++version = "0.26" + + [dependencies.openat] + version = "0.1.21" diff --git a/rust-below-btrfs.spec b/rust-below-btrfs.spec new file mode 100644 index 0000000..7eb5774 --- /dev/null +++ b/rust-below-btrfs.spec @@ -0,0 +1,76 @@ +# Generated by rust2rpm 23 +%bcond_without check +%global debug_package %{nil} + +%global crate below-btrfs + +Name: rust-below-btrfs +Version: 0.6.3 +Release: %autorelease +Summary: Crate for reading btrfs + +License: Apache-2.0 +URL: https://crates.io/crates/below-btrfs +Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * bump nix from 0.25 to 0.26 +Patch: below-btrfs-fix-metadata.diff + +# bindgen code does not work on i686; +# multiple btrfs_api::open_source::btrfs_sys::bindgen_test_layout_btrfs_ioctl_* test failures +ExcludeArch: %{ix86} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Crate for reading btrfs.} + +%description %{_description} + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel %{_description} + +This package contains library source intended for building other packages which +use the "%{crate}" crate. + +%files devel +%license %{crate_instdir}/LICENSE +%doc %{crate_instdir}/README +%{crate_instdir}/ + +%package -n %{name}+default-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+default-devel %{_description} + +This package contains library source intended for building other packages which +use the "default" feature of the "%{crate}" crate. + +%files -n %{name}+default-devel +%ghost %{crate_instdir}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version_no_tilde} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +# sudotest tests fail on koji +%cargo_test -- -- --skip btrfs_api::sudotest:: +%endif + +%changelog +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..b1e3950 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (below-btrfs-0.6.3.crate) = 7bed00328495b1c0937a55f96466c09d5a5ab5a4a7679a8d75cb4a0d8f4fa8b8e75929fcec0f42b0d3411251d4e7d1ec27773bb4ffbb35a1dc2135fb763a19b8
arch-excludes@lists.fedoraproject.org