commit c6e1de6dddc3e808b4b644c9975a73da45fc044e Author: tigro Date: Mon Jan 15 22:34:39 2024 +0300 import rust-sequoia-autocrypt-0.25.1-1.el9 diff --git a/.rust-sequoia-autocrypt.metadata b/.rust-sequoia-autocrypt.metadata new file mode 100644 index 0000000..e69de29 diff --git a/SOURCES/sequoia-autocrypt-0.25.1.crate b/SOURCES/sequoia-autocrypt-0.25.1.crate new file mode 100644 index 0000000..d0ef7d2 Binary files /dev/null and b/SOURCES/sequoia-autocrypt-0.25.1.crate differ diff --git a/SOURCES/sequoia-autocrypt-fix-metadata-auto.diff b/SOURCES/sequoia-autocrypt-fix-metadata-auto.diff new file mode 100644 index 0000000..972c557 --- /dev/null +++ b/SOURCES/sequoia-autocrypt-fix-metadata-auto.diff @@ -0,0 +1,17 @@ +--- sequoia-autocrypt-0.25.1/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ sequoia-autocrypt-0.25.1/Cargo.toml 2023-05-22T21:40:49.482634+00:00 +@@ -60,14 +60,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.gitlab] + repository = "sequoia-pgp/sequoia" + diff --git a/SPECS/rust-sequoia-autocrypt.spec b/SPECS/rust-sequoia-autocrypt.spec new file mode 100644 index 0000000..482606f --- /dev/null +++ b/SPECS/rust-sequoia-autocrypt.spec @@ -0,0 +1,106 @@ +## 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 sequoia-autocrypt + +Name: rust-sequoia-autocrypt +Version: 0.25.1 +Release: %autorelease +Summary: Autocrypt support + +License: LGPL-2.0-or-later +URL: https://crates.io/crates/sequoia-autocrypt +Source: %{crates_source} +# Automatically generated patch to strip foreign dependencies +Patch: sequoia-autocrypt-fix-metadata-auto.diff + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Autocrypt support.} + +%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}/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_no_tilde} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build -f sequoia-openpgp/crypto-nettle + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test -f sequoia-openpgp/crypto-nettle +%endif + +%changelog +* Mon Jan 15 2024 Arkady L. Shane - 0.25.1-1 +- Rebuilt for MSVSphere 9.3 + +* Mon May 22 2023 Fabio Valentini - 0.25.1-1 +- Update to version 0.25.1; Fixes RHBZ#2209001 + +* Fri Apr 14 2023 Fabio Valentini - 0.25.0-1 +- Update to version 0.25.0; Fixes RHBZ#2160048 + +* Sat Jan 21 2023 Fedora Release Engineering - 0.24.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Sat Jul 23 2022 Fedora Release Engineering - 0.24.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Wed Mar 16 2022 Fabio Valentini - 0.24.0-1 +- Update to version 0.24.0; Fixes RHBZ#2029484 + +* Fri Jan 21 2022 Fedora Release Engineering - 0.23.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 0.23.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Thu Apr 08 2021 Fabio Valentini - 0.23.1-1 +- Initial package +