From cd41e8f2f9a1e4d1abb446f00b0cbbda7a25d0a9 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Mon, 8 Aug 2022 16:46:54 +0200 Subject: [PATCH] Update to version 3.0.13; Fixes RHBZ#2065526 --- .gitignore | 1 + path-absolutize-fix-metadata-auto.diff | 8 ++++ path-absolutize-fix-metadata.diff | 8 ---- rust-path-absolutize.spec | 51 ++++++++++++-------------- sources | 2 +- 5 files changed, 33 insertions(+), 37 deletions(-) create mode 100644 path-absolutize-fix-metadata-auto.diff delete mode 100644 path-absolutize-fix-metadata.diff diff --git a/.gitignore b/.gitignore index ac544f0..5d63a77 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ /path-absolutize-3.0.7.crate /path-absolutize-3.0.10.crate /path-absolutize-3.0.11.crate +/path-absolutize-3.0.13.crate diff --git a/path-absolutize-fix-metadata-auto.diff b/path-absolutize-fix-metadata-auto.diff new file mode 100644 index 0000000..c18ced2 --- /dev/null +++ b/path-absolutize-fix-metadata-auto.diff @@ -0,0 +1,8 @@ +--- path-absolutize-3.0.13/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ path-absolutize-3.0.13/Cargo.toml 1970-01-01T00:00:01+00:00 +@@ -54,5 +54,3 @@ + once_cell_cache = ["path-dedot/once_cell_cache"] + unsafe_cache = ["path-dedot/unsafe_cache"] + +-[target."cfg(windows)".dev-dependencies.slash-formatter] +-version = "3" diff --git a/path-absolutize-fix-metadata.diff b/path-absolutize-fix-metadata.diff deleted file mode 100644 index 9c23367..0000000 --- a/path-absolutize-fix-metadata.diff +++ /dev/null @@ -1,8 +0,0 @@ ---- path-absolutize-3.0.11/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ path-absolutize-3.0.11/Cargo.toml 2021-09-27T19:34:34.771345+00:00 -@@ -35,5 +35,3 @@ - lazy_static_cache = ["path-dedot/lazy_static_cache"] - once_cell_cache = ["path-dedot/once_cell_cache"] - unsafe_cache = ["path-dedot/unsafe_cache"] --[target."cfg(windows)".dev-dependencies.slash-formatter] --version = "3" diff --git a/rust-path-absolutize.spec b/rust-path-absolutize.spec index 7091105..0087a9c 100644 --- a/rust-path-absolutize.spec +++ b/rust-path-absolutize.spec @@ -1,28 +1,23 @@ -# Generated by rust2rpm 18 +# Generated by rust2rpm 22 %bcond_without check %global debug_package %{nil} %global crate path-absolutize -Name: rust-%{crate} -Version: 3.0.11 +Name: rust-path-absolutize +Version: 3.0.13 Release: %autorelease Summary: Extend Path and PathBuf for getting an absolute path -# Upstream license specification: MIT License: MIT URL: https://crates.io/crates/path-absolutize Source: %{crates_source} -# Initial patched metadata -# * drop windows-specific dependencies -Patch0: path-absolutize-fix-metadata.diff +# Automatically generated patch to strip foreign dependencies +Patch: path-absolutize-fix-metadata-auto.diff ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Library for extending `Path` and `PathBuf` in order to get an absolute path and @@ -36,13 +31,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} @@ -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}+lazy_static_cache-devel Summary: %{summary} @@ -62,11 +57,11 @@ BuildArch: noarch %description -n %{name}+lazy_static_cache-devel %{_description} -This package contains library source intended for building other packages -which use "lazy_static_cache" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "lazy_static_cache" feature of the "%{crate}" crate. %files -n %{name}+lazy_static_cache-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+once_cell_cache-devel Summary: %{summary} @@ -74,11 +69,11 @@ BuildArch: noarch %description -n %{name}+once_cell_cache-devel %{_description} -This package contains library source intended for building other packages -which use "once_cell_cache" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "once_cell_cache" feature of the "%{crate}" crate. %files -n %{name}+once_cell_cache-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+unsafe_cache-devel Summary: %{summary} @@ -86,11 +81,11 @@ BuildArch: noarch %description -n %{name}+unsafe_cache-devel %{_description} -This package contains library source intended for building other packages -which use "unsafe_cache" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "unsafe_cache" feature of the "%{crate}" crate. %files -n %{name}+unsafe_cache-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 39ac1c7..13afc12 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (path-absolutize-3.0.11.crate) = f96e102128642af78ac511fa65fd7d4e262cf2a271e542f187e471849db04aca70361d30ca56515a3d57595584404cf478ba7a5a5f4da982f9e5c8eadf629fc1 +SHA512 (path-absolutize-3.0.13.crate) = e143a53dae814cd956deee958fad56ed48f8d82a75eaa9c8d2f3951c587d9066dfc3a9c41fba72887680f1eab1eb888cb57d5cdb952b42896001fd67918f751b