diff --git a/.gitignore b/.gitignore index 8677159..d3da690 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /*.src.rpm /foreign-types-macros-0.2.1.crate +/foreign-types-macros-0.2.2.crate diff --git a/rust-foreign-types-macros.spec b/rust-foreign-types-macros.spec index 05b3640..e30b9f0 100644 --- a/rust-foreign-types-macros.spec +++ b/rust-foreign-types-macros.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 13 +# Generated by rust2rpm 21 %bcond_without check %global debug_package %{nil} %global crate foreign-types-macros Name: rust-%{crate} -Version: 0.2.1 +Version: 0.2.2 Release: %autorelease Summary: Internal crate used by foreign-types @@ -15,11 +15,8 @@ URL: https://crates.io/crates/foreign-types-macros Source: %{crates_source} ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Internal crate used by foreign-types.} @@ -32,12 +29,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} @@ -45,11 +43,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 %package -n %{name}+std-devel Summary: %{summary} @@ -57,11 +55,11 @@ BuildArch: noarch %description -n %{name}+std-devel %{_description} -This package contains library source intended for building other packages -which use "std" feature of "%{crate}" crate. +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 %{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 6c2a1e9..ac33a2b 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (foreign-types-macros-0.2.1.crate) = 721149d38ed605556783639bb0c082b13f2736e871774220458d26143b394d517376e70a503f473584d37dad8e4b3197071d50087e9d3d11548521fe38e87bf7 +SHA512 (foreign-types-macros-0.2.2.crate) = b5ce7599bfa9342f7586dbc0c7124ad19d560afe75cfbd758eb17ebfe7ac8c7f8f5515c4b527df4e8bfe812a8ac9df1a921d40df6d0e6e371a0be3795a36da05