diff --git a/.gitignore b/.gitignore index f10a75f..53dba64 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ /der_derive-0.4.1.crate /LICENSE-APACHE /LICENSE-MIT +/der_derive-0.7.1.crate diff --git a/rust-der_derive.spec b/rust-der_derive.spec index e75d19c..97c9923 100644 --- a/rust-der_derive.spec +++ b/rust-der_derive.spec @@ -1,28 +1,23 @@ -# Generated by rust2rpm 20 +# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate der_derive -Name: rust-%{crate} -Version: 0.4.1 +Name: rust-der_derive +Version: 0.7.1 Release: %autorelease -Summary: Custom derives for Choice and Message traits from the der crate +Summary: Custom derive support for the der crate's Choice and Sequence traits -# Upstream license specification: Apache-2.0 OR MIT -License: ASL 2.0 or MIT +License: Apache-2.0 OR MIT URL: https://crates.io/crates/der_derive Source: %{crates_source} -# https://github.com/RustCrypto/formats/issues/283 -Source1: https://github.com/RustCrypto/formats/raw/04219e9/der/derive/LICENSE-APACHE -Source2: https://github.com/RustCrypto/formats/raw/04219e9/der/derive/LICENSE-MIT -ExclusiveArch: %{rust_arches} - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: -Custom derive support for the `der` crate's `Choice` and `Message` traits.} +Custom derive support for the `der` crate's `Choice` and `Sequence` +traits.} %description %{_description} @@ -36,9 +31,11 @@ This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel -%license LICENSE-APACHE LICENSE-MIT -%doc CHANGELOG.md README.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/CHANGELOG.md +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -50,12 +47,11 @@ 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 %cargo_prep -cp %{SOURCE1} %{SOURCE2} . %generate_buildrequires %cargo_generate_buildrequires diff --git a/sources b/sources index 77d740a..b3b78de 100644 --- a/sources +++ b/sources @@ -1,3 +1 @@ -SHA512 (der_derive-0.4.1.crate) = fa319e8a84d6f259b21c8734902b2f878c684c391c51c55d118ed1919a6e1db18419ab76e268eb56c426e38d5a79bdd0d08004c6599181989a963366aa9649ed -SHA512 (LICENSE-APACHE) = 5119f6179b85acc303cf17cd6dbe86193ccb831c3176f0cc2633e1b0ca9e832cac5fcff83992f181db06bb22d8ec273d4faec59dbbd897d242dd696c38d42830 -SHA512 (LICENSE-MIT) = 6cbdc5471b00cd385deae72f8a5358149774ed3b01b332b749c14f089b8cd8363aaeaaaaec5768fcb8d1a13a0a172a7c0526efc2dfd35d49cc503fda7c1a1782 +SHA512 (der_derive-0.7.1.crate) = fead718d0ee8e6744d7f0f25fe8631167b6affa73a76ba5c1fb458ba696ca7f5cdc50ddbb71b4dd81a7d72c1b02fb2d71bb6872208f08735c74641ce8f6402c0