The package rpms/rust-gmp-mpfr-sys.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-gmp-mpfr-sys.git/commit/?id=e74....
Change: +ExclusiveArch: %{rust_arches}
Thanks.
Full change: ============
commit e745511fd7b559b0bf8dc2a7f86cc2a2b191de6e Author: Davide Cavalca dcavalca@fedoraproject.org Date: Sun Jul 10 14:50:22 2022 -0700
Initial import; Fixes: RHBZ#1979780
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..feae33c --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/gmp-mpfr-sys-1.4.8.crate diff --git a/gmp-mpfr-sys-fix-metadata.diff b/gmp-mpfr-sys-fix-metadata.diff new file mode 100644 index 0000000..d70d271 --- /dev/null +++ b/gmp-mpfr-sys-fix-metadata.diff @@ -0,0 +1,23 @@ +--- gmp-mpfr-sys-1.4.8/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ gmp-mpfr-sys-1.4.8/Cargo.toml 2022-07-10T21:45:53.209695+00:00 +@@ -42,19 +42,10 @@ + default = [ + "mpfr", + "mpc", ++ "use-system-libs", + ] + fail-on-warnings = [] + force-cross = [] + mpc = ["mpfr"] + mpfr = [] + use-system-libs = [] +- +-[target."cfg(target_os = "windows")".build-dependencies.winapi] +-version = "0.3" +-features = [ +- "combaseapi", +- "knownfolders", +- "shlobj", +- "winbase", +- "winerror", +-] diff --git a/rust-gmp-mpfr-sys.spec b/rust-gmp-mpfr-sys.spec new file mode 100644 index 0000000..7a0a64a --- /dev/null +++ b/rust-gmp-mpfr-sys.spec @@ -0,0 +1,168 @@ +# Generated by rust2rpm 21 +%bcond_without check +%global debug_package %{nil} + +%global crate gmp-mpfr-sys + +Name: rust-%{crate} +Version: 1.4.8 +Release: %autorelease +Summary: Rust FFI bindings for GMP, MPFR and MPC + +# Upstream license specification: LGPL-3.0+ +License: LGPLv3+ +URL: https://crates.io/crates/gmp-mpfr-sys +Source: %{crates_source} +# Initial patched metadata +# Drop winapi dependency, enable use-system-libs feature by default +Patch0: gmp-mpfr-sys-fix-metadata.diff + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging >= 21 +BuildRequires: gmp-devel +BuildRequires: libmpc-devel +BuildRequires: mpfr-devel + +%global _description %{expand: +Rust FFI bindings for GMP, MPFR and MPC.} + +%description %{_description} + +%package devel +Summary: %{summary} +BuildArch: noarch +Requires: gmp-devel +Requires: libmpc-devel +Requires: mpfr-devel + +%description devel %{_description} + +This package contains library source intended for building other packages which +use the "%{crate}" crate. + +%files devel +%license %{crate_instdir}/LICENSE-GPL.md +%license %{crate_instdir}/LICENSE-LGPL.md +%doc %{crate_instdir}/README.md +%doc %{crate_instdir}/RELEASES.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}+c-no-tests-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+c-no-tests-devel %{_description} + +This package contains library source intended for building other packages which +use the "c-no-tests" feature of the "%{crate}" crate. + +%files -n %{name}+c-no-tests-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+cnodelete-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+cnodelete-devel %{_description} + +This package contains library source intended for building other packages which +use the "cnodelete" feature of the "%{crate}" crate. + +%files -n %{name}+cnodelete-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+fail-on-warnings-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+fail-on-warnings-devel %{_description} + +This package contains library source intended for building other packages which +use the "fail-on-warnings" feature of the "%{crate}" crate. + +%files -n %{name}+fail-on-warnings-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+force-cross-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+force-cross-devel %{_description} + +This package contains library source intended for building other packages which +use the "force-cross" feature of the "%{crate}" crate. + +%files -n %{name}+force-cross-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+mpc-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+mpc-devel %{_description} + +This package contains library source intended for building other packages which +use the "mpc" feature of the "%{crate}" crate. + +%files -n %{name}+mpc-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+mpfr-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+mpfr-devel %{_description} + +This package contains library source intended for building other packages which +use the "mpfr" feature of the "%{crate}" crate. + +%files -n %{name}+mpfr-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+use-system-libs-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+use-system-libs-devel %{_description} + +This package contains library source intended for building other packages which +use the "use-system-libs" feature of the "%{crate}" crate. + +%files -n %{name}+use-system-libs-devel +%ghost %{crate_instdir}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version_no_tilde} -p1 +%cargo_prep +# remove bundled libraries +rm -r gmp* mpc* mpfr* + +%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..2f3258b --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (gmp-mpfr-sys-1.4.8.crate) = 6092d69831ddf9681d13297163917e81a28d7d0a2647f82155b30fedf73c3379e1b958b8924e9df4d49c6ee0e67caa68e782fce17e93ef53b2e2660db4dff6e3
arch-excludes@lists.fedoraproject.org