The package rpms/rust-systemstat.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-systemstat.git/commit/?id=ad116....
Change: +%ifarch i686
Thanks.
Full change: ============
commit ad116d11ae4f7a0789d70624f7d8d5b7bae04216 Author: topazus topazus@outlook.com Date: Wed Apr 12 08:54:05 2023 +0800
Disable tests on i686
diff --git a/rust-systemstat.spec b/rust-systemstat.spec index 01d8be4..e746ab9 100644 --- a/rust-systemstat.spec +++ b/rust-systemstat.spec @@ -1,5 +1,9 @@ # Generated by rust2rpm 24 +%ifarch i686 +%bcond_with check +%else %bcond_without check +%endif %global debug_package %{nil}
%global crate systemstat
commit c9436ea12570423c571e9f7cb7ba0d96d98e1d20 Author: topazus topazus@outlook.com Date: Wed Apr 12 08:26:24 2023 +0800
Initial import (RHBZ#2184899)
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b0b5198 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/systemstat-0.2.3.crate diff --git a/rust-systemstat.spec b/rust-systemstat.spec new file mode 100644 index 0000000..01d8be4 --- /dev/null +++ b/rust-systemstat.spec @@ -0,0 +1,95 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate systemstat + +Name: rust-systemstat +Version: 0.2.3 +Release: %autorelease +Summary: Get system information/statistics in a cross-platform way + +License: Unlicense +URL: https://crates.io/crates/systemstat +Source: %{crates_source} +# Automatically generated patch to strip foreign dependencies +Patch: systemstat-fix-metadata-auto.diff + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Get system information/statistics in a cross-platform way.} + +%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}/UNLICENSE +%doc %{crate_instdir}/CODE_OF_CONDUCT.md +%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 + +%package -n %{name}+serde-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+serde-devel %{_description} + +This package contains library source intended for building other packages which +use the "serde" feature of the "%{crate}" crate. + +%files -n %{name}+serde-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+the_serde-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+the_serde-devel %{_description} + +This package contains library source intended for building other packages which +use the "the_serde" feature of the "%{crate}" crate. + +%files -n %{name}+the_serde-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..730aa7a --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (systemstat-0.2.3.crate) = 1044d3ef615c6ff03cfc138e65899d336b9d67f1bd3a0bfaef796c88ff8b424b2dbbeb0de0d046febadf8f667a7de268bb8c538be94a0afdf2826e2641c85f60 diff --git a/systemstat-fix-metadata-auto.diff b/systemstat-fix-metadata-auto.diff new file mode 100644 index 0000000..0a6c3e7 --- /dev/null +++ b/systemstat-fix-metadata-auto.diff @@ -0,0 +1,18 @@ +--- systemstat-0.2.3/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ systemstat-0.2.3/Cargo.toml 2023-04-06T07:00:59.618701+00:00 +@@ -62,15 +62,3 @@ + [target."cfg(any(target_os = "linux", target_os = "android"))".dependencies.nom] + version = "7.0" + +-[target."cfg(windows)".dependencies.winapi] +-version = "0.3" +-features = [ +- "fileapi", +- "sysinfoapi", +- "minwindef", +- "winbase", +- "winerror", +- "ws2def", +- "ws2ipdef", +- "pdh", +-]
arch-excludes@lists.fedoraproject.org