From c2e5e7fdabda4639354451bfd0c1b34f63aa78de Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 04:27:17 +0100 Subject: [PATCH] python-gpg-py3{10}: fix gpg module installation path [release 1.18.0-2mamba;Sat Aug 27 2022] --- libgpgme.spec | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/libgpgme.spec b/libgpgme.spec index 756143b..262dd11 100644 --- a/libgpgme.spec +++ b/libgpgme.spec @@ -1,7 +1,7 @@ Name: libgpgme Epoch: 1 Version: 1.18.0 -Release: 1mamba +Release: 2mamba Summary: A library designed to make access to GnuPG easier for applications Group: System/Libraries Vendor: openmamba @@ -88,6 +88,7 @@ Currently it uses GnuPG as its backend but the API isn't restricted to this engi Group: System/Libraries/Python Summary: Python bindings for gpgme Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} +Obsoletes: python-gpg-py36 < 1.18.0 %description -n python-gpg-py3 GnuPG Made Easy (GPGME) is a library designed to make access to GnuPG easier for applications. It provides a High-Level Crypto API for encryption, decryption, signing, signature verification and key management. @@ -136,6 +137,9 @@ sed -i "s|3\.6|3.x|" configure.ac [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall +mv %{buildroot}%{python3_sitearch}/gpg-%{version}_unknown-py*.egg/gpg %{buildroot}%{python3_sitearch}/ +mv %{buildroot}%{python310_sitearch}/gpg-%{version}_unknown-py*.egg/gpg %{buildroot}%{python310_sitearch}/ + %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" @@ -172,15 +176,15 @@ exit 0 %defattr(-,root,root) %dir %{python3_sitearch}/gpg-%{version}_unknown-py*.egg %{python3_sitearch}/gpg-%{version}_unknown-py*.egg/* -#%dir %{python3_sitearch}/gpg -#%{python3_sitearch}/gpg/* +%dir %{python3_sitearch}/gpg +%{python3_sitearch}/gpg/* %files -n python-gpg-py310 %defattr(-,root,root) %dir %{python310_sitearch}/gpg-%{version}_unknown-py*.egg %{python310_sitearch}/gpg-%{version}_unknown-py*.egg/* -#%dir %{python3_sitearch}/gpg -#%{python3_sitearch}/gpg/* +%dir %{python310_sitearch}/gpg +%{python310_sitearch}/gpg/* #%ifnarch aarch64 #%files -n python-gpg-py36 @@ -219,6 +223,9 @@ exit 0 %{_bindir}/gpgme-json %changelog +* Sat Aug 27 2022 Silvan Calarco 1.18.0-2mamba +- python-gpg-py3{10}: fix gpg module installation path + * Sat Aug 27 2022 Silvan Calarco 1.18.0-1mamba - update to 1.18.0