diff --git a/.gitignore b/.gitignore index f49c750..250dc1c 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /inventory-0.1.10.crate /inventory-0.1.11.crate +/inventory-0.2.2.crate diff --git a/rust-inventory.spec b/rust-inventory.spec index b2253d5..6cb2897 100644 --- a/rust-inventory.spec +++ b/rust-inventory.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 18 +# Generated by rust2rpm 21 %bcond_without check %global debug_package %{nil} %global crate inventory Name: rust-%{crate} -Version: 0.1.11 +Version: 0.2.2 Release: %autorelease Summary: Typed distributed plugin registration @@ -15,11 +15,8 @@ URL: https://crates.io/crates/inventory Source: %{crates_source} ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Typed distributed plugin registration.} @@ -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-APACHE LICENSE-MIT -%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,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 e8e1fd5..e3d5586 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (inventory-0.1.11.crate) = 350dfba4bc07b0702ef505c4993643465e2cc05102f3763c36f91782a8e0a1fb88d99d56cae09eba7abb989197eabc7a5f75212778eb6d5cb1e3f108635f364d +SHA512 (inventory-0.2.2.crate) = fdf23e0b3ac277c69817181a1c24362276755c25c16f307198a110d2b8d0272cf85f1cb08a92d4e2b1f4430a5b87db4dc21f31ff0b0b7fddeddbc44982e2ec18