# Generated by rust2rpm 21 %bcond_without check %global crate rand_xorshift Name: rust-%{crate}0.2 Version: 0.2.0 Release: %mkrel 2 Summary: Xorshift random number generator Group: Development/Other # Upstream license specification: MIT/Apache-2.0 License: MIT or ASL 2.0 URL: https://crates.io/crates/rand_xorshift Source: %{crates_source} ExclusiveArch: %{rust_arches} BuildArch: noarch BuildRequires: rust-packaging >= 21 #BuildRequires: crate(rand_core/default) >= 0.5.0 BuildRequires: rust-rand_core0.5+default-devel %if %{with check} BuildRequires: crate(bincode/default) >= 1.0.0 %endif %global _description %{expand: Xorshift random number generator.} %description %{_description} %package devel Summary: %{summary} Group: Development/Other BuildArch: noarch Requires: rust-rand_core0.5+default-devel %description devel %{_description} This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel %license %{crate_instdir}/COPYRIGHT %license %{crate_instdir}/LICENSE-APACHE %license %{crate_instdir}/LICENSE-MIT %doc %{crate_instdir}/CHANGELOG.md %doc %{crate_instdir}/README.md %{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} Group: Development/Other 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} Group: Development/Other 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}+serde1-devel Summary: %{summary} Group: Development/Other BuildArch: noarch %description -n %{name}+serde1-devel %{_description} This package contains library source intended for building other packages which use the "serde1" feature of the "%{crate}" crate. %files -n %{name}+serde1-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog * Fri Mar 25 2022 umeabot <umeabot> 0.2.0-2.mga9 + Revision: 1827215 - Mageia 9 Mass Rebuild * Thu Mar 03 2022 guillomovitch <guillomovitch> 0.2.0-1.mga9 + Revision: 1788013 - imported package rust-rand_xorshift0.2 * Thu Mar 03 2022 Guillaume Rousse <guillomovitch@gmail.com> - 0.2.0-1 - Initial package