]>
Commit | Line | Data |
---|---|---|
5e5a9850 JK |
1 | %define module gnutls |
2 | Summary: Python wrapper for the GNUTLS library | |
c494a147 | 3 | Summary(pl.UTF-8): Pythonowy interfejs do biblioteki GNUTLS |
5e5a9850 | 4 | Name: python-%{module} |
83f29a08 | 5 | Version: 3.1.2 |
385f109f | 6 | Release: 1 |
c494a147 | 7 | License: LGPL v2+ |
5e5a9850 | 8 | Group: Development/Languages/Python |
385f109f JB |
9 | #Source0Download: https://pypi.python.org/simple/python-gnutls/ |
10 | Source0: https://files.pythonhosted.org/packages/source/p/python-gnutls/%{name}-%{version}.tar.gz | |
83f29a08 | 11 | # Source0-md5: ee71ddd04b2c01fbe99ae3b02739cddf |
c2ff16d5 | 12 | URL: https://pypi.python.org/pypi/python-gnutls/ |
385f109f JB |
13 | BuildRequires: gnutls-devel >= 3.2.0 |
14 | BuildRequires: python-devel >= 1:2.7 | |
5e5a9850 | 15 | BuildRequires: rpm-pythonprov |
e4b246c1 | 16 | BuildRequires: rpmbuild(macros) >= 1.710 |
385f109f JB |
17 | Requires: gnutls >= 3.2.0 |
18 | Requires: python-modules >= 1:2.7 | |
5e5a9850 JK |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
20 | ||
21 | %description | |
c494a147 JB |
22 | This package provides a high level object oriented wrapper around |
23 | libgnutls, as well as low level bindings to the GNUTLS types and | |
24 | functions via ctypes. The high level wrapper hides the details of | |
25 | accessing the GNUTLS library via ctypes behind a set of classes that | |
26 | encapsulate GNUTLS sessions, certificates and credentials and expose | |
27 | them to Python applications using a simple API. | |
28 | ||
29 | %description -l pl.UTF-8 | |
30 | Ten pakiet udostępnia wysokopoziomowe, zorientowane obiektowo | |
31 | obudowanie libgnutls, a także niskopoziomowe wiązania do typów i | |
32 | funkcji GNUTLS poprzez ctypes. Wysokopoziomowe obudowanie skrywa | |
33 | szczegóły dostępu do biblioteki GNUTLS poprzez ctypes za zbiorem klas | |
34 | przechowujących sesje, certyfikaty oraz dane uwierzytelniające GNUTLS | |
35 | i udostępnia je aplikacjom Pythona poprzez proste API. | |
5e5a9850 JK |
36 | |
37 | %prep | |
38 | %setup -q | |
39 | ||
40 | %build | |
03f7773b | 41 | %py_build |
5e5a9850 JK |
42 | |
43 | %install | |
44 | rm -rf $RPM_BUILD_ROOT | |
03f7773b | 45 | %py_install |
5e5a9850 | 46 | |
5e5a9850 JK |
47 | %py_postclean |
48 | ||
49 | %clean | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
52 | %files | |
53 | %defattr(644,root,root,755) | |
c494a147 | 54 | %doc ChangeLog LICENSE README |
0d8868b5 JB |
55 | %dir %{py_sitescriptdir}/gnutls |
56 | %{py_sitescriptdir}/gnutls/*.py[co] | |
57 | %dir %{py_sitescriptdir}/gnutls/interfaces | |
58 | %{py_sitescriptdir}/gnutls/interfaces/*.py[co] | |
59 | %dir %{py_sitescriptdir}/gnutls/interfaces/twisted | |
60 | %{py_sitescriptdir}/gnutls/interfaces/twisted/*.py[co] | |
61 | %dir %{py_sitescriptdir}/gnutls/library | |
62 | %{py_sitescriptdir}/gnutls/library/*.py[co] | |
63 | %{py_sitescriptdir}/python_gnutls-%{version}-py*.egg-info |