From 61bd4e9477fbdaf09d6d8040a36e20a80afbd33d Mon Sep 17 00:00:00 2001 From: Peter Robinson Date: Mon, 14 Sep 2020 07:43:00 +0100 Subject: [PATCH] initial import --- .gitignore | 1 + polyval-fix-metadata.diff | 11 ++++ rust-polyval.spec | 102 ++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 115 insertions(+) create mode 100644 .gitignore create mode 100644 polyval-fix-metadata.diff create mode 100644 rust-polyval.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a682041 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/polyval-*.crate diff --git a/polyval-fix-metadata.diff b/polyval-fix-metadata.diff new file mode 100644 index 0000000..b294502 --- /dev/null +++ b/polyval-fix-metadata.diff @@ -0,0 +1,11 @@ +--- polyval-0.4.0/Cargo.toml 2020-06-06T15:27:27+00:00 ++++ polyval-0.4.0/Cargo.toml 2020-09-11T17:14:32.880375+00:00 +@@ -44,7 +44,7 @@ + version = "0.1.1" + + [dev-dependencies.hex-literal] +-version = "0.1" ++version = "0.2.1" + + [features] + std = ["universal-hash/std"] diff --git a/rust-polyval.spec b/rust-polyval.spec new file mode 100644 index 0000000..ffcf1b6 --- /dev/null +++ b/rust-polyval.spec @@ -0,0 +1,102 @@ +# Generated by rust2rpm 13 +%bcond_with check +%global debug_package %{nil} + +%global crate polyval + +Name: rust-%{crate} +Version: 0.4.0 +Release: 1%{?dist} +Summary: GHASH-like universal hash over GF(2^128) useful for constructing a Message Authentication Code (MAC) + +# Upstream license specification: Apache-2.0 OR MIT +License: ASL 2.0 or MIT +URL: https://crates.io/crates/polyval +Source: %{crates_source} +# Initial patched metadata +Patch0: polyval-fix-metadata.diff + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +GHASH-like universal hash over GF(2^128) useful for constructing a Message +Authentication Code (MAC).} + +%description %{_description} + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel %{_description} + +This package contains library source intended for building other packages +which use "%{crate}" crate. + +%files devel +%license LICENSE-APACHE LICENSE-MIT +%doc README.md +%{cargo_registry}/%{crate}-%{version_no_tilde}/ + +%package -n %{name}+default-devel +Summary: %{summary} +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. + +%files -n %{name}+default-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+std-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+std-devel %{_description} + +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_no_tilde}/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 "zeroize" feature of "%{crate}" crate. + +%files -n %{name}+zeroize-devel +%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 + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +* Fri Sep 11 18:14:32 BST 2020 Peter Robinson - 0.4.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..c5bcd23 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (polyval-0.4.0.crate) = 4cb331e46d899686475af45dca79e5e14263f987d3ddce0936799220c6c0852611b11b86b143c1eb053901578a5e70be6dde12f349b437e1500989d72eb82a45