From 09cb683a3acfdac54ee8cf2413e8bed9290551d3 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Mon, 13 Dec 2021 18:01:21 +0100 Subject: [PATCH] Initial import (#2031162) --- .gitignore | 4 ++ README.md | 3 -- rust-base64ct.spec | 97 ++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 102 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-base64ct.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a76919d --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/results_*/ +/*.src.rpm + +/base64ct-1.3.0.crate diff --git a/README.md b/README.md deleted file mode 100644 index 57af5ac..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-base64ct - -The rust-base64ct package diff --git a/rust-base64ct.spec b/rust-base64ct.spec new file mode 100644 index 0000000..8cc8fb3 --- /dev/null +++ b/rust-base64ct.spec @@ -0,0 +1,97 @@ +# Generated by rust2rpm 20 +%bcond_without check +%global debug_package %{nil} + +%global crate base64ct + +Name: rust-%{crate} +Version: 1.3.0 +Release: %autorelease +Summary: Pure Rust, constant-time implementation of Base64 (RFC 4648) + +# Upstream license specification: Apache-2.0 OR MIT +License: ASL 2.0 or MIT +URL: https://crates.io/crates/base64ct +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging + +%global _description %{expand: +Pure Rust implementation of Base64 (RFC 4648) which avoids any usages of data- +dependent branches/LUTs and thereby provides portable "best effort" constant- +time operation and embedded-friendly no_std support.} + +%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}+alloc-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+alloc-devel %{_description} + +This package contains library source intended for building other packages which +use the "alloc" feature of the "%{crate}" crate. + +%files -n %{name}+alloc-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..c1c00fa --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (base64ct-1.3.0.crate) = 514f1e0f8594a8ee911fa277789a602ba59ebe6631f5315c00d3cbf82f411c3095be3c46a83e07f2c65a68cc4c68ca8ebf81dc2d27a631e4d637dfd1a834bd53