diff --git a/.gitignore b/.gitignore index 562c4bb..ad6b3c7 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ /pest_derive-1.0.8.crate /pest_derive-2.0.1.crate /pest_derive-2.1.0.crate +/pest_derive-2.3.0.crate diff --git a/rust-pest_derive.spec b/rust-pest_derive.spec index 1b013d5..b727dbf 100644 --- a/rust-pest_derive.spec +++ b/rust-pest_derive.spec @@ -1,25 +1,22 @@ -# Generated by rust2rpm 10 +# Generated by rust2rpm 22 %bcond_without check %global debug_package %{nil} %global crate pest_derive -Name: rust-%{crate} -Version: 2.1.0 +Name: rust-pest_derive +Version: 2.3.0 Release: %autorelease Summary: Pest's derive macro # 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_derive Source: %{crates_source} ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Pest's derive macro.} @@ -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}/ +%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}/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 0b35195..1a07060 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (pest_derive-2.1.0.crate) = 4d554921b35b6c2491f56b859d389e93459552807df6ff989f9913a9314171e5b6eba93cf7e03528973d6025b663cde7b841d38fabd8197c33beddafaf83fbba +SHA512 (pest_derive-2.3.0.crate) = 0d3bb1e783cfbf5a3241c5db4306af3715d7b5467b6b9e20eb185fe9762af70f388cf0fb15b72c0079418e81f5456419351fb3dc656606fc9ee4a03dca11a918