# Generated by rust2rpm 17 %bcond_without check %global debug_package %{nil} %global crate gmp-mpfr-sys Name: rust-%{crate} Version: 1.4.5 Release: 1%{?dist} 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} # Drop winapi dependency, enable use-system-libs feature by default Patch0: gmp-mpfr-sys-fix-metadata.diff ExclusiveArch: %{rust_arches} %if %{__cargo_skip_build} BuildArch: noarch %endif BuildRequires: rust-packaging 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 "%{crate}" crate. %files devel %license LICENSE-GPL.md LICENSE-LGPL.md %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 "default" feature of "%{crate}" crate. %files -n %{name}+default-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 "c-no-tests" feature of "%{crate}" crate. %files -n %{name}+c-no-tests-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 "cnodelete" feature of "%{crate}" crate. %files -n %{name}+cnodelete-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 "fail-on-warnings" feature of "%{crate}" crate. %files -n %{name}+fail-on-warnings-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 "force-cross" feature of "%{crate}" crate. %files -n %{name}+force-cross-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 "mpc" feature of "%{crate}" crate. %files -n %{name}+mpc-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 "mpfr" feature of "%{crate}" crate. %files -n %{name}+mpfr-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 "use-system-libs" feature of "%{crate}" crate. %files -n %{name}+use-system-libs-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 * Tue Jul 06 2021 Davide Cavalca - 1.4.5-1 - Initial package