diff --git a/README.md b/README.md deleted file mode 100644 index e265ad8..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-rand0.7 - -The rust-rand0.7 package diff --git a/rand-fix-metadata.diff b/rand-fix-metadata-auto.diff similarity index 85% rename from rand-fix-metadata.diff rename to rand-fix-metadata-auto.diff index e129326..2b4c701 100644 --- a/rand-fix-metadata.diff +++ b/rand-fix-metadata-auto.diff @@ -1,5 +1,5 @@ --- rand-0.7.3/Cargo.toml 2020-01-10T21:46:19+00:00 -+++ rand-0.7.3/Cargo.toml 2021-01-03T11:18:36.633761+00:00 ++++ rand-0.7.3/Cargo.toml 2023-05-21T12:52:28.593382+00:00 @@ -67,8 +67,6 @@ [target."cfg(not(target_os = \"emscripten\"))".dependencies.rand_chacha] version = "0.2.1" diff --git a/rust-rand0.7.spec b/rust-rand0.7.spec index 2695b0c..eabde19 100644 --- a/rust-rand0.7.spec +++ b/rust-rand0.7.spec @@ -1,28 +1,22 @@ -# Generated by rust2rpm 17 +# Generated by rust2rpm 24 +# * missing dev-dependency: rand_hc ^0.2 %bcond_with check %global debug_package %{nil} %global crate rand -Name: rust-%{crate}0.7 +Name: rust-rand0.7 Version: 0.7.3 Release: %autorelease Summary: Random number generators and other randomness functionality -# Upstream license specification: MIT OR Apache-2.0 -License: MIT or ASL 2.0 +License: MIT OR Apache-2.0 URL: https://crates.io/crates/rand Source: %{crates_source} -# Initial patched metadata -# * Remove non-unix dependencies -Patch0: rand-fix-metadata.diff +# Automatically generated patch to strip foreign dependencies +Patch: rand-fix-metadata-auto.diff -ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Random number generators and other randomness functionality.} @@ -35,13 +29,17 @@ BuildArch: noarch %description devel %{_description} -This package contains library source intended for building other packages -which use "%{crate}" crate. +This package contains library source intended for building other packages which +use the "%{crate}" crate. %files devel -%license LICENSE-MIT LICENSE-APACHE COPYRIGHT -%doc README.md CHANGELOG.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/COPYRIGHT +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/CHANGELOG.md +%doc %{crate_instdir}/README.md +%doc %{crate_instdir}/SECURITY.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -49,11 +47,11 @@ 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. +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 %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+alloc-devel Summary: %{summary} @@ -61,11 +59,11 @@ BuildArch: noarch %description -n %{name}+alloc-devel %{_description} -This package contains library source intended for building other packages -which use "alloc" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "alloc" feature of the "%{crate}" crate. %files -n %{name}+alloc-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+getrandom-devel Summary: %{summary} @@ -73,11 +71,11 @@ BuildArch: noarch %description -n %{name}+getrandom-devel %{_description} -This package contains library source intended for building other packages -which use "getrandom" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "getrandom" feature of the "%{crate}" crate. %files -n %{name}+getrandom-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+getrandom_package-devel Summary: %{summary} @@ -85,11 +83,11 @@ BuildArch: noarch %description -n %{name}+getrandom_package-devel %{_description} -This package contains library source intended for building other packages -which use "getrandom_package" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "getrandom_package" feature of the "%{crate}" crate. %files -n %{name}+getrandom_package-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+libc-devel Summary: %{summary} @@ -97,11 +95,11 @@ BuildArch: noarch %description -n %{name}+libc-devel %{_description} -This package contains library source intended for building other packages -which use "libc" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "libc" feature of the "%{crate}" crate. %files -n %{name}+libc-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+log-devel Summary: %{summary} @@ -109,11 +107,11 @@ BuildArch: noarch %description -n %{name}+log-devel %{_description} -This package contains library source intended for building other packages -which use "log" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "log" feature of the "%{crate}" crate. %files -n %{name}+log-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+rand_pcg-devel Summary: %{summary} @@ -121,11 +119,11 @@ BuildArch: noarch %description -n %{name}+rand_pcg-devel %{_description} -This package contains library source intended for building other packages -which use "rand_pcg" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "rand_pcg" feature of the "%{crate}" crate. %files -n %{name}+rand_pcg-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+serde1-devel Summary: %{summary} @@ -133,11 +131,11 @@ BuildArch: noarch %description -n %{name}+serde1-devel %{_description} -This package contains library source intended for building other packages -which use "serde1" feature of "%{crate}" crate. +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 %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+small_rng-devel Summary: %{summary} @@ -145,11 +143,11 @@ BuildArch: noarch %description -n %{name}+small_rng-devel %{_description} -This package contains library source intended for building other packages -which use "small_rng" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "small_rng" feature of the "%{crate}" crate. %files -n %{name}+small_rng-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+std-devel Summary: %{summary} @@ -157,11 +155,11 @@ BuildArch: noarch %description -n %{name}+std-devel %{_description} -This package contains library source intended for building other packages -which use "std" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "std" feature of the "%{crate}" crate. %files -n %{name}+std-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 diff --git a/.rust2rpm.conf b/rust2rpm.conf similarity index 100% rename from .rust2rpm.conf rename to rust2rpm.conf