%global python3_pkgversion 3.11 Name: python%{python3_pkgversion}-gpg-epel Version: 1.13.1 Release: 1%{?dist} Summary: Python bindings for gpgme # /usr/bin/gpgme-tool is licensed under GPLv3+ # the rest is licensed under LGPLv2+ # Note: /usr/bin/gpgme-json contains bits of MIT licensed code, but its # effective license remains LGPLv2+ # (see https://fedoraproject.org/wiki/Licensing:FAQ) License: LGPLv2+ and GPLv3+ URL: https://gnupg.org/related_software/gpgme/ # https://sources.stream.centos.org/sources/rpms/gpgme/gpgme-1.13.1.licenses.tar.bz2/sha512/f5bfd0e9dc82068f4f24e69dff4902ae50ff091b639d022eec93b7d2b8f3fc6a7d2f452c05924bf2c9efcd589e08df3f147948b06324c0a26b44fe10865a3881/gpgme-1.13.1.licenses.tar.bz2 Source0: gpgme-1.13.1.licenses.tar.bz2 BuildRequires: %{py3_dist setuptools} BuildRequires: gpgme-devel = %{version} BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: libassuan-devel >= 2.4.2 BuildRequires: python%{python3_pkgversion}-devel BuildRequires: swig %description %{summary}. %package -n python%{python3_pkgversion}-gpg Summary: %{summary} %description -n python%{python3_pkgversion}-gpg %{summary}. %prep %autosetup -p1 -n gpgme-%{version} # The build machinery does not support Python 3.9+ yet # https://github.com/gpg/gpgme/pull/4 sed -i 's/3.8/%{python3_version}/g' configure %build export PYTHON=%{python3} %configure cd lang/python # Workaround downstream multiarch patches if [ -f "%{_includedir}/gpgme-%{__isa_bits}.h" ]; then ln -s "%{_includedir}/gpgme-%{__isa_bits}.h" gpgme.h fi mv src gpg %py3_build %install cd lang/python %py3_install %files -n python%{python3_pkgversion}-gpg %license COPYING* LICENSES %doc lang/python/README lang/python/doc lang/python/examples %{python3_sitearch}/gpg/ %{python3_sitearch}/gpg-%{version}-py%{python3_pkgversion}.egg-info/ %changelog * Tue May 16 2023 Maxwell G - 1.13.1-1 - Initial package