From 63086ac24cd08178d2eb4e1552ee9c35d7118f52 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Sat, 3 Jun 2023 21:59:43 +0200 Subject: [PATCH] Initial import (scrypt 0.8 compat package) --- .gitignore | 1 + README.md | 3 -- rust-scrypt0.8.spec | 106 ++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 108 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-scrypt0.8.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7f0d126 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/scrypt-0.8.1.crate diff --git a/README.md b/README.md deleted file mode 100644 index 89c1e01..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-scrypt0.8 - -The rust-scrypt0.8 package diff --git a/rust-scrypt0.8.spec b/rust-scrypt0.8.spec new file mode 100644 index 0000000..1e390d6 --- /dev/null +++ b/rust-scrypt0.8.spec @@ -0,0 +1,106 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate scrypt + +Name: rust-scrypt0.8 +Version: 0.8.1 +Release: %autorelease +Summary: Scrypt password-based key derivation function + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/scrypt +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Scrypt password-based key derivation function.} + +%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}+password-hash-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+password-hash-devel %{_description} + +This package contains library source intended for building other packages which +use the "password-hash" feature of the "%{crate}" crate. + +%files -n %{name}+password-hash-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+simple-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+simple-devel %{_description} + +This package contains library source intended for building other packages which +use the "simple" feature of the "%{crate}" crate. + +%files -n %{name}+simple-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..dd5a88b --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (scrypt-0.8.1.crate) = a8ca957470080832ffdca76185e3a4154a139c577162c9e4f5c97cd5bb6377ac780391a3a2ffc0dedd1e3ae13f4ce1c9a031d924ad8178289c7a71c325a21f17