diff --git a/.gitignore b/.gitignore index 2330ff3..e9031aa 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /form_urlencoded-1.0.0.crate /form_urlencoded-1.0.1.crate +/form_urlencoded-1.1.0.crate diff --git a/rust-form_urlencoded.spec b/rust-form_urlencoded.spec index 222a3e6..bbb5d33 100644 --- a/rust-form_urlencoded.spec +++ b/rust-form_urlencoded.spec @@ -1,25 +1,19 @@ -# Generated by rust2rpm 16 +# Generated by rust2rpm 23 %bcond_without check %global debug_package %{nil} %global crate form_urlencoded -Name: rust-%{crate} -Version: 1.0.1 +Name: rust-form_urlencoded +Version: 1.1.0 Release: %autorelease Summary: Parser and serializer for application/x-www-form-urlencoded -# Upstream license specification: MIT/Apache-2.0 -License: MIT or ASL 2.0 +License: MIT OR Apache-2.0 URL: https://crates.io/crates/form_urlencoded Source: %{crates_source} -ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Parser and serializer for the application/x-www-form-urlencoded syntax, as used @@ -33,12 +27,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-APACHE LICENSE-MIT -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -46,11 +41,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 2d2a7f7..2bc7cf7 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (form_urlencoded-1.0.1.crate) = 3ab371c223561a27ffbd35cf648ef4a9145d47bba9d71900a7c54cfc2f089175e9361f6352331a9a7fa018923b15e7a3553c8f9ff9fae80e1626e641a5faff68 +SHA512 (form_urlencoded-1.1.0.crate) = 9e245495dbf235b147e4216b313f2e6a96357d2782a66d71c08c2902c6a065701ca8ecdbb6b2035983a83c44cf36c921b5c71d63af0e02dd39bf5f8347117e11