- Move the gpg python bindings out of the egg directory.

OBS-URL: https://build.opensuse.org/package/show/Base:System/gpgme?expand=0&rev=176
This commit is contained in:
Pedro Monreal Gonzalez 2024-11-20 12:20:49 +00:00 committed by Git OBS Bridge
parent 3a787c63c1
commit 374f7d00d4
2 changed files with 16 additions and 4 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Nov 20 12:14:56 UTC 2024 - Pedro Monreal <pmonreal@suse.com>
- Move the gpg python bindings out of the egg directory.
-------------------------------------------------------------------
Mon Nov 18 10:17:30 UTC 2024 - Christophe Marin <christophe@krop.fr>

View File

@ -16,6 +16,7 @@
#
%define psuffix %{nil}
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == ""
%define psuffix %{nil}
@ -315,6 +316,14 @@ rm -r %{buildroot}%{_mandir}/man1/gpgme-json.*
%endif
popd
%if %{with python3}
# Move the gpg directory out of the newly added egg upstream directory
%if 0%{?suse_version} > 1500
%python_expand mv %{buildroot}%{$python_sitearch}/gpg-%{version}*.egg/gpg %{buildroot}%{$python_sitearch}/gpg
%python_expand rm -rf %{buildroot}%{$python_sitearch}/gpg-%{version}*.egg
%endif
%endif
%check
GPGME_DEBUG=2:mygpgme.log %make_build check skip=%{?qt_skip:%{qt_skip}} || cat $(find -name mygpgme.log -type f)
@ -372,10 +381,8 @@ GPGME_DEBUG=2:mygpgme.log %make_build check skip=%{?qt_skip:%{qt_skip}} || cat $
%if %{with python3}
%files %{python_files gpg}
%license COPYING COPYING.LESSER LICENSES
%if 0%{?suse_version} > 1500
%{python_sitearch}/gpg-%{version}*.egg/
%else
%{python_sitearch}/gpg/
%{python_sitearch}/gpg
%if 0%{?suse_version} <= 1500
%{python_sitearch}/gpg-%{version}*.egg-info
%endif
%endif