diff --git a/.gitignore b/.gitignore index 1204462..912bd32 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /enum-as-inner-0.3.1.crate /enum-as-inner-0.3.2.crate /enum-as-inner-0.3.3.crate +/enum-as-inner-0.4.0.crate diff --git a/rust-enum-as-inner.spec b/rust-enum-as-inner.spec index b15acc6..137a647 100644 --- a/rust-enum-as-inner.spec +++ b/rust-enum-as-inner.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 13 +# Generated by rust2rpm 21 %bcond_without check %global debug_package %{nil} %global crate enum-as-inner Name: rust-%{crate} -Version: 0.3.3 +Version: 0.4.0 Release: %autorelease Summary: Proc-macro for deriving inner field accessor functions on enums @@ -15,11 +15,8 @@ URL: https://crates.io/crates/enum-as-inner Source: %{crates_source} ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Proc-macro for deriving inner field accessor functions on enums.} @@ -32,13 +29,17 @@ 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 copyright.txt -%doc README.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%license %{crate_instdir}/copyright.txt +%doc %{crate_instdir}/CHANGELOG.md +%doc %{crate_instdir}/CODE_OF_CONDUCT.md +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -46,11 +47,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 901e730..a0b0ad1 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (enum-as-inner-0.3.3.crate) = 83bc21cc6c995227ff569c38d2f734b54000683cd39211f9010becd7a8fa470955936ce5c317718f9ac5742294e7362c5fc97dc68afec42560a8c332caa50df2 +SHA512 (enum-as-inner-0.4.0.crate) = d20bc869eb562b614678ea3cc9bbb22d189f42c91d697068ac8aef35e68125175ff6d3307dee46eb45edda8ba97fa88599a3d573ee2f0d8037355c10566adbdf