diff --git a/.gitignore b/.gitignore index be28ae3..87c046b 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /enum-map-derive-0.5.0.crate +/enum-map-derive-0.10.0.crate diff --git a/rust-enum-map-derive.spec b/rust-enum-map-derive.spec index a74e891..7aef910 100644 --- a/rust-enum-map-derive.spec +++ b/rust-enum-map-derive.spec @@ -1,26 +1,20 @@ -# Generated by rust2rpm 16 -# Disable tests due to circual dependency with enum-map +# Generated by rust2rpm 23 +# the doctests are examples that need enum-map to work %bcond_with check %global debug_package %{nil} %global crate enum-map-derive -Name: rust-%{crate} -Version: 0.5.0 +Name: rust-enum-map-derive +Version: 0.10.0 Release: %autorelease Summary: Macros 1.1 implementation of #[derive(Enum)] -# Upstream license specification: MIT/Apache-2.0 -License: MIT or ASL 2.0 +License: MIT OR Apache-2.0 URL: https://crates.io/crates/enum-map-derive Source: %{crates_source} -ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Macros 1.1 implementation of #[derive(Enum)].} @@ -33,11 +27,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 -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +# FIXME: no license files detected +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -45,11 +41,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 0cfd145..96015ca 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (enum-map-derive-0.5.0.crate) = a94c45095cb96b45e79c3bae6492158b08c29386f8c03bd7d9093bc65d836c635667cdc081d1f501a5d35ec81d122baad4702301985e44f5bc1ac08db120e1aa +SHA512 (enum-map-derive-0.10.0.crate) = 260390d3083ede5835529f771e7ff2287e6e58c70f15eb41890fe295b0c54421830588819dbf334bdc1f9c42d9e94f0b2e777fd27d1a889a87f94944f89bce1e