commit f4e70623305eed200fabae19cedb5db968f36d06 Author: MSVSphere Packaging Team Date: Fri Dec 20 15:23:53 2024 +0300 import rust-ecdsa-0.16.9-3.el10 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..badc7f4 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/ecdsa-0.16.9.crate diff --git a/.rust-ecdsa.metadata b/.rust-ecdsa.metadata new file mode 100644 index 0000000..4b605ce --- /dev/null +++ b/.rust-ecdsa.metadata @@ -0,0 +1 @@ +ca5253d7fb4e8ed5db2670fdf449d081b0332fba SOURCES/ecdsa-0.16.9.crate diff --git a/SOURCES/ecdsa-fix-metadata.diff b/SOURCES/ecdsa-fix-metadata.diff new file mode 100644 index 0000000..5ac8f2c --- /dev/null +++ b/SOURCES/ecdsa-fix-metadata.diff @@ -0,0 +1,11 @@ +--- ecdsa-0.16.9/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ ecdsa-0.16.9/Cargo.toml 2023-11-17T23:02:43.683488+00:00 +@@ -77,7 +77,7 @@ + default-features = false + + [dependencies.signature] +-version = "2.0, <2.3" ++version = "2.0" + features = ["rand_core"] + default-features = false + diff --git a/SPECS/rust-ecdsa.spec b/SPECS/rust-ecdsa.spec new file mode 100644 index 0000000..ab02ab8 --- /dev/null +++ b/SPECS/rust-ecdsa.spec @@ -0,0 +1,296 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.7.2) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 3; + 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 25 +%bcond_without check +%global debug_package %{nil} + +%global crate ecdsa + +Name: rust-ecdsa +Version: 0.16.9 +Release: %autorelease +Summary: Pure Rust implementation of the Elliptic Curve Digital Signature Algorithm + +License: Apache-2.0 OR MIT +URL: https://crates.io/crates/ecdsa +Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * relax signature dependency from >=2.0,<2.3 to ^2.0 +Patch: ecdsa-fix-metadata.diff + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Pure Rust implementation of the Elliptic Curve Digital Signature +Algorithm (ECDSA) as specified in FIPS 186-4 (Digital Signature +Standard), providing RFC6979 deterministic signatures as well as support +for added entropy.} + +%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}+arithmetic-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+arithmetic-devel %{_description} + +This package contains library source intended for building other packages which +use the "arithmetic" feature of the "%{crate}" crate. + +%files -n %{name}+arithmetic-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+der-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+der-devel %{_description} + +This package contains library source intended for building other packages which +use the "der" feature of the "%{crate}" crate. + +%files -n %{name}+der-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+dev-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+dev-devel %{_description} + +This package contains library source intended for building other packages which +use the "dev" feature of the "%{crate}" crate. + +%files -n %{name}+dev-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+digest-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+digest-devel %{_description} + +This package contains library source intended for building other packages which +use the "digest" feature of the "%{crate}" crate. + +%files -n %{name}+digest-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+hazmat-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+hazmat-devel %{_description} + +This package contains library source intended for building other packages which +use the "hazmat" feature of the "%{crate}" crate. + +%files -n %{name}+hazmat-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+pem-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+pem-devel %{_description} + +This package contains library source intended for building other packages which +use the "pem" feature of the "%{crate}" crate. + +%files -n %{name}+pem-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+pkcs8-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+pkcs8-devel %{_description} + +This package contains library source intended for building other packages which +use the "pkcs8" feature of the "%{crate}" crate. + +%files -n %{name}+pkcs8-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+rfc6979-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+rfc6979-devel %{_description} + +This package contains library source intended for building other packages which +use the "rfc6979" feature of the "%{crate}" crate. + +%files -n %{name}+rfc6979-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+serde-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+serde-devel %{_description} + +This package contains library source intended for building other packages which +use the "serde" feature of the "%{crate}" crate. + +%files -n %{name}+serde-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+serdect-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+serdect-devel %{_description} + +This package contains library source intended for building other packages which +use the "serdect" feature of the "%{crate}" crate. + +%files -n %{name}+serdect-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+sha2-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+sha2-devel %{_description} + +This package contains library source intended for building other packages which +use the "sha2" feature of the "%{crate}" crate. + +%files -n %{name}+sha2-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+signing-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+signing-devel %{_description} + +This package contains library source intended for building other packages which +use the "signing" feature of the "%{crate}" crate. + +%files -n %{name}+signing-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+spki-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+spki-devel %{_description} + +This package contains library source intended for building other packages which +use the "spki" feature of the "%{crate}" crate. + +%files -n %{name}+spki-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 + +%package -n %{name}+verifying-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+verifying-devel %{_description} + +This package contains library source intended for building other packages which +use the "verifying" feature of the "%{crate}" crate. + +%files -n %{name}+verifying-devel +%ghost %{crate_instdir}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +* Fri Dec 20 2024 MSVSphere Packaging Team - 0.16.9-3 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Fri Jul 19 2024 Fedora Release Engineering - 0.16.9-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Fri Jan 26 2024 Fedora Release Engineering - 0.16.9-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Nov 17 2023 Fabio Valentini - 0.16.9-1 +- Update to version 0.16.9; Fixes RHBZ#2250112 + +* Fri Jul 21 2023 Fabio Valentini - 0.16.8-1 +- Update to version 0.16.8; Fixes RHBZ#2224463 + +* Sun Jun 11 2023 Fabio Valentini - 0.16.7-1 +- Initial import (#2213265) +## END: Generated by rpmautospec