From fcce3df7b38c8cdbd8ca0c5835dc45a97746d349 Mon Sep 17 00:00:00 2001 From: Igor Raits Date: Wed, 24 Jun 2020 08:03:29 +0200 Subject: [PATCH] Update to 0.4.0 Signed-off-by: Igor Raits --- .gitignore | 1 + rust-block-modes.spec | 49 +++++++++++++++++++++++++++---------------- sources | 2 +- 3 files changed, 33 insertions(+), 19 deletions(-) diff --git a/.gitignore b/.gitignore index a33f01d..b7016a1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /block-modes-0.3.2.crate /block-modes-0.3.3.crate +/block-modes-0.4.0.crate diff --git a/rust-block-modes.spec b/rust-block-modes.spec index 5804e19..ce4050f 100644 --- a/rust-block-modes.spec +++ b/rust-block-modes.spec @@ -1,34 +1,28 @@ -# Generated by rust2rpm -%bcond_with check +# Generated by rust2rpm 15 +%bcond_without check %global debug_package %{nil} %global crate block-modes Name: rust-%{crate} -Version: 0.3.3 -Release: 3%{?dist} +Version: 0.4.0 +Release: 1%{?dist} Summary: Block cipher modes of operation # Upstream license specification: MIT OR Apache-2.0 License: MIT or ASL 2.0 URL: https://crates.io/crates/block-modes Source: %{crates_source} -# Initial patched metadata -# * Update hex-literal to 0.2, https://github.com/RustCrypto/block-ciphers/pull/45 -Patch0: block-modes-fix-metadata.diff ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif BuildRequires: rust-packaging -BuildRequires: (crate(block-cipher-trait/default) >= 0.6.0 with crate(block-cipher-trait/default) < 0.7.0) -BuildRequires: (crate(block-padding/default) >= 0.1.0 with crate(block-padding/default) < 0.2.0) -%if %{with check} -BuildRequires: (crate(aes-soft/default) >= 0.3.0 with crate(aes-soft/default) < 0.4.0) -BuildRequires: (crate(hex-literal/default) >= 0.2.0 with crate(hex-literal/default) < 0.3.0) -%endif -%global _description \ -Block cipher modes of operation. +%global _description %{expand: +Block cipher modes of operation.} %description %{_description} @@ -43,7 +37,8 @@ which use "%{crate}" crate. %files devel %license LICENSE-APACHE LICENSE-MIT -%{cargo_registry}/%{crate}-%{version}/ +%doc README.md CHANGELOG.md +%{cargo_registry}/%{crate}-%{version_no_tilde}/ %package -n %{name}+default-devel Summary: %{summary} @@ -55,7 +50,19 @@ This package contains library source intended for building other packages which use "default" feature of "%{crate}" crate. %files -n %{name}+default-devel -%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 "alloc" feature of "%{crate}" crate. + +%files -n %{name}+alloc-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+std-devel Summary: %{summary} @@ -67,12 +74,15 @@ This package contains library source intended for building other packages which use "std" feature of "%{crate}" crate. %files -n %{name}+std-devel -%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep +%generate_buildrequires +%cargo_generate_buildrequires + %build %cargo_build @@ -85,6 +95,9 @@ which use "std" feature of "%{crate}" crate. %endif %changelog +* Wed Jun 24 08:02:49 CEST 2020 Igor Raits - 0.4.0-1 +- Update to 0.4.0 + * Thu Jan 30 2020 Fedora Release Engineering - 0.3.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild diff --git a/sources b/sources index 0ff0c8b..a8d56ce 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (block-modes-0.3.3.crate) = 7a24506a559eb9d35b77935c23e4cfd160f988ee71d1c8f8d7c6e7d0b5533ade5d8121ef76bc08786ad7232f2ba50276983a44c8825468c3ff322fedff56b656 +SHA512 (block-modes-0.4.0.crate) = 41256e858c43b1dcee3be51538f3c3fd951c677ef112295f6c6dbaf125809cc07ddf1c7c8798df7d65eb682a4080b7d1bfdafd932ca273094a8ebfc068ca50e7