]> git.pld-linux.org Git - packages/python-pygpgme.git/blame - python-pygpgme.spec
use epoch 1 for python3 package
[packages/python-pygpgme.git] / python-pygpgme.spec
CommitLineData
df903a44
JB
1#
2# conditional build:
3%bcond_without python2 # CPython 2.x module
4%bcond_without python3 # CPython 3.x module
5#
6Summary: A Python 2 wrapper for the GPGME library
7Summary(pl.UTF-8): Interfejs Pythona 2 do biblioteki GPGME
dfd379f0 8Name: python-pygpgme
df903a44 9Version: 0.3
65cd52ce 10Release: 8
fcb91f40 11License: LGPL v2.1+
dfd379f0 12Group: Libraries/Python
df903a44
JB
13Source0: https://pypi.python.org/packages/source/p/pygpgme/pygpgme-%{version}.tar.gz
14# Source0-md5: d38355af73f0352cde3d410b25f34fd0
dfd379f0 15URL: https://launchpad.net/products/pygpgme
55b798fe 16BuildRequires: gpgme-devel
df903a44
JB
17%if %{with python2}
18BuildRequires: python-devel >= 1:2.4
19BuildRequires: python-modules >= 1:2.4
20%endif
21%if %{with python3}
e90d87b7
ER
22BuildRequires: python3-devel >= 1:3.2
23BuildRequires: python3-modules >= 1:3.2
df903a44 24%endif
df8cdd13 25BuildRequires: rpm-pythonprov
672ca669 26BuildRequires: rpmbuild(macros) >= 1.710
df903a44 27Requires: python-modules
dfd379f0
PZ
28BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30%description
31PyGPGME is a Python module that lets you sign, verify, encrypt and
32decrypt messages using the OpenPGP format.
33
df903a44
JB
34This package contains Python 2 module.
35
fcb91f40
JB
36%description -l pl.UTF-8
37PyGPGME to moduł Pythona pozwalający podpisywać, weryfikować,
38szyfrować i odszyfrowywać wiadomości w formacie OpenPGP.
39
df903a44
JB
40Ten pakiet zawiera moduł Pythona 2.
41
42%package -n python3-pygpgme
43Summary: A Python 3 wrapper for the GPGME library
44Summary(pl.UTF-8): Interfejs Pythona 3 do biblioteki GPGME
45Group: Libraries/Python
46Requires: python3-modules
47
48%description -n python3-pygpgme
49PyGPGME is a Python module that lets you sign, verify, encrypt and
50decrypt messages using the OpenPGP format.
51
52This package contains Python 3 module.
53
54%description -n python3-pygpgme -l pl.UTF-8
55PyGPGME to moduł Pythona pozwalający podpisywać, weryfikować,
56szyfrować i odszyfrowywać wiadomości w formacie OpenPGP.
57
58Ten pakiet zawiera moduł Pythona 3.
59
dfd379f0
PZ
60%prep
61%setup -q -n pygpgme-%{version}
62
63%build
df903a44 64%if %{with python2}
32fe4c8f 65%py_build
df903a44
JB
66%endif
67
68%if %{with python3}
32fe4c8f 69%py3_build
df903a44 70%endif
dfd379f0
PZ
71
72%install
73rm -rf $RPM_BUILD_ROOT
df903a44
JB
74
75%if %{with python2}
32fe4c8f 76%py_install
dfd379f0 77
55b798fe 78%py_postclean
df903a44
JB
79%endif
80
81%if %{with python3}
32fe4c8f 82%py3_install
df903a44 83%endif
dfd379f0
PZ
84
85%clean
86rm -rf $RPM_BUILD_ROOT
87
df903a44 88%if %{with python2}
dfd379f0
PZ
89%files
90%defattr(644,root,root,755)
df903a44 91%doc NEWS README
dfd379f0
PZ
92%dir %{py_sitedir}/gpgme
93%attr(755,root,root) %{py_sitedir}/gpgme/_gpgme.so
94%{py_sitedir}/gpgme/*.py[co]
55b798fe
ER
95%if "%{py_ver}" > "2.4"
96%{py_sitedir}/pygpgme-%{version}-py*.egg-info
97%endif
df903a44
JB
98%endif
99
100%if %{with python3}
101%files -n python3-pygpgme
102%defattr(644,root,root,755)
103%doc NEWS README
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
109%endif
This page took 0.098724 seconds and 4 git commands to generate.