diff --git a/.gitignore b/.gitignore index 87c11b2..f43d600 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /pest_generator-2.1.1.crate /pest_generator-2.1.2.crate /pest_generator-2.1.3.crate +/pest_generator-2.3.0.crate diff --git a/rust-pest_generator.spec b/rust-pest_generator.spec index 7501dbf..6fbfde2 100644 --- a/rust-pest_generator.spec +++ b/rust-pest_generator.spec @@ -1,25 +1,22 @@ -# Generated by rust2rpm 13 +# Generated by rust2rpm 22 %bcond_without check %global debug_package %{nil} %global crate pest_generator -Name: rust-%{crate} -Version: 2.1.3 +Name: rust-pest_generator +Version: 2.3.0 Release: %autorelease Summary: Pest code generator # Upstream license specification: MIT/Apache-2.0 -License: MIT or ASL 2.0 +License: MIT OR Apache-2.0 URL: https://crates.io/crates/pest_generator Source: %{crates_source} ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Pest code generator.} @@ -32,13 +29,14 @@ 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 -%doc _README.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/_README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -46,11 +44,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_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+std-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+std-devel %{_description} + +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 %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 diff --git a/sources b/sources index 8ac18f4..12271a4 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (pest_generator-2.1.3.crate) = 8be05ef3fd59dc4ccb7871388f8e3cb24cbc2f64eacf7a32fb887f1d8911b528ec545fe78bdd7beb03e2c04eb7fc0ad98ac9fce8579f95ea71cc280912f07c3b +SHA512 (pest_generator-2.3.0.crate) = 3d98d7276972988216373e398854d33d529f79c5d6912de2d3c40cd7688d287e3adffe31d48bd2e7cb501e256ad6ce7543fd26a1307919b8d4636fe45be3e817