diff --git a/.gitignore b/.gitignore index a4669c6..00cf054 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /publicsuffix-1.5.4.crate /publicsuffix-1.5.6.crate +/publicsuffix-2.1.1.crate diff --git a/rust-publicsuffix.spec b/rust-publicsuffix.spec index d336a61..8fa7739 100644 --- a/rust-publicsuffix.spec +++ b/rust-publicsuffix.spec @@ -1,14 +1,13 @@ -# Generated by rust2rpm 16 -# * rspec not packaged -%bcond_with check +# Generated by rust2rpm 20 +%bcond_without check %global debug_package %{nil} %global crate publicsuffix Name: rust-%{crate} -Version: 1.5.6 +Version: 2.1.1 Release: %autorelease -Summary: Robust domain name parsing and RFC compliant email address validation +Summary: Extract root domain and suffix from a domain name # Upstream license specification: MIT/Apache-2.0 License: MIT or ASL 2.0 @@ -16,14 +15,11 @@ URL: https://crates.io/crates/publicsuffix Source: %{crates_source} ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif BuildRequires: rust-packaging %global _description %{expand: -Robust domain name parsing and RFC compliant email address validation.} +Extract root domain and suffix from a domain name.} %description %{_description} @@ -33,11 +29,11 @@ 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 +%license LICENSE LICENSE-APACHE %doc README.md %{cargo_registry}/%{crate}-%{version_no_tilde}/ @@ -47,34 +43,70 @@ 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 -%package -n %{name}+native-tls-devel +%package -n %{name}+anycase-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+anycase-devel %{_description} + +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 + +%package -n %{name}+idna-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+idna-devel %{_description} + +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 + +%package -n %{name}+punycode-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+punycode-devel %{_description} + +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 + +%package -n %{name}+std-devel Summary: %{summary} BuildArch: noarch -%description -n %{name}+native-tls-devel %{_description} +%description -n %{name}+std-devel %{_description} -This package contains library source intended for building other packages -which use "native-tls" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "std" feature of the "%{crate}" crate. -%files -n %{name}+native-tls-devel +%files -n %{name}+std-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml -%package -n %{name}+remote_list-devel +%package -n %{name}+unicase-devel Summary: %{summary} BuildArch: noarch -%description -n %{name}+remote_list-devel %{_description} +%description -n %{name}+unicase-devel %{_description} -This package contains library source intended for building other packages -which use "remote_list" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "unicase" feature of the "%{crate}" crate. -%files -n %{name}+remote_list-devel +%files -n %{name}+unicase-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %prep diff --git a/sources b/sources index 7cfbc0f..ffce25d 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (publicsuffix-1.5.6.crate) = 8042303689ec7632686b6cd83ce7d313fe174accaabea840ac7e39d4b880144cca9410d401d78d715a7da74f70d5b55cb351f00497cc5628beb604c492448b94 +SHA512 (publicsuffix-2.1.1.crate) = f73dc11b4d1fb4d28587c95903f288701835888772cfd4589c49c1baf9155ba817def1018bb091d3fc4639899c36ec3b524096ca22a0d9b2e8785e056a510b6f