Hello community,

here is the log from the commit of package gpgme for openSUSE:Factory checked 
in at 2018-01-16 09:30:36
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/gpgme (Old)
 and      /work/SRC/openSUSE:Factory/.gpgme.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "gpgme"

Tue Jan 16 09:30:36 2018 rev:71 rq:562462 version:1.10.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/gpgme/gpgme.changes      2017-12-23 
12:16:10.701261143 +0100
+++ /work/SRC/openSUSE:Factory/.gpgme.new/gpgme.changes 2018-01-16 
09:30:37.522668131 +0100
@@ -1,0 +2,6 @@
+Mon Jan  8 10:17:39 UTC 2018 - [email protected]
+
+- Tweak up the python conditional to allow us finegraining and
+  selecting only py2 or py3 if needed
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ gpgme.spec ++++++
--- /var/tmp/diff_new_pack.JN50Cb/_old  2018-01-16 09:30:38.566619288 +0100
+++ /var/tmp/diff_new_pack.JN50Cb/_new  2018-01-16 09:30:38.566619288 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package gpgme
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,9 +18,8 @@
 
 # Enable Qt bindings on TW and 42.3 (needed for KDE PIM)
 %define with_qt 0%{?suse_version} >= 1330 || 0%{?sle_version} >= 120300
-# Only enable Python bindings with TW, or tests will fail with an older gpg
-# https://bugs.gnupg.org/gnupg/issue3008
-%define with_python 0%{?suse_version} >= 1330
+%bcond_without python2
+%bcond_without python3
 Name:           gpgme
 Version:        1.10.0
 Release:        0
@@ -42,8 +41,10 @@
 BuildRequires:  swig
 Requires(post): %{install_info_prereq}
 Requires(preun): %{install_info_prereq}
-%if 0%{?with_python}
+%if %{with python2}
 BuildRequires:  python2-devel >= 2.7
+%endif
+%if %{with python3}
 BuildRequires:  python3-devel >= 3.4
 %endif
 %if 0%{with_qt}
@@ -118,7 +119,6 @@
 This subpackage contains the headers needed for building applications
 making use of libgpgmepp.
 
-%if 0%{?with_python}
 %package -n python2-gpg
 Summary:        Python 2 bindings for GPGME, a library for accessing GnuPG
 Group:          Development/Languages/Python
@@ -144,7 +144,6 @@
 management.
 
 This package contains the bindings to use the library from Python 3 
applications.
-%endif
 
 %package -n libqgpgme7
 Summary:        Programmatic Qt library interface to GnuPG
@@ -181,7 +180,7 @@
 build_timestamp=$(date -u +%{Y}-%{m}-%{dT}%{H}:%{M}+0000 -r %{SOURCE99})
 languages="cl cpp"
 
-%if 0%{?with_python}
+%if %{with python2} || %{with python3}
 languages="${languages} python"
 %endif
 
@@ -202,11 +201,12 @@
 find %{buildroot} -type f -name "*.la" -delete -print
 chmod -x %{buildroot}%{_libdir}/cmake/Gpgmepp/*.cmake
 
-%if 0%{?with_python}
+%if %{with python2}
 find %{buildroot}%{python_sitearch}/gpg-*.egg-info -delete -print
 find %{buildroot}%{python_sitearch}/gpg -type f -name "*.pyc" -delete -print
 rm -vf %{buildroot}%{python_sitelib}/gpg/install_files.txt
-
+%endif
+%if %{with python3}
 find %{buildroot}%{python3_sitearch}/gpg-*.egg-info -delete -print
 rm -vf %{buildroot}%{python3_sitelib}/gpg/install_files.txt
 find %{buildroot}%{python3_sitearch}/gpg -type f -name "*.pyc" -delete -print
@@ -258,10 +258,12 @@
 %dir %{_libdir}/cmake/Gpgmepp
 %{_libdir}/cmake/Gpgmepp/GpgmeppConfig*.cmake
 
-%if 0%{?with_python}
+%if %{with python2}
 %files -n python2-gpg
 %{python_sitearch}/gpg
+%endif
 
+%if %{with python3}
 %files -n python3-gpg
 %{python3_sitearch}/gpg
 %endif



Reply via email to