Hello community, here is the log from the commit of package gpgme for openSUSE:Factory checked in at 2020-12-09 22:11:52 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/gpgme (Old) and /work/SRC/openSUSE:Factory/.gpgme.new.2328 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "gpgme" Wed Dec 9 22:11:52 2020 rev:84 rq:853717 version:1.15.0 Changes: -------- --- /work/SRC/openSUSE:Factory/gpgme/gpgme.changes 2020-11-23 10:29:39.597306670 +0100 +++ /work/SRC/openSUSE:Factory/.gpgme.new.2328/gpgme.changes 2020-12-09 22:11:54.419096577 +0100 @@ -1,0 +2,6 @@ +Sat Dec 5 19:09:59 UTC 2020 - Benjamin Greiner <c...@bnavigator.de> + +- Use python-rpm-macros to provide python3X-gpg for all present + python3 flavors -- gh#openSUSE/python-rpm-macros#66 + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ gpgme.spec ++++++ --- /var/tmp/diff_new_pack.dItnM2/_old 2020-12-09 22:11:55.183097352 +0100 +++ /var/tmp/diff_new_pack.dItnM2/_new 2020-12-09 22:11:55.187097356 +0100 @@ -28,6 +28,7 @@ %bcond_with python3 %bcond_without qt %endif +%{!?python_module:%define python_module() python-%{**} python3-{**}} Name: gpgme%{psuffix} Version: 1.15.0 Release: 0 @@ -48,18 +49,25 @@ BuildRequires: libgpg-error-devel >= 1.36 BuildRequires: pkgconfig BuildRequires: swig +%if %{with python2} || %{with python3} +BuildRequires: python-rpm-macros +BuildRequires: %{python_module devel} +%endif Requires(post): %{install_info_prereq} Requires(preun): %{install_info_prereq} -%if %{with python2} -BuildRequires: python2-devel >= 2.7 -%endif -%if %{with python3} -BuildRequires: python3-devel >= 3.4 -%endif %if %{with qt} BuildRequires: pkgconfig(Qt5Core) BuildRequires: pkgconfig(Qt5Test) %endif +%if 0%{?python38_version_nodots} +# if python multiflavor is in place yet, use it to generate subpackages +%define python_subpackage_only 1 +%python_subpackages +%else +%define python_sitearch %python3_sitearch +%define python_files() -n python3-%{**} +%endif + %description GnuPG Made Easy (GPGME) is a library designed to make access to GnuPG @@ -128,6 +136,20 @@ This subpackage contains the headers needed for building applications making use of libgpgmepp. +%if 0%{?python_subpackage_only} +%package -n python-gpg +Summary: Python %{python_version} bindings for GPGME, a library for accessing GnuPG +Group: Development/Languages/Python + +%description -n python-gpg +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. + +This package contains the bindings to use the library from Python %{python_version} applications. + +%else %package -n python2-gpg Summary: Python 2 bindings for GPGME, a library for accessing GnuPG Group: Development/Languages/Python @@ -153,6 +175,7 @@ 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 @@ -278,14 +301,14 @@ %{_libdir}/cmake/Gpgmepp/GpgmeppConfig*.cmake %endif -%if %{with python2} +%if %{with python2} && ! 0%{?python_subpackage_only} %files -n python2-gpg %{python_sitearch}/gpg* %endif -%if %{with python3} -%files -n python3-gpg -%{python3_sitearch}/gpg* +%if %{with python3} || ( 0%{?python_subpackage_only} && %{with python2} ) +%files %{python_files gpg} +%{python_sitearch}/gpg* %endif %if %{with qt} _______________________________________________ openSUSE Commits mailing list -- commit@lists.opensuse.org To unsubscribe, email commit-le...@lists.opensuse.org List Netiquette: https://en.opensuse.org/openSUSE:Mailing_list_netiquette List Archives: https://lists.opensuse.org/archives/list/commit@lists.opensuse.org