From 243eae1f487f65a32c8546ab83e06ff8b3546fd5 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Tue, 6 Jun 2023 19:31:45 +0200 Subject: [PATCH] Initial import (#2211087) --- .gitignore | 1 + README.md | 3 -- rust-base16ct.spec | 97 ++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 99 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-base16ct.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..375b73a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/base16ct-0.2.0.crate diff --git a/README.md b/README.md deleted file mode 100644 index f4614e0..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-base16ct - -The rust-base16ct package diff --git a/rust-base16ct.spec b/rust-base16ct.spec new file mode 100644 index 0000000..6964035 --- /dev/null +++ b/rust-base16ct.spec @@ -0,0 +1,97 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate base16ct + +Name: rust-base16ct +Version: 0.2.0 +Release: %autorelease +Summary: Pure Rust, constant-time implementation of Base16 (RFC 4648) + +License: Apache-2.0 OR MIT +URL: https://crates.io/crates/base16ct +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Pure Rust implementation of Base16 a.k.a hexadecimal (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 %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/CHANGELOG.md +%doc %{crate_instdir}/README.md +%{crate_instdir}/ + +%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 %{crate_instdir}/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 %{crate_instdir}/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 %{crate_instdir}/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..b22af00 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (base16ct-0.2.0.crate) = efe7c810102646733cb24c5cab62bd58d797e77b117d0fa5d651c34630f77de4d768fb99c981af5968393734bc32a2c1944a719f9f1a192b5062c0af8bb3413a