The package rpms/rust-cap.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-cap.git/commit/?id=b84d3e523958....
Change: +ExclusiveArch: %{rust_arches}
Thanks.
Full change: ============
commit b84d3e523958acfa83086a94939b114778bf1949 Author: Davide Cavalca dcavalca@fedoraproject.org Date: Wed Aug 10 20:59:30 2022 -0700
Initial import; Fixes: RHBZ#2105887
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2bcece7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/cap-0.1.0.crate diff --git a/cap-fix-metadata.diff b/cap-fix-metadata.diff new file mode 100644 index 0000000..682cf40 --- /dev/null +++ b/cap-fix-metadata.diff @@ -0,0 +1,15 @@ +--- cap-0.1.0/Cargo.toml 1970-01-01T00:00:00+00:00 ++++ cap-0.1.0/Cargo.toml 2022-08-11T04:00:33.541323+00:00 +@@ -23,11 +23,11 @@ + categories = [] + license = "MIT OR Apache-2.0" + repository = "https://github.com/alecmocatta/cap" ++exclude = ["/azure-pipelines.yml"] + + [dependencies] + + [features] +-nightly = [] + [badges.azure-devops] + pipeline = "tests" + project = "alecmocatta/cap" diff --git a/rust-cap.spec b/rust-cap.spec new file mode 100644 index 0000000..36e5e4f --- /dev/null +++ b/rust-cap.spec @@ -0,0 +1,78 @@ +# Generated by rust2rpm 22 +%bcond_without check +%global debug_package %{nil} + +%global crate cap + +Name: rust-cap +Version: 0.1.0 +Release: %autorelease +Summary: Allocator that can track and limit memory usage + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/cap +Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# - exclude azure-pipelines.yml from installed files: +# https://github.com/alecmocatta/cap/pull/3 +# - drop nightly feature +Patch: cap-fix-metadata.diff + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Allocator that can track and limit memory usage. +This crate provides a generic allocator that wraps another allocator, tracking +memory usage and enabling limits to be set.} + +%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-APACHE.txt +%license %{crate_instdir}/LICENSE-MIT.txt +%doc %{crate_instdir}/README.md +%{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 +%cargo_test +%endif + +%changelog +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..1d27606 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (cap-0.1.0.crate) = b3ce42534bb0a4f79de26894d7cac791c5a44749e11d4f90e792e95308334aaf051a8071e421f2c0f0a48c425afc9b6864182a228614c2ad4099cad2cb8c302f
arch-excludes@lists.fedoraproject.org