commit c08345503743db6dbd3c202f5018c88da4614b0a Author: tigro Date: Mon Jan 15 22:05:23 2024 +0300 import rust-password-hash0.3-0.3.2-1.el9 diff --git a/.rust-password-hash0.3.metadata b/.rust-password-hash0.3.metadata new file mode 100644 index 0000000..e69de29 diff --git a/SOURCES/password-hash-0.3.2.crate b/SOURCES/password-hash-0.3.2.crate new file mode 100644 index 0000000..5c176b0 Binary files /dev/null and b/SOURCES/password-hash-0.3.2.crate differ diff --git a/SOURCES/password-hash-fix-metadata.diff b/SOURCES/password-hash-fix-metadata.diff new file mode 100644 index 0000000..765b3a9 --- /dev/null +++ b/SOURCES/password-hash-fix-metadata.diff @@ -0,0 +1,20 @@ +--- password-hash-0.3.2/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ password-hash-0.3.2/Cargo.toml 2023-04-17T21:24:53.371789+00:00 +@@ -25,7 +25,7 @@ + all-features = true + rustc-args = ["--cfg", "docsrs"] + [dependencies.base64ct] +-version = ">=1, <1.1.0" ++version = "1" + + [dependencies.rand_core] + version = "0.6" +@@ -33,7 +33,7 @@ + default-features = false + + [dependencies.subtle] +-version = ">=2, <2.5" ++version = "2" + default-features = false + + [features] diff --git a/SPECS/rust-password-hash0.3.spec b/SPECS/rust-password-hash0.3.spec new file mode 100644 index 0000000..8ee0e07 --- /dev/null +++ b/SPECS/rust-password-hash0.3.spec @@ -0,0 +1,125 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.3.5) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 1; + base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); + print(release_number + base_release_number - 1); +}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} +## END: Set by rpmautospec + +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate password-hash + +Name: rust-password-hash0.3 +Version: 0.3.2 +Release: %autorelease +Summary: Traits which describe password hashing algorithms + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/password-hash +Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * relax base64ct and subtle dependencies (MSRV is irrelevant in Fedora) +Patch: password-hash-fix-metadata.diff + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Traits which describe the functionality of password hashing algorithms, +as well as a `no_std`-friendly implementation of the PHC string format +(a well-defined subset of the Modular Crypt Format a.k.a. MCF).} + +%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}+rand_core-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+rand_core-devel %{_description} + +This package contains library source intended for building other packages which +use the "rand_core" feature of the "%{crate}" crate. + +%files -n %{name}+rand_core-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 +* Mon Jan 15 2024 Arkady L. Shane - 0.3.2-1 +- Rebuilt for MSVSphere 9.3 + +* Mon Apr 17 2023 Fabio Valentini - 0.3.2-1 +- Initial import (password-hash 0.3 compat package)