diff --git a/.gitignore b/.gitignore index 45b8277..3c6d776 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /wild-2.0.2.crate /wild-2.0.3.crate /wild-2.0.4.crate +/wild-2.1.0.crate diff --git a/rust-wild.spec b/rust-wild.spec index 996ec5c..9432b4a 100644 --- a/rust-wild.spec +++ b/rust-wild.spec @@ -1,28 +1,23 @@ -# Generated by rust2rpm 13 +# Generated by rust2rpm 22 %bcond_without check %global debug_package %{nil} %global crate wild -Name: rust-%{crate} -Version: 2.0.4 +Name: rust-wild +Version: 2.1.0 Release: %autorelease Summary: Glob (wildcard) expanded command-line arguments -# Upstream license specification: Apache-2.0 OR MIT -License: ASL 2.0 or MIT +License: Apache-2.0 OR MIT URL: https://crates.io/crates/wild Source: %{crates_source} -# Initial patched metadata -# * No windows -Patch0: wild-fix-metadata.diff +# Automatically generated patch to strip foreign dependencies +Patch: wild-fix-metadata-auto.diff ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Glob (wildcard) expanded command-line arguments on Windows.} @@ -35,13 +30,13 @@ 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 -%doc README.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -49,11 +44,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 %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 diff --git a/sources b/sources index 2554ffd..6302ad0 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (wild-2.0.4.crate) = a0c7d27891064d7455c3abf8aaecbd744e7fdd3b4e11bd8e7becb8917585410828fe45f2077e90d81608d230d8a31eaaf2ac818d4ad3225e1f9d3ffd27495453 +SHA512 (wild-2.1.0.crate) = 458716b78fde64c65a10ae28d9ac75494c5362a834dd48f5d29efbf7bc54323033f524cfa8ec9d4c851121cfc357d3935129069fcb746e656b8ae397cb9b197c diff --git a/wild-fix-metadata-auto.diff b/wild-fix-metadata-auto.diff new file mode 100644 index 0000000..22feddb --- /dev/null +++ b/wild-fix-metadata-auto.diff @@ -0,0 +1,12 @@ +--- wild-2.1.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ wild-2.1.0/Cargo.toml 1970-01-01T00:00:01+00:00 +@@ -49,9 +49,6 @@ + [dev-dependencies.glob] + version = "0.3" + +-[target."cfg(windows)".dependencies.glob] +-version = "0.3" +- + [badges.appveyor] + repository = "pornel/wild" + diff --git a/wild-fix-metadata.diff b/wild-fix-metadata.diff deleted file mode 100644 index 8f8c71f..0000000 --- a/wild-fix-metadata.diff +++ /dev/null @@ -1,11 +0,0 @@ ---- wild-2.0.3/Cargo.toml 2020-05-16T18:32:11+00:00 -+++ wild-2.0.3/Cargo.toml 2020-05-16T20:07:24.019333+00:00 -@@ -28,8 +28,6 @@ - targets = ["x86_64-unknown-linux-gnu"] - [dev-dependencies.glob] - version = "0.3" --[target."cfg(windows)".dependencies.glob] --version = "0.3" - [badges.appveyor] - repository = "pornel/wild" -