diff --git a/.gitignore b/.gitignore index 4f96e2b..83241a5 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /*.src.rpm /der-0.4.5.crate +/der-0.7.6.crate diff --git a/rust-der.spec b/rust-der.spec index 02d5ad8..6b4941c 100644 --- a/rust-der.spec +++ b/rust-der.spec @@ -1,27 +1,24 @@ -# Generated by rust2rpm 20 +# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate der -Name: rust-%{crate} -Version: 0.4.5 +Name: rust-der +Version: 0.7.6 Release: %autorelease Summary: Pure Rust embedded-friendly implementation of DER for ASN.1 -# 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 Source: %{crates_source} -ExclusiveArch: %{rust_arches} - -BuildRequires: rust-packaging +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: -Pure Rust embedded-friendly implementation of the Distinguished Encoding Rules -(DER) for Abstract Syntax Notation One (ASN.1) as described in ITU X.690 with -full support for heapless no_std targets.} +Pure Rust embedded-friendly implementation of the Distinguished Encoding +Rules (DER) for Abstract Syntax Notation One (ASN.1) as described in ITU +X.690 with full support for heapless no_std targets.} %description %{_description} @@ -35,9 +32,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} @@ -49,7 +48,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}+alloc-devel Summary: %{summary} @@ -61,79 +60,79 @@ This package contains library source intended for building other packages which use the "alloc" feature of the "%{crate}" crate. %files -n %{name}+alloc-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml -%package -n %{name}+bigint-devel +%package -n %{name}+arbitrary-devel Summary: %{summary} BuildArch: noarch -%description -n %{name}+bigint-devel %{_description} +%description -n %{name}+arbitrary-devel %{_description} This package contains library source intended for building other packages which -use the "bigint" feature of the "%{crate}" crate. +use the "arbitrary" feature of the "%{crate}" crate. -%files -n %{name}+bigint-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%files -n %{name}+arbitrary-devel +%ghost %{crate_instdir}/Cargo.toml -%package -n %{name}+const-oid-devel +%package -n %{name}+derive-devel Summary: %{summary} BuildArch: noarch -%description -n %{name}+const-oid-devel %{_description} +%description -n %{name}+derive-devel %{_description} This package contains library source intended for building other packages which -use the "const-oid" feature of the "%{crate}" crate. +use the "derive" feature of the "%{crate}" crate. -%files -n %{name}+const-oid-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%files -n %{name}+derive-devel +%ghost %{crate_instdir}/Cargo.toml -%package -n %{name}+crypto-bigint-devel +%package -n %{name}+flagset-devel Summary: %{summary} BuildArch: noarch -%description -n %{name}+crypto-bigint-devel %{_description} +%description -n %{name}+flagset-devel %{_description} This package contains library source intended for building other packages which -use the "crypto-bigint" feature of the "%{crate}" crate. +use the "flagset" feature of the "%{crate}" crate. -%files -n %{name}+crypto-bigint-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%files -n %{name}+flagset-devel +%ghost %{crate_instdir}/Cargo.toml -%package -n %{name}+der_derive-devel +%package -n %{name}+oid-devel Summary: %{summary} BuildArch: noarch -%description -n %{name}+der_derive-devel %{_description} +%description -n %{name}+oid-devel %{_description} This package contains library source intended for building other packages which -use the "der_derive" feature of the "%{crate}" crate. +use the "oid" feature of the "%{crate}" crate. -%files -n %{name}+der_derive-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%files -n %{name}+oid-devel +%ghost %{crate_instdir}/Cargo.toml -%package -n %{name}+derive-devel +%package -n %{name}+pem-devel Summary: %{summary} BuildArch: noarch -%description -n %{name}+derive-devel %{_description} +%description -n %{name}+pem-devel %{_description} This package contains library source intended for building other packages which -use the "derive" feature of the "%{crate}" crate. +use the "pem" feature of the "%{crate}" crate. -%files -n %{name}+derive-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%files -n %{name}+pem-devel +%ghost %{crate_instdir}/Cargo.toml -%package -n %{name}+oid-devel +%package -n %{name}+real-devel Summary: %{summary} BuildArch: noarch -%description -n %{name}+oid-devel %{_description} +%description -n %{name}+real-devel %{_description} This package contains library source intended for building other packages which -use the "oid" feature of the "%{crate}" crate. +use the "real" feature of the "%{crate}" crate. -%files -n %{name}+oid-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%files -n %{name}+real-devel +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+std-devel Summary: %{summary} @@ -145,7 +144,31 @@ 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 + +%package -n %{name}+time-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+time-devel %{_description} + +This package contains library source intended for building other packages which +use the "time" feature of the "%{crate}" crate. + +%files -n %{name}+time-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+zeroize-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+zeroize-devel %{_description} + +This package contains library source intended for building other packages which +use the "zeroize" feature of the "%{crate}" crate. + +%files -n %{name}+zeroize-devel +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 diff --git a/sources b/sources index c6e4df5..c1d0d26 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (der-0.4.5.crate) = 9d58e6b0fe348a53adc3dbd944bad4499f65efa14d19dad0a62f026801d8c31fcaee877f31242e73dfb9816a58489fb88c59e289c9a6a21c8edde325050329c6 +SHA512 (der-0.7.6.crate) = 54a43a626a6f3371e15a3fe3e315444887c7e1182cc035702661f1ffd1984fd3e4c0b7758b955fdbf0e4d5146a3439a3570568dc50eef889b3485b409d5cc5a1