commit de07e8fdc53c7735b83d3cb7e9589c5429a4e075 Author: tigro Date: Mon Jan 15 21:12:24 2024 +0300 import rust-fastrand1-1.9.0-1.el9 diff --git a/.rust-fastrand1.metadata b/.rust-fastrand1.metadata new file mode 100644 index 0000000..e69de29 diff --git a/SOURCES/fastrand-1.9.0.crate b/SOURCES/fastrand-1.9.0.crate new file mode 100644 index 0000000..c1e4a5c Binary files /dev/null and b/SOURCES/fastrand-1.9.0.crate differ diff --git a/SOURCES/fastrand-fix-metadata-auto.diff b/SOURCES/fastrand-fix-metadata-auto.diff new file mode 100644 index 0000000..5b03034 --- /dev/null +++ b/SOURCES/fastrand-fix-metadata-auto.diff @@ -0,0 +1,19 @@ +--- fastrand-1.9.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ fastrand-1.9.0/Cargo.toml 2023-07-03T15:59:53.496218+00:00 +@@ -38,16 +38,3 @@ + [dev-dependencies.wyhash] + version = "0.5" + +-[target."cfg(all(target_arch = \"wasm32\", not(target_os = \"wasi\")))".dependencies.instant] +-version = "0.1" +- +-[target."cfg(all(target_arch = \"wasm32\", not(target_os = \"wasi\")))".dev-dependencies.getrandom] +-version = "0.2" +-features = ["js"] +- +-[target."cfg(all(target_arch = \"wasm32\", not(target_os = \"wasi\")))".dev-dependencies.instant] +-version = "0.1" +-features = ["wasm-bindgen"] +- +-[target."cfg(all(target_arch = \"wasm32\", not(target_os = \"wasi\")))".dev-dependencies.wasm-bindgen-test] +-version = "0.3" diff --git a/SPECS/rust-fastrand1.spec b/SPECS/rust-fastrand1.spec new file mode 100644 index 0000000..966aa63 --- /dev/null +++ b/SPECS/rust-fastrand1.spec @@ -0,0 +1,87 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.3.5) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 1; + base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); + print(release_number + base_release_number - 1); +}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} +## END: Set by rpmautospec + +# Generated by rust2rpm 24 +# * missing dev-dependency: wyhash ^0.5 +%bcond_with check +%global debug_package %{nil} + +%global crate fastrand + +Name: rust-fastrand1 +Version: 1.9.0 +Release: %autorelease +Summary: Simple and fast random number generator + +License: Apache-2.0 OR MIT +URL: https://crates.io/crates/fastrand +Source: %{crates_source} +# Automatically generated patch to strip foreign dependencies +Patch: fastrand-fix-metadata-auto.diff + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +A simple and fast 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}/CHANGELOG.md +%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 + +%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 +%cargo_test +%endif + +%changelog +* Mon Jan 15 2024 Arkady L. Shane - 1.9.0-1 +- Rebuilt for MSVSphere 9.3 + +* Wed Jul 05 2023 Fabio Valentini - 1.9.0-1 +- Initial import (fastrand 1 compat package)