The package rpms/rust-k9.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-k9.git/commit/?id=dcb1bbf6d2b3a....
Change: +ExclusiveArch: %{rust_arches}
Thanks.
Full change: ============
commit dcb1bbf6d2b3a15ff3e332a7d5b57b78b4bfcfb7 Author: Davide Cavalca dcavalca@fedoraproject.org Date: Mon May 10 10:29:21 2021 -0700
import #1958602
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..94855d2 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/k9-0.11.0.crate diff --git a/k9-fix-metadata.diff b/k9-fix-metadata.diff new file mode 100644 index 0000000..dbc600d --- /dev/null +++ b/k9-fix-metadata.diff @@ -0,0 +1,13 @@ +--- k9-0.11.0/Cargo.toml 1970-01-01T00:00:00+00:00 ++++ k9-0.11.0/Cargo.toml 2021-05-09T05:25:55.523203+00:00 +@@ -53,10 +53,6 @@ + [dev-dependencies.derive_builder] + version = "0.9.0" + +-[dev-dependencies.k9_stable] +-version = "0.3.0" +-package = "k9" +- + [dev-dependencies.rand] + version = "0.7.3" + diff --git a/rust-k9.spec b/rust-k9.spec new file mode 100644 index 0000000..224de56 --- /dev/null +++ b/rust-k9.spec @@ -0,0 +1,100 @@ +# Generated by rust2rpm 16 +# Disable tests for now due to a circular dependency on itself +%bcond_with check +%global debug_package %{nil} + +%global crate k9 + +Name: rust-%{crate} +Version: 0.11.0 +Release: 1%{?dist} +Summary: Rust testing library + +# Upstream license specification: MIT +License: MIT +URL: https://crates.io/crates/k9 +Source: %{crates_source} +# Drop circular dependency on itself +Patch0: k9-fix-metadata.diff + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Rust testing library.} + +%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 +%{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 + +%package -n %{name}+custom_comparison_formatters-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+custom_comparison_formatters-devel %{_description} + +This package contains library source intended for building other packages +which use "custom_comparison_formatters" feature of "%{crate}" crate. + +%files -n %{name}+custom_comparison_formatters-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+regex-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+regex-devel %{_description} + +This package contains library source intended for building other packages +which use "regex" feature of "%{crate}" crate. + +%files -n %{name}+regex-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 +* Sat May 08 22:25:55 PDT 2021 Davide Cavalca dcavalca@fedoraproject.org - 0.11.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..578e91d --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (k9-0.11.0.crate) = fe6b00b2833aafa628d1210f642ec530c4768316893ba1bbbdda0a2bd43f0a54bd36df7620dbf05059eeec86d302c063aac0ab87f9159a3dba2bb661a6158757
arch-excludes@lists.fedoraproject.org