commit 4c0336407efa442ad28a9d63ce2adcfa1facbcd2 Author: tigro Date: Mon Jan 15 22:34:47 2024 +0300 import rust-sequoia-cert-store-0.4.0-1.el9 diff --git a/.rust-sequoia-cert-store.metadata b/.rust-sequoia-cert-store.metadata new file mode 100644 index 0000000..e69de29 diff --git a/SOURCES/sequoia-cert-store-0.4.0.crate b/SOURCES/sequoia-cert-store-0.4.0.crate new file mode 100644 index 0000000..ace1120 Binary files /dev/null and b/SOURCES/sequoia-cert-store-0.4.0.crate differ diff --git a/SOURCES/sequoia-cert-store-fix-metadata-auto.diff b/SOURCES/sequoia-cert-store-fix-metadata-auto.diff new file mode 100644 index 0000000..b917293 --- /dev/null +++ b/SOURCES/sequoia-cert-store-fix-metadata-auto.diff @@ -0,0 +1,17 @@ +--- sequoia-cert-store-0.4.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ sequoia-cert-store-0.4.0/Cargo.toml 2023-12-14T09:47:09.948462+00:00 +@@ -97,13 +97,6 @@ + ] + default-features = false + +-[target."cfg(windows)".dev-dependencies.sequoia-openpgp] +-version = "1" +-features = [ +- "crypto-cng", +- "__implicit-crypto-backend-for-tests", +-] +-default-features = false +- + [badges.maintenance] + status = "actively-developed" ++ diff --git a/SOURCES/sequoia-cert-store-fix-metadata.diff b/SOURCES/sequoia-cert-store-fix-metadata.diff new file mode 100644 index 0000000..f4aeadd --- /dev/null +++ b/SOURCES/sequoia-cert-store-fix-metadata.diff @@ -0,0 +1,19 @@ +--- sequoia-cert-store-0.4.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ sequoia-cert-store-0.4.0/Cargo.toml 2023-12-14T09:47:37.668566+00:00 +@@ -35,6 +35,7 @@ + ] + license = "LGPL-2.0-or-later" + repository = "https://gitlab.com/sequoia-pgp/sequoia-cert-store" ++exclude = ["/tests"] + + [package.metadata.docs.rs] + features = ["sequoia-openpgp/default"] +@@ -62,7 +63,7 @@ + version = "1" + + [dependencies.rusqlite] +-version = ">=0.29, <0.31" ++version = ">=0.28, <0.31" + features = [ + "collation", + "blob", diff --git a/SPECS/rust-sequoia-cert-store.spec b/SPECS/rust-sequoia-cert-store.spec new file mode 100644 index 0000000..b4d9376 --- /dev/null +++ b/SPECS/rust-sequoia-cert-store.spec @@ -0,0 +1,99 @@ +## 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 25 +%bcond_without check +%global debug_package %{nil} + +%global crate sequoia-cert-store + +Name: rust-sequoia-cert-store +Version: 0.4.0 +Release: %autorelease +Summary: Certificate database interface + +License: LGPL-2.0-or-later +URL: https://crates.io/crates/sequoia-cert-store +Source: %{crates_source} +# Automatically generated patch to strip dependencies and normalize metadata +Patch: sequoia-cert-store-fix-metadata-auto.diff +# Manually created patch for downstream crate metadata changes +# * relax rusqlite dependency to allow building with version 0.28 +# * exclude integration tests, test data, and scripts from installed files +Patch: sequoia-cert-store-fix-metadata.diff + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +A certificate database interface.} + +%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.txt +%doc %{crate_instdir}/CONTRIBUTING.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 + +%prep +%autosetup -n %{crate}-%{version} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +# build with the default crypto backend (Nettle) +%cargo_build -f sequoia-openpgp/crypto-nettle + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +* Mon Jan 15 2024 Arkady L. Shane - 0.4.0-1 +- Rebuilt for MSVSphere 9.3 + +* Thu Dec 14 2023 Fabio Valentini - 0.4.0-1 +- Update to version 0.4.0; Fixes RHBZ#2253247 + +* Wed Aug 02 2023 Fabio Valentini - 0.3.2-1 +- Update to version 0.3.2 + +* Fri Jul 21 2023 Fedora Release Engineering - 0.2.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Wed May 10 2023 Fabio Valentini - 0.2.0-1 +- Initial import (#2186844)