diff --git a/.gitignore b/.gitignore index ba3813b..68966c4 100644 --- a/.gitignore +++ b/.gitignore @@ -17,3 +17,4 @@ /ignore-0.4.16.crate /ignore-0.4.17.crate /ignore-0.4.18.crate +/ignore-0.4.20.crate diff --git a/README.md b/README.md deleted file mode 100644 index f4ead6f..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-ignore - -The rust-ignore package \ No newline at end of file diff --git a/ignore-fix-metadata-auto.diff b/ignore-fix-metadata-auto.diff new file mode 100644 index 0000000..eb03a3a --- /dev/null +++ b/ignore-fix-metadata-auto.diff @@ -0,0 +1,8 @@ +--- ignore-0.4.20/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ ignore-0.4.20/Cargo.toml 2023-04-15T11:11:15.497999+00:00 +@@ -65,5 +65,3 @@ + [features] + simd-accel = ["globset/simd-accel"] + +-[target."cfg(windows)".dependencies.winapi-util] +-version = "0.1.2" diff --git a/ignore-fix-metadata.diff b/ignore-fix-metadata.diff deleted file mode 100644 index 28dd0a8..0000000 --- a/ignore-fix-metadata.diff +++ /dev/null @@ -1,8 +0,0 @@ ---- ignore-0.4.18/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ ignore-0.4.18/Cargo.toml 2021-06-18T10:50:44.173307+00:00 -@@ -57,5 +57,3 @@ - - [features] - simd-accel = ["globset/simd-accel"] --[target."cfg(windows)".dependencies.winapi-util] --version = "0.1.2" diff --git a/rust-ignore.spec b/rust-ignore.spec index dfeddb1..5c84de1 100644 --- a/rust-ignore.spec +++ b/rust-ignore.spec @@ -1,32 +1,25 @@ -# Generated by rust2rpm 17 +# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate ignore -Name: rust-%{crate} -Version: 0.4.18 +Name: rust-ignore +Version: 0.4.20 Release: %autorelease Summary: Fast library for efficiently matching ignore files -# Upstream license specification: Unlicense/MIT -License: Unlicense or MIT +License: Unlicense OR MIT URL: https://crates.io/crates/ignore Source: %{crates_source} -# Initial patched metadata -# * drop windows-specific dependencies -Patch0: ignore-fix-metadata.diff +# Automatically generated patch to strip foreign dependencies +Patch: ignore-fix-metadata-auto.diff -ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: -Fast library for efficiently matching ignore files such as `.gitignore` against -file paths.} +A fast library for efficiently matching ignore files such as +`.gitignore` against file paths.} %description %{_description} @@ -36,13 +29,15 @@ 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 COPYING UNLICENSE LICENSE-MIT -%doc README.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/COPYING +%license %{crate_instdir}/LICENSE-MIT +%license %{crate_instdir}/UNLICENSE +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -50,11 +45,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}+simd-accel-devel Summary: %{summary} @@ -62,11 +57,11 @@ BuildArch: noarch %description -n %{name}+simd-accel-devel %{_description} -This package contains library source intended for building other packages -which use "simd-accel" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "simd-accel" feature of the "%{crate}" crate. %files -n %{name}+simd-accel-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/sources b/sources index 15a5227..393171b 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (ignore-0.4.18.crate) = 5d11a2415f015cce6ce72aa3d08a7cfb645ee7f1845b3445a924a92144438f209c992cc15d4ede3099d1eebe3fa28bde4e0eef1a3fbcb9dbced19a42051d21be +SHA512 (ignore-0.4.20.crate) = e90c5c356252fa1c573bb92971477f2805e4167c3e7878e7da6756ae14463cca328a6614d448cf9a3a28abc5bf0f7c62313a8cb8103a04bb1c3bac0d0924f658