diff --git a/.gitignore b/.gitignore index 86ffa65..6754f89 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /*.src.rpm /spki-0.4.1.crate +/spki-0.7.2.crate diff --git a/rust-spki.spec b/rust-spki.spec index 1845b02..d7caa80 100644 --- a/rust-spki.spec +++ b/rust-spki.spec @@ -1,26 +1,23 @@ -# Generated by rust2rpm 20 +# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate spki -Name: rust-%{crate} -Version: 0.4.1 +Name: rust-spki +Version: 0.7.2 Release: %autorelease Summary: X.509 Subject Public Key Info (RFC5280) describing public keys -# 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/spki Source: %{crates_source} -ExclusiveArch: %{rust_arches} - -BuildRequires: rust-packaging +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: -X.509 Subject Public Key Info (RFC5280) describing public keys as well as their -associated AlgorithmIdentifiers (i.e. OIDs).} +X.509 Subject Public Key Info (RFC5280) describing public keys as well +as their associated AlgorithmIdentifiers (i.e. OIDs).} %description %{_description} @@ -34,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} @@ -48,7 +47,79 @@ 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} +BuildArch: noarch + +%description -n %{name}+alloc-devel %{_description} + +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 %{crate_instdir}/Cargo.toml + +%package -n %{name}+arbitrary-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+arbitrary-devel %{_description} + +This package contains library source intended for building other packages which +use the "arbitrary" feature of the "%{crate}" crate. + +%files -n %{name}+arbitrary-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+base64-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+base64-devel %{_description} + +This package contains library source intended for building other packages which +use the "base64" feature of the "%{crate}" crate. + +%files -n %{name}+base64-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+fingerprint-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+fingerprint-devel %{_description} + +This package contains library source intended for building other packages which +use the "fingerprint" feature of the "%{crate}" crate. + +%files -n %{name}+fingerprint-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+pem-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+pem-devel %{_description} + +This package contains library source intended for building other packages which +use the "pem" feature of the "%{crate}" crate. + +%files -n %{name}+pem-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+sha2-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+sha2-devel %{_description} + +This package contains library source intended for building other packages which +use the "sha2" feature of the "%{crate}" crate. + +%files -n %{name}+sha2-devel +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+std-devel Summary: %{summary} @@ -60,7 +131,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 146f114..15286bb 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (spki-0.4.1.crate) = 652e96b9fbc417efa255b4308776180ce4aa8a918adcc66852dd8bab19444a1f95b2caec8a00c40afe1888b91f5d8c78166b0156797f59774b1f2f3f3583a33e +SHA512 (spki-0.7.2.crate) = 25eab1b8590ed849ce1e93ac286e51532cfbaedc8c4ba98449ada0d675c8bef3bdeafc942fdf574aa8def0d148b7a6c694c69cbf37a9a3da12540b3be67d7fdb