diff --git a/.gitignore b/.gitignore index 4533d1b..db535a4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /percent-encoding-1.0.0.crate /percent-encoding-1.0.1.crate /percent-encoding-2.1.0.crate +/percent-encoding-2.2.0.crate diff --git a/rust-percent-encoding.spec b/rust-percent-encoding.spec index 109f4ac..ed9b9d0 100644 --- a/rust-percent-encoding.spec +++ b/rust-percent-encoding.spec @@ -1,25 +1,21 @@ -# Generated by rust2rpm 10 +# Generated by rust2rpm 22 %bcond_without check %global debug_package %{nil} %global crate percent-encoding -Name: rust-%{crate} -Version: 2.1.0 +Name: rust-percent-encoding +Version: 2.2.0 Release: %autorelease Summary: Percent encoding and decoding -# Upstream license specification: MIT/Apache-2.0 -License: MIT or ASL 2.0 +License: MIT OR Apache-2.0 URL: https://crates.io/crates/percent-encoding Source: %{crates_source} ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Percent encoding and decoding.} @@ -32,12 +28,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-MIT LICENSE-APACHE -%{cargo_registry}/%{crate}-%{version}/ +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -45,11 +42,23 @@ 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}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+alloc-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+alloc-devel %{_description} + +This package contains library source intended for building other packages which +use the "alloc" feature of the "%{crate}" crate. + +%files -n %{name}+alloc-devel +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 diff --git a/sources b/sources index e06fdb0..b51b004 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (percent-encoding-2.1.0.crate) = 98af4dfa7c6a3cf0d5aa929c436f9eb1ba1b576a944513f1284e6df2ad06be7cab9eba145d888d50af88f8c970bacc702b323041bec6d4fa1dc34095186c628a +SHA512 (percent-encoding-2.2.0.crate) = 890a5256d2b4290e12e04a02c3529f3a017faa2b6016a4dd0f08b36509f0b1107eacfcb4702024d6a21ff8852a11f263c1adc096b16ef8d12c45a734c087fe68