diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ee616f0 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +/LICENSE-APACHE +/LICENSE-MIT +/pcg-mwc-0.2.1.crate diff --git a/README.md b/README.md deleted file mode 100644 index a59c595..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-pcg-mwc - -The rust-pcg-mwc package diff --git a/rust-pcg-mwc.spec b/rust-pcg-mwc.spec new file mode 100644 index 0000000..f33db8d --- /dev/null +++ b/rust-pcg-mwc.spec @@ -0,0 +1,97 @@ +# Generated by rust2rpm 26 +%bcond_without check +%global debug_package %{nil} + +%global crate pcg-mwc + +Name: rust-pcg-mwc +Version: 0.2.1 +Release: %autorelease +Summary: Fast non-cryptographic psudo random number generator + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/pcg-mwc +Source: %{crates_source} +# https://github.com/tkaitchuck/Mwc256XXA64/pull/6 +Source1: https://raw.githubusercontent.com/tkaitchuck/Mwc256XXA64/f668e18bdb055c6ae2c3ca74ff587732ff64532c/LICENSE-APACHE +Source2: https://raw.githubusercontent.com/tkaitchuck/Mwc256XXA64/f668e18bdb055c6ae2c3ca74ff587732ff64532c/LICENSE-MIT + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +A fast non-cryptographic psudo random number generator.} + +%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}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%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}+serde1-devel +Summary: %{summary} +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} -p1 +cp -pav %{SOURCE1} %{SOURCE2} . +%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..967413c --- /dev/null +++ b/sources @@ -0,0 +1,3 @@ +SHA512 (LICENSE-APACHE) = 175a88be0fdec82e81809921d4e03113c369534f7c1de0594438af5b0c596f26cb713ae0de52de682dbbf725a88340d051631577e10b0092c17b9b04465de3c8 +SHA512 (LICENSE-MIT) = 1ac046b2565f79de85aa4aa1df9834d6cef3a8d0de7df56fd976a88718083c8f0539095bc7f89134dc712788b1a375a771a021fec3ab97956751b84f2eae148e +SHA512 (pcg-mwc-0.2.1.crate) = 11f744e031cb8ff1b9856e1c4bc29457de2338abc11021b706c681e108d89addb10a2f208351f2cce2ba4abae2bbcf0f9745cc513be93cfaa9a8526a92c1a057