The package rpms/rust-below-store.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-store.git/commit/?id=ca61....
Change: +ExclusiveArch: %{rust_arches}
Thanks.
Full change: ============
commit ca61b1c1bb32bd8c63604d7b2101deb4e3ae9d59 Author: Davide Cavalca dcavalca@fedoraproject.org Date: Mon Jun 28 10:41:34 2021 -0700
import #1972916
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0c0c112 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/below-store-0.2.0.crate diff --git a/below-store-fix-metadata.diff b/below-store-fix-metadata.diff new file mode 100644 index 0000000..d78cdbf --- /dev/null +++ b/below-store-fix-metadata.diff @@ -0,0 +1,24 @@ +--- below-store-0.2.0/Cargo.toml 1970-01-01T00:00:00+00:00 ++++ below-store-0.2.0/Cargo.toml 2021-06-16T20:03:02.823899+00:00 +@@ -50,10 +50,10 @@ + package = "below-model" + + [dependencies.nix] +-version = "0.19" ++version = "0.20" + + [dependencies.serde] +-version = "=1.0.118" ++version = "1.0.126" + features = ["derive", "rc"] + + [dependencies.serde_cbor] +@@ -67,7 +67,7 @@ + version = "1.1.0" + + [dependencies.zstd] +-version = "=0.7.0+zstd.1.4.9" ++version = "0.8.0+zstd.1.4.9" + [dev-dependencies.itertools] + version = "0.8" + diff --git a/below-store-fix-tests.patch b/below-store-fix-tests.patch new file mode 100644 index 0000000..f426da4 --- /dev/null +++ b/below-store-fix-tests.patch @@ -0,0 +1,37 @@ +diff -Naur a/src/lib.rs b/src/lib.rs +--- a/src/lib.rs 1969-12-31 16:00:00.000000000 -0800 ++++ b/src/lib.rs 2021-06-16 13:52:56.780375237 -0700 +@@ -731,19 +731,21 @@ + + paste! { + #[test] +- fn [<$name _compressed_thrift>]() { +- $func(true, Format::Thrift); ++ fn [<$name _uncompressed_cbor>]() { ++ $func(false, Format::Cbor); + } + } + + paste! { ++ #[cfg(fbcode_build)] + #[test] +- fn [<$name _uncompressed_cbor>]() { +- $func(false, Format::Cbor); ++ fn [<$name _compressed_thrift>]() { ++ $func(true, Format::Thrift); + } + } + + paste! { ++ #[cfg(fbcode_build)] + #[test] + fn [<$name _uncompressed_thrift>]() { + $func(false, Format::Thrift); +@@ -752,6 +754,7 @@ + }; + } + ++ #[cfg(fbcode_build)] + #[test] + fn writing_to_already_written_index_with_different_compression_format_works() { + let dir = TempDir::new("below_store_test").expect("tempdir failed"); diff --git a/rust-below-store.spec b/rust-below-store.spec new file mode 100644 index 0000000..f203e0b --- /dev/null +++ b/rust-below-store.spec @@ -0,0 +1,78 @@ +# Generated by rust2rpm 17 +%bcond_without check +%global debug_package %{nil} + +%global crate below-store + +Name: rust-%{crate} +Version: 0.2.0 +Release: 1%{?dist} +Summary: Store crate for below + +# Upstream license specification: Apache-2.0 +License: ASL 2.0 +URL: https://crates.io/crates/below-store +Source: %{crates_source} +# Bump serde to 1.0.126, zstd to 0.8.0 and nix to 0.20 +Patch0: below-store-fix-metadata.diff +# Fix broken tests +Patch1: below-store-fix-tests.patch + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Store crate for below.} + +%description %{_description} + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel %{_description} + +This package contains library source intended for building other packages +which use "%{crate}" crate. + +%files devel +%license LICENSE +%{cargo_registry}/%{crate}-%{version_no_tilde}/ + +%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 "default" feature of "%{crate}" crate. + +%files -n %{name}+default-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 +%cargo_test +%endif + +%changelog +* Wed Jun 16 2021 Davide Cavalca dcavalca@fedoraproject.org - 0.2.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..cbdb7c3 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (below-store-0.2.0.crate) = 91b7601920fb0d1496173f2b7e0ded53976c59e2bba0174a1e553640c3236037e9a7fb20257cca0ca0790c8564fc4c9c4ed8d91c515f2e3bc1d8cec9fa4b8f69
arch-excludes@lists.fedoraproject.org