diff --git a/README.md b/README.md deleted file mode 100644 index e9226f5..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-remove_dir_all - -The rust-remove_dir_all package \ No newline at end of file diff --git a/remove_dir_all-fix-metadata.diff b/remove_dir_all-fix-metadata-auto.diff similarity index 88% rename from remove_dir_all-fix-metadata.diff rename to remove_dir_all-fix-metadata-auto.diff index 93ee99b..ebb9101 100644 --- a/remove_dir_all-fix-metadata.diff +++ b/remove_dir_all-fix-metadata-auto.diff @@ -1,5 +1,5 @@ --- remove_dir_all-0.7.0/Cargo.toml 1970-01-01T00:00:00+00:00 -+++ remove_dir_all-0.7.0/Cargo.toml 2021-05-19T13:12:48.032737+00:00 ++++ remove_dir_all-0.7.0/Cargo.toml 2023-05-25T19:03:22.357769+00:00 @@ -32,15 +32,3 @@ version = "3.1" [target."cfg(not(windows))".dependencies.libc] diff --git a/rust-remove_dir_all.spec b/rust-remove_dir_all.spec index d7b9875..d5efcc4 100644 --- a/rust-remove_dir_all.spec +++ b/rust-remove_dir_all.spec @@ -1,32 +1,26 @@ -# Generated by rust2rpm 19 +# Generated by rust2rpm 24 # * tests seem to be broken with Rust 1.55+ %bcond_with check %global debug_package %{nil} %global crate remove_dir_all -Name: rust-%{crate} +Name: rust-remove_dir_all Version: 0.7.0 Release: %autorelease Summary: Safe, reliable implementation of remove_dir_all # Upstream license specification: MIT/Apache-2.0 -License: MIT or ASL 2.0 +License: MIT OR Apache-2.0 URL: https://crates.io/crates/remove_dir_all Source: %{crates_source} -# Initial patched metadata -# * drop windows-specific dependencies -Patch0: remove_dir_all-fix-metadata.diff +# Automatically generated patch to strip foreign dependencies +Patch: remove_dir_all-fix-metadata-auto.diff -ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: -Safe, reliable implementation of remove_dir_all for Windows.} +A safe, reliable implementation of remove_dir_all for Windows.} %description %{_description} @@ -37,12 +31,13 @@ BuildArch: noarch %description devel %{_description} This package contains library source intended for building other packages which -use "%{crate}" crate. +use the "%{crate}" crate. %files devel -%license LICENCE-APACHE LICENCE-MIT -%doc README.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENCE-APACHE +%license %{crate_instdir}/LICENCE-MIT +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -51,10 +46,10 @@ 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. +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 %prep %autosetup -n %{crate}-%{version_no_tilde} -p1