From 1f2c0c473bbd446c3742f83cff27286c8858db36 Mon Sep 17 00:00:00 2001 From: Peter Robinson Date: Tue, 21 Jul 2020 18:04:32 +0100 Subject: [PATCH] initial import --- .gitignore | 1 + rust-zeroize.spec | 107 ++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 109 insertions(+) create mode 100644 .gitignore create mode 100644 rust-zeroize.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..85c937e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/zeroize-*.crate diff --git a/rust-zeroize.spec b/rust-zeroize.spec new file mode 100644 index 0000000..08f35d4 --- /dev/null +++ b/rust-zeroize.spec @@ -0,0 +1,107 @@ +# Generated by rust2rpm 13 +# https://github.com/iqlusioninc/crates/issues/474 +%bcond_with check +%global debug_package %{nil} + +%global crate zeroize + +Name: rust-%{crate} +Version: 1.1.0 +Release: 2%{?dist} +Summary: Securely clear secrets from memory + +# Upstream license specification: Apache-2.0 OR MIT +License: ASL 2.0 or MIT +URL: https://crates.io/crates/zeroize +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Securely clear secrets from memory with a simple trait built on stable Rust +primitives which guarantee memory is zeroed using an operation will not be +'optimized away' by the compiler. Uses a portable pure Rust implementation that +works everywhere, even WASM!.} + +%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 +# include ASL - https://github.com/iqlusioninc/crates/issues/475 +%license 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}+alloc-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+alloc-devel %{_description} + +This package contains library source intended for building other packages +which use "alloc" feature of "%{crate}" crate. + +%files -n %{name}+alloc-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+zeroize_derive-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+zeroize_derive-devel %{_description} + +This package contains library source intended for building other packages +which use "zeroize_derive" feature of "%{crate}" crate. + +%files -n %{name}+zeroize_derive-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 +* Tue Jul 21 2020 Peter Robinson - 1.1.0-2 +- Review updates + +* Thu Jul 16 2020 Peter Robinson - 1.1.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..036cc2d --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (zeroize-1.1.0.crate) = 19ebb9515b7c8bc384c180e4ec8b6f77dc84fbc49a3690af972918b2ca73695b935d4673ff17ec8ae95a1824e5b261838e656e7939f10e3b14b3b984180aecbd