- 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:
parent
3a787c63c1
commit
374f7d00d4
@ -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>
|
||||
|
||||
|
15
gpgme.spec
15
gpgme.spec
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user