The package rpms/rust-statrs.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-statrs.git/commit/?id=2fecf3079....
Change: +ExclusiveArch: %{rust_arches}
Thanks.
Full change: ============
commit 2fecf307902963e222d45c25384bd024d9fe41bb Author: Davide Cavalca dcavalca@fedoraproject.org Date: Fri Sep 3 08:06:54 2021 -0700
Initial import; Fixes: RHBZ#1993498
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7bc06a1 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/statrs-0.15.0-clean.crate diff --git a/gen_clean_tarball.sh b/gen_clean_tarball.sh new file mode 100755 index 0000000..5ec3a76 --- /dev/null +++ b/gen_clean_tarball.sh @@ -0,0 +1,36 @@ +#!/usr/bin/bash + +set -e + +CRATE="statrs" +NAME="rust-${CRATE}" + +VERSION=$(rpmspec -q $NAME.spec --srpm --qf "%{version}") +URL="https://crates.io/api/v1/crates/$%7BCRATE%7D/$%7BVERSION%7D/download" + +ROOTDIR="${CRATE}-${VERSION}" + +# download and extract published crate from crates.io +wget $URL -O ${ROOTDIR}.crate +tar -xzf ${ROOTDIR}.crate +rm ${ROOTDIR}.crate + +pushd ${ROOTDIR} +# remove non-redistributable data files used for testing +rm -r data +# fix end of line encoding +sed -i 's/\r$//' README.md +# clean up cargo files +rm .cargo_vcs_info.json +mv Cargo.toml.orig Cargo.toml +# init git repository +git init && git add . && git commit -m "import" +# repackage crate +cargo package +# move clean crate +mv target/package/${ROOTDIR}.crate ../${ROOTDIR}-clean.crate +popd + +# remove temporary directory +rm -rf ${ROOTDIR} + diff --git a/rust-statrs.spec b/rust-statrs.spec new file mode 100644 index 0000000..ba1e4b0 --- /dev/null +++ b/rust-statrs.spec @@ -0,0 +1,83 @@ +# Generated by rust2rpm 18 +%bcond_without check +%global debug_package %{nil} + +%global crate statrs + +Name: rust-%{crate} +Version: 0.15.0 +Release: %autorelease +Summary: Statistical computing library for Rust + +# Upstream license specification: MIT +License: MIT +URL: https://crates.io/crates/statrs +Source: %{crate}-%{version_no_tilde}-clean.crate +# script to create tarball without files with unacceptable licenses +# run "rust2rpm statrs" and then "./gen_clean_tarball.sh" for new versions +Source1: gen_clean_tarball.sh +# Initial patched metadata +# Bump nalgebra to 0.29 and drop nightly feature +# https://github.com/statrs-dev/statrs/pull/154 +Patch0: statrs-fix-metadata.diff + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Statistical computing library for Rust.} + +%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.md +%doc README.md CHANGELOG.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 "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 +# skip tests that require non-redistributable data files +%cargo_test -- -- --skip statistics::iter_statistics::tests::test_covariance_consistent_with_variance --skip statistics::iter_statistics::tests::test_covariance_is_symmetric --skip statistics::iter_statistics::tests::test_mean --skip statistics::iter_statistics::tests::test_pop_covar_consistent_with_pop_var --skip statistics::iter_statistics::tests::test_std_dev +%endif + +%changelog +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..5a021e0 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (statrs-0.15.0-clean.crate) = 4a5451b418326f65c2065309211afbd4cdfd0eede0063246b9d29e77ce3f82beb6604ebb8c726b190816be988cf38db4d914441a9e09c4db663fcbd7762f7857 diff --git a/statrs-fix-metadata.diff b/statrs-fix-metadata.diff new file mode 100644 index 0000000..e73d0f2 --- /dev/null +++ b/statrs-fix-metadata.diff @@ -0,0 +1,18 @@ +--- statrs-0.15.0/Cargo.toml 1970-01-01T00:00:00+00:00 ++++ statrs-0.15.0/Cargo.toml 2021-08-30T17:51:41.455589+00:00 +@@ -37,7 +37,7 @@ + version = "1.4.0" + + [dependencies.nalgebra] +-version = "0.27.1" ++version = "0.29" + features = ["rand"] + + [dependencies.num-traits] +@@ -47,6 +47,3 @@ + version = "0.8" + [dev-dependencies.criterion] + version = "0.3.3" +- +-[features] +-nightly = []
arch-excludes@lists.fedoraproject.org