diff --git a/.gitignore b/.gitignore index 821fec1..85b8bb5 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /keccak-0.1.0.crate +/keccak-0.1.2.crate diff --git a/rust-keccak.spec b/rust-keccak.spec index 880323b..db826c2 100644 --- a/rust-keccak.spec +++ b/rust-keccak.spec @@ -1,28 +1,25 @@ -# Generated by rust2rpm 13 +# Generated by rust2rpm 22 %bcond_without check %global debug_package %{nil} %global crate keccak -Name: rust-%{crate} -Version: 0.1.0 +Name: rust-keccak +Version: 0.1.2 Release: %autorelease -Summary: Keccak-f sponge function +Summary: Pure Rust implementation of the Keccak sponge function -# Upstream license specification: CC0-1.0 -License: CC0 +License: Apache-2.0 OR MIT URL: https://crates.io/crates/keccak Source: %{crates_source} ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: -Keccak-f sponge function.} +Pure Rust implementation of the Keccak sponge function including the keccak-f +and keccak-p variants.} %description %{_description} @@ -32,11 +29,15 @@ 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}/ +%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} @@ -44,11 +45,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 %package -n %{name}+no_unroll-devel Summary: %{summary} @@ -56,11 +57,23 @@ BuildArch: noarch %description -n %{name}+no_unroll-devel %{_description} -This package contains library source intended for building other packages -which use "no_unroll" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "no_unroll" feature of the "%{crate}" crate. %files -n %{name}+no_unroll-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+simd-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+simd-devel %{_description} + +This package contains library source intended for building other packages which +use the "simd" feature of the "%{crate}" crate. + +%files -n %{name}+simd-devel +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 diff --git a/sources b/sources index 821a486..8aac9a0 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (keccak-0.1.0.crate) = 5514a50d52979ed616290309cb27d17fd1521ee89ff51131fc2cd2ab38bae2a22f00749b8de2ab75420d557c7400b4f59a9bddaa532efffb22a5fed5fbcdf65d +SHA512 (keccak-0.1.2.crate) = 65b308152fa19c8991f1bfc65b38cf4f922be38abd905fb75acba1c3b751310e9e91a7f8d5ebc25c875a2773c4197961fb1e188d13756933d470507aab53439d