From b44014ab6bc87dcb7eb6b2443e61184bc91a9868 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Sun, 20 Feb 2022 14:53:13 +0100 Subject: [PATCH] Initial import (sha2 0.9 compat package) --- .gitignore | 1 + .rust2rpm.conf | 5 +++ README.md | 3 -- rust-sha2_0.9.spec | 108 +++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 5 files changed, 115 insertions(+), 3 deletions(-) create mode 100644 .gitignore create mode 100644 .rust2rpm.conf delete mode 100644 README.md create mode 100644 rust-sha2_0.9.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..16626a7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/sha2-0.9.9.crate diff --git a/.rust2rpm.conf b/.rust2rpm.conf new file mode 100644 index 0000000..ab77a7d --- /dev/null +++ b/.rust2rpm.conf @@ -0,0 +1,5 @@ +[DEFAULT] +unwanted-features = + asm + asm-aarch64 + sha2-asm diff --git a/README.md b/README.md deleted file mode 100644 index e9a696e..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-sha2_0.9 - -The rust-sha2_0.9 package diff --git a/rust-sha2_0.9.spec b/rust-sha2_0.9.spec new file mode 100644 index 0000000..78961c4 --- /dev/null +++ b/rust-sha2_0.9.spec @@ -0,0 +1,108 @@ +# Generated by rust2rpm 20 +%bcond_without check +%global debug_package %{nil} + +%global crate sha2 + +Name: rust-%{crate}_0.9 +Version: 0.9.9 +Release: %autorelease +Summary: Pure Rust implementation of the SHA-2 hash function family + +# Upstream license specification: MIT OR Apache-2.0 +License: MIT or ASL 2.0 +URL: https://crates.io/crates/sha2 +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging + +%global _description %{expand: +Pure Rust implementation of the SHA-2 hash function family including SHA-224, +SHA-256, SHA-384, and SHA-512.} + +%description %{_description} + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel %{_description} + +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}/ + +%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 the "default" feature of the "%{crate}" crate. + +%files -n %{name}+default-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+compress-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+compress-devel %{_description} + +This package contains library source intended for building other packages which +use the "compress" feature of the "%{crate}" crate. + +%files -n %{name}+compress-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+force-soft-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+force-soft-devel %{_description} + +This package contains library source intended for building other packages which +use the "force-soft" feature of the "%{crate}" crate. + +%files -n %{name}+force-soft-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 the "std" feature of the "%{crate}" crate. + +%files -n %{name}+std-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 +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..a93ac8d --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (sha2-0.9.9.crate) = bc267467089ed546edc1caaa7a00f3f769fd1d5deeb655c1968985d284bd32e4fcee4e721cf89c30e8c3cadd2f88ac557b91f90183cab112702c587f753e5877