commit a4cb683f9259b9c22cebcbafed9c0bf5772ed9c1 Author: tigro Date: Mon Jan 15 22:35:46 2024 +0300 import rust-sequoia-policy-config-0.6.0-6.el9 diff --git a/.rust-sequoia-policy-config.metadata b/.rust-sequoia-policy-config.metadata new file mode 100644 index 0000000..e69de29 diff --git a/SOURCES/sequoia-policy-config-0.6.0.crate b/SOURCES/sequoia-policy-config-0.6.0.crate new file mode 100644 index 0000000..0afb9e7 Binary files /dev/null and b/SOURCES/sequoia-policy-config-0.6.0.crate differ diff --git a/SOURCES/sequoia-policy-config-fix-metadata-auto.diff b/SOURCES/sequoia-policy-config-fix-metadata-auto.diff new file mode 100644 index 0000000..116c018 --- /dev/null +++ b/SOURCES/sequoia-policy-config-fix-metadata-auto.diff @@ -0,0 +1,13 @@ +--- sequoia-policy-config-0.6.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ sequoia-policy-config-0.6.0/Cargo.toml 2023-04-14T14:25:27.053943+00:00 +@@ -67,10 +67,5 @@ + features = ["crypto-nettle"] + default-features = false + +-[target."cfg(windows)".dev-dependencies.sequoia-openpgp] +-version = "1.11" +-features = ["crypto-cng"] +-default-features = false +- + [badges.maintenance] + status = "actively-developed" diff --git a/SOURCES/sequoia-policy-config-fix-metadata.diff b/SOURCES/sequoia-policy-config-fix-metadata.diff new file mode 100644 index 0000000..c718d82 --- /dev/null +++ b/SOURCES/sequoia-policy-config-fix-metadata.diff @@ -0,0 +1,16 @@ +--- sequoia-policy-config-0.6.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ sequoia-policy-config-0.6.0/Cargo.toml 2023-04-14T14:26:00.154080+00:00 +@@ -62,10 +62,9 @@ + [dev-dependencies.lazy_static] + version = "1.4.0" + +-[target."cfg(not(windows))".dev-dependencies.sequoia-openpgp] +-version = "1.11" +-features = ["crypto-nettle"] +-default-features = false ++[features] ++crypto-nettle = ["sequoia-openpgp/crypto-nettle"] ++crypto-openssl = ["sequoia-openpgp/crypto-openssl"] + + [badges.maintenance] + status = "actively-developed" diff --git a/SPECS/rust-sequoia-policy-config.spec b/SPECS/rust-sequoia-policy-config.spec new file mode 100644 index 0000000..855ec4d --- /dev/null +++ b/SPECS/rust-sequoia-policy-config.spec @@ -0,0 +1,166 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.3.5) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 6; + 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 crate sequoia-policy-config + +Name: rust-sequoia-policy-config +Version: 0.6.0 +Release: %autorelease +Summary: Configure Sequoia using a configuration file + +License: LGPL-2.0-or-later +URL: https://crates.io/crates/sequoia-policy-config +Source: %{crates_source} +# Automatically generated patch to strip foreign dependencies +Patch: sequoia-policy-config-fix-metadata-auto.diff +# Manually created patch for downstream crate metadata changes +# * expose features for crypto backends without setting a default +Patch: sequoia-policy-config-fix-metadata.diff + +BuildRequires: rust-packaging >= 23 + +%global _description %{expand: +Configure Sequoia using a configuration file.} + +%description %{_description} + +%package -n %{crate} +Summary: %{summary} +# (MIT OR Apache-2.0) AND Unicode-DFS-2016 +# Apache-2.0 +# Apache-2.0 OR MIT +# BSL-1.0 +# LGPL-2.0-or-later +# MIT +# MIT OR Apache-2.0 +# MIT OR Apache-2.0 OR Zlib +# Unlicense OR MIT +# Zlib OR Apache-2.0 OR MIT +License: LGPL-2.0-or-later AND Apache-2.0 AND BSL-1.0 AND MIT AND Unicode-DFS-2016 +# LICENSE.dependencies contains a full license breakdown + +%description -n %{crate} %{_description} + +%files -n %{crate} +%license LICENSE.txt +%license LICENSE.dependencies +%doc README.md +%{_bindir}/sequoia-policy-config-check + +%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}/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}+crypto-nettle-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+crypto-nettle-devel %{_description} + +This package contains library source intended for building other packages which +use the "crypto-nettle" feature of the "%{crate}" crate. + +%files -n %{name}+crypto-nettle-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+crypto-openssl-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+crypto-openssl-devel %{_description} + +This package contains library source intended for building other packages which +use the "crypto-openssl" feature of the "%{crate}" crate. + +%files -n %{name}+crypto-openssl-devel +%ghost %{crate_instdir}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version_no_tilde} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires -f crypto-openssl + +%build +%cargo_build -f crypto-openssl +%cargo_license_summary -f crypto-openssl +%{cargo_license -f crypto-openssl} > LICENSE.dependencies + +%install +%cargo_install -f crypto-openssl + +%if %{with check} +%check +%cargo_test -f crypto-openssl +%endif + +%changelog +* Mon Jan 15 2024 Arkady L. Shane - 0.6.0-6 +- Rebuilt for MSVSphere 9.3 + +* Fri Dec 01 2023 Fabio Valentini - 0.6.0-6 +- Rebuild for openssl crate >= v0.10.60 (RUSTSEC-2023-0044, + RUSTSEC-2023-0072) + +* Fri Jul 21 2023 Fedora Release Engineering - 0.6.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Thu May 18 2023 Fabio Valentini - 0.6.0-4 +- Rebuild for sequoia-openpgp v1.16 + +* Wed May 03 2023 Fabio Valentini - 0.6.0-3 +- Rebuild for openssl crate >= v0.10.48 (RUSTSEC-2023-{0022,0023,0024}) + +* Fri Apr 14 2023 Fabio Valentini - 0.6.0-2 +- Expose features for crypto backends without setting a default + +* Mon Mar 06 2023 Fabio Valentini - 0.6.0-1 +- Update to version 0.6.0; Fixes RHBZ#2175814 + +* Sun Feb 05 2023 Fabio Valentini - 0.5.0-3 +- Rebuild for fixed frame pointer compiler flags in Rust RPM macros + +* Sat Jan 21 2023 Fedora Release Engineering - 0.5.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Wed Nov 23 2022 Fabio Valentini - 0.5.0-1 +- Update to version 0.5.0; Fixes RHBZ#2145245 + +* Mon Nov 14 2022 Fabio Valentini - 0.4.0-1 +- Update to version 0.4.0 + +* Mon Nov 14 2022 Fabio Valentini - 0.3.0-1 +- Initial import (#2138445)