diff --git a/.gitignore b/.gitignore index e7a63c8..24a2da6 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /num_enum-0.5.3.crate /num_enum-0.5.4.crate /num_enum-0.5.5.crate +/num_enum-0.5.7.crate diff --git a/rust-num_enum.spec b/rust-num_enum.spec index 55f16d5..7e1cf68 100644 --- a/rust-num_enum.spec +++ b/rust-num_enum.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 20 +# Generated by rust2rpm 21 %bcond_without check %global debug_package %{nil} %global crate num_enum Name: rust-%{crate} -Version: 0.5.5 +Version: 0.5.7 Release: %autorelease Summary: Procedural macros to make inter-operation between primitives and enums easier @@ -16,7 +16,7 @@ Source: %{crates_source} ExclusiveArch: %{rust_arches} -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Procedural macros to make inter-operation between primitives and enums easier.} @@ -33,9 +33,11 @@ This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel -%license LICENSE-APACHE LICENSE-BSD LICENSE-MIT -%doc README.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-BSD +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -47,7 +49,7 @@ 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}+complex-expressions-devel Summary: %{summary} @@ -59,7 +61,7 @@ This package contains library source intended for building other packages which use the "complex-expressions" feature of the "%{crate}" crate. %files -n %{name}+complex-expressions-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+external_doc-devel Summary: %{summary} @@ -71,7 +73,19 @@ This package contains library source intended for building other packages which use the "external_doc" feature of the "%{crate}" crate. %files -n %{name}+external_doc-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+nightly-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+nightly-devel %{_description} + +This package contains library source intended for building other packages which +use the "nightly" feature of the "%{crate}" crate. + +%files -n %{name}+nightly-devel +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+std-devel Summary: %{summary} @@ -83,7 +97,7 @@ 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 315406d..e3da22e 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (num_enum-0.5.5.crate) = b29f9fb6749f28bb68c85022906602dadd0ff863930a1488c5dd91e86cfd00b8fb923c448a9cb3556fc43920822e252c0b02004f44ca9c6767e4009294da9a0e +SHA512 (num_enum-0.5.7.crate) = 14749c9fb3cb30366e4915b2afd00b1f005de753ac3458982ef53285efa718c8059bf4804f4db170f43c1978c222aa706f30757c191f8613b8165a54a7c5f4ce