From c23000fe3f5af32dc5cd0e582006d9e52926da3f Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Thu, 11 Aug 2022 16:16:36 +0200 Subject: [PATCH] Update to version 2.2.2; Fixes RHBZ#2117001 --- .gitignore | 1 + rust-publicsuffix.spec | 41 +++++++++++++++++++++++++++-------------- sources | 2 +- 3 files changed, 29 insertions(+), 15 deletions(-) diff --git a/.gitignore b/.gitignore index 00cf054..f7ac38d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /publicsuffix-1.5.4.crate /publicsuffix-1.5.6.crate /publicsuffix-2.1.1.crate +/publicsuffix-2.2.2.crate diff --git a/rust-publicsuffix.spec b/rust-publicsuffix.spec index 8fa7739..e607ae4 100644 --- a/rust-publicsuffix.spec +++ b/rust-publicsuffix.spec @@ -1,22 +1,22 @@ -# Generated by rust2rpm 20 +# Generated by rust2rpm 22 %bcond_without check %global debug_package %{nil} %global crate publicsuffix -Name: rust-%{crate} -Version: 2.1.1 +Name: rust-publicsuffix +Version: 2.2.2 Release: %autorelease Summary: Extract root domain and suffix from a domain name # Upstream license specification: MIT/Apache-2.0 -License: MIT or ASL 2.0 +License: MIT OR Apache-2.0 URL: https://crates.io/crates/publicsuffix Source: %{crates_source} ExclusiveArch: %{rust_arches} -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Extract root domain and suffix from a domain name.} @@ -33,9 +33,10 @@ This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel -%license LICENSE LICENSE-APACHE -%doc README.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE +%license %{crate_instdir}/LICENSE-APACHE +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -47,7 +48,7 @@ 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}+anycase-devel Summary: %{summary} @@ -59,7 +60,19 @@ This package contains library source intended for building other packages which use the "anycase" feature of the "%{crate}" crate. %files -n %{name}+anycase-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+hashbrown-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+hashbrown-devel %{_description} + +This package contains library source intended for building other packages which +use the "hashbrown" feature of the "%{crate}" crate. + +%files -n %{name}+hashbrown-devel +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+idna-devel Summary: %{summary} @@ -71,7 +84,7 @@ This package contains library source intended for building other packages which use the "idna" feature of the "%{crate}" crate. %files -n %{name}+idna-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+punycode-devel Summary: %{summary} @@ -83,7 +96,7 @@ This package contains library source intended for building other packages which use the "punycode" feature of the "%{crate}" crate. %files -n %{name}+punycode-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+std-devel Summary: %{summary} @@ -95,7 +108,7 @@ This package contains library source intended for building other packages which use the "std" feature of the "%{crate}" crate. %files -n %{name}+std-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+unicase-devel Summary: %{summary} @@ -107,7 +120,7 @@ This package contains library source intended for building other packages which use the "unicase" feature of the "%{crate}" crate. %files -n %{name}+unicase-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 ffce25d..7596a37 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (publicsuffix-2.1.1.crate) = f73dc11b4d1fb4d28587c95903f288701835888772cfd4589c49c1baf9155ba817def1018bb091d3fc4639899c36ec3b524096ca22a0d9b2e8785e056a510b6f +SHA512 (publicsuffix-2.2.2.crate) = ae34b4606b0a0950588c93c10404471a4290d111d2c6b61c8645660f227d0e9b847d9c90788f6d4374cb79bb7e94ed3e4a9322afb9b876830c8afd57a3095580