From 99b3c11305ba38002f55c7035f75d4067bb4ba45 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Wed, 16 Mar 2022 14:11:45 +0100 Subject: [PATCH] Update to version 7.1.0; Fixes RHBZ#2048584 --- .gitignore | 1 + rust-nettle.spec | 27 +++++++++++++-------------- sources | 2 +- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.gitignore b/.gitignore index b35700e..2f73984 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ /nettle-7.0.1.crate /nettle-7.0.2.crate /nettle-7.0.3.crate +/nettle-7.1.0.crate diff --git a/rust-nettle.spec b/rust-nettle.spec index 140d7cd..74d0c46 100644 --- a/rust-nettle.spec +++ b/rust-nettle.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 18 +# Generated by rust2rpm 21 %bcond_without check %global debug_package %{nil} %global crate nettle Name: rust-%{crate} -Version: 7.0.3 +Version: 7.1.0 Release: %autorelease Summary: Rust bindings for the Nettle cryptographic library @@ -20,11 +20,8 @@ Source: %{crates_source} Patch1: 0001-drop-secp192r1-and-secp224r1-elliptic-curves.patch ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Rust bindings for the Nettle cryptographic library.} @@ -37,13 +34,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 -%license LICENSE-GPL2 LICENSE-GPL3 LICENSE-LGPL3 -%doc README.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE-GPL2 +%license %{crate_instdir}/LICENSE-GPL3 +%license %{crate_instdir}/LICENSE-LGPL3 +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -51,11 +50,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 %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 diff --git a/sources b/sources index 50f73e9..ca643b2 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (nettle-7.0.3.crate) = 5c8f863c8667b73855ee6176f23e31beaffae24a61c0e9ccb82e47c3b9b14a08f6e52a0ab1b8d10cd6f7d1fb6cd215c5564d0d9d37af135b2ecb0cd1e3cd23a6 +SHA512 (nettle-7.1.0.crate) = ebd0ae8d1a210f065e07f0cd9e0fc79d8b526a15e9f72174f818a2dcc607bdd04712206e487a84ac24a97b6df1a4b49788f751b5d254d1da4127b15a56ec4dc6