3 %bcond_without python2 # CPython 2.x module
4 %bcond_without python3 # CPython 3.x module
6 Summary: A Python 2 wrapper for the GPGME library
7 Summary(pl.UTF-8): Interfejs Pythona 2 do biblioteki GPGME
12 Group: Libraries/Python
13 Source0: https://pypi.python.org/packages/source/p/pygpgme/pygpgme-%{version}.tar.gz
14 # Source0-md5: d38355af73f0352cde3d410b25f34fd0
15 URL: https://launchpad.net/products/pygpgme
16 BuildRequires: gpgme-devel
18 BuildRequires: python-devel >= 1:2.4
19 BuildRequires: python-modules >= 1:2.4
22 BuildRequires: python3-devel >= 1:3.2
23 BuildRequires: python3-modules >= 1:3.2
25 BuildRequires: rpm-pythonprov
26 BuildRequires: rpmbuild(macros) >= 1.710
27 Requires: python-modules
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 PyGPGME is a Python module that lets you sign, verify, encrypt and
32 decrypt messages using the OpenPGP format.
34 This package contains Python 2 module.
36 %description -l pl.UTF-8
37 PyGPGME to moduł Pythona pozwalający podpisywać, weryfikować,
38 szyfrować i odszyfrowywać wiadomości w formacie OpenPGP.
40 Ten pakiet zawiera moduł Pythona 2.
42 %package -n python3-pygpgme
43 Summary: A Python 3 wrapper for the GPGME library
44 Summary(pl.UTF-8): Interfejs Pythona 3 do biblioteki GPGME
45 Group: Libraries/Python
46 Requires: python3-modules
48 %description -n python3-pygpgme
49 PyGPGME is a Python module that lets you sign, verify, encrypt and
50 decrypt messages using the OpenPGP format.
52 This package contains Python 3 module.
54 %description -n python3-pygpgme -l pl.UTF-8
55 PyGPGME to moduł Pythona pozwalający podpisywać, weryfikować,
56 szyfrować i odszyfrowywać wiadomości w formacie OpenPGP.
58 Ten pakiet zawiera moduł Pythona 3.
61 %setup -q -n pygpgme-%{version}
73 rm -rf $RPM_BUILD_ROOT
86 rm -rf $RPM_BUILD_ROOT
90 %defattr(644,root,root,755)
92 %dir %{py_sitedir}/gpgme
93 %attr(755,root,root) %{py_sitedir}/gpgme/_gpgme.so
94 %{py_sitedir}/gpgme/*.py[co]
95 %if "%{py_ver}" > "2.4"
96 %{py_sitedir}/pygpgme-%{version}-py*.egg-info
101 %files -n python3-pygpgme
102 %defattr(644,root,root,755)
104 %dir %{py3_sitedir}/gpgme
105 %attr(755,root,root) %{py3_sitedir}/gpgme/_gpgme.cpython-*.so
106 %{py3_sitedir}/gpgme/*.py
107 %{py3_sitedir}/gpgme/__pycache__
108 %{py3_sitedir}/pygpgme-%{version}-py*.egg-info