The package rpms/rust-spin_sleep.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-spin_sleep.git/commit/?id=58b9f....
Change: +ExclusiveArch: %{rust_arches}
Thanks.
Full change: ============
commit 58b9fac1210666a5df1efe62dee8f06c7c979d20 Author: Rémi Lauzier remilauzier@protonmail.com Date: Mon Jan 31 18:29:12 2022 -0500
Initial import; Fixes RHBZ#1982942
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c29fa2e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/spin_sleep-1.0.0.crate diff --git a/rust-spin_sleep.spec b/rust-spin_sleep.spec new file mode 100644 index 0000000..b89ed30 --- /dev/null +++ b/rust-spin_sleep.spec @@ -0,0 +1,89 @@ +# Generated by rust2rpm 20 +%bcond_without check +%global debug_package %{nil} + +%global crate spin_sleep + +Name: rust-%{crate} +Version: 1.0.0 +Release: %autorelease +Summary: Accurate sleeping + +# Upstream license specification: Apache-2.0 +License: ASL 2.0 +URL: https://crates.io/crates/spin_sleep +Source: %{crates_source} +# Initial patched metadata +# Remove windows dependencies +# Upgrade approx to version 0.5 +# Commit: e95ed9d94dd228e33f618adc97c5944c32947173 +Patch0: spin_sleep-fix-metadata.diff + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging + +%global _description %{expand: +Accurate sleeping. Only use native sleep as far as it can be trusted, then +spin.} + +%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 LICENSE +%doc README.md +%{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 the "default" feature of the "%{crate}" crate. + +%files -n %{name}+default-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+nondeterministic_tests-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+nondeterministic_tests-devel %{_description} + +This package contains library source intended for building other packages which +use the "nondeterministic_tests" feature of the "%{crate}" crate. + +%files -n %{name}+nondeterministic_tests-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 +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..5a51a48 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (spin_sleep-1.0.0.crate) = 9cfe37378b2b49fc0333bbe117163864212ab70506dba2fbff7718d31edf80fa3bf721e9be8478bd76f0fe42d42ace44b57b6e5504ffb1ec678519235106deca diff --git a/spin_sleep-fix-metadata.diff b/spin_sleep-fix-metadata.diff new file mode 100644 index 0000000..983a831 --- /dev/null +++ b/spin_sleep-fix-metadata.diff @@ -0,0 +1,17 @@ +--- spin_sleep-1.0.0/Cargo.toml 2020-04-25T08:56:07+00:00 ++++ spin_sleep-1.0.0/Cargo.toml 2022-01-29T07:12:20.105152+00:00 +@@ -21,13 +21,7 @@ + license = "Apache-2.0" + repository = "https://github.com/alexheretic/spin-sleep" + [dev-dependencies.approx] +-version = "0.3" ++version = "0.5" + + [features] + nondeterministic_tests = [] +-[target."cfg(windows)".dependencies.once_cell] +-version = "1" +- +-[target."cfg(windows)".dependencies.winapi] +-version = "0.3" +-features = ["minwindef", "mmsystem", "timeapi"]
arch-excludes@lists.fedoraproject.org