diff --git a/.gitignore b/.gitignore index f2b779e..c6c95f2 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ /home-0.3.4.crate /home-0.5.1.crate /home-0.5.3.crate +/home-0.5.4.crate diff --git a/home-fix-metadata-auto.diff b/home-fix-metadata-auto.diff new file mode 100644 index 0000000..e222f8a --- /dev/null +++ b/home-fix-metadata-auto.diff @@ -0,0 +1,13 @@ +--- home-0.5.4/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ home-0.5.4/Cargo.toml 1970-01-01T00:00:01+00:00 +@@ -27,10 +27,3 @@ + license = "MIT OR Apache-2.0" + repository = "https://github.com/brson/home" + +-[target."cfg(windows)".dependencies.winapi] +-version = "0.3" +-features = [ +- "shlobj", +- "std", +- "winerror", +-] diff --git a/home-fix-metadata.diff b/home-fix-metadata.diff deleted file mode 100644 index 05a08b3..0000000 --- a/home-fix-metadata.diff +++ /dev/null @@ -1,9 +0,0 @@ ---- home-0.5.3/Cargo.toml 2020-01-07T12:03:40+00:00 -+++ home-0.5.3/Cargo.toml 2020-01-07T17:34:33.293414+00:00 -@@ -21,6 +21,3 @@ - readme = "README.md" - license = "MIT OR Apache-2.0" - repository = "https://github.com/brson/home" --[target."cfg(windows)".dependencies.winapi] --version = "0.3" --features = ["shlobj", "std", "winerror"] diff --git a/rust-home.spec b/rust-home.spec index f3474ad..785413e 100644 --- a/rust-home.spec +++ b/rust-home.spec @@ -1,28 +1,23 @@ -# Generated by rust2rpm 13 -%bcond_with check +# Generated by rust2rpm 22 +%bcond_without check %global debug_package %{nil} %global crate home -Name: rust-%{crate} -Version: 0.5.3 +Name: rust-home +Version: 0.5.4 Release: %autorelease Summary: Shared definitions of home directories -# 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/home Source: %{crates_source} -# Initial patched metadata -# * No windows -Patch0: home-fix-metadata.diff +# Automatically generated patch to strip foreign dependencies +Patch: home-fix-metadata-auto.diff ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Shared definitions of home directories.} @@ -35,13 +30,14 @@ 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-APACHE LICENSE-MIT -%doc README.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -49,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 %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 diff --git a/sources b/sources index 5e4d59a..2482e4c 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (home-0.5.3.crate) = cb3b7b24db30a8b29f36f90a0d345b2e187f9e76f22203e142a77c8308dcc62e97b5714fb0ed890210b31375cf30d3362b8d740fe189079a6d3a095be50dcb0b +SHA512 (home-0.5.4.crate) = 2494111301bd1281c89dc77f4f78d3bc6e3a04d1969938cf4584d465c01af12ad85022832b4a99a5c0ce6adc31a83c00820df2d513a09bf5c0d4fe44c53812a4