]> git.pld-linux.org Git - packages/python-ndg-httpsclient.git/blame - python-ndg-httpsclient.spec
- release 3 (by relup.sh)
[packages/python-ndg-httpsclient.git] / python-ndg-httpsclient.spec
CommitLineData
7e4c0b75
AM
1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
4
5%define module ndg-httpsclient
3b152d9f
JB
6Summary: Enhanced HTTPS support for httplib and urllib2 using PyOpenSSL
7Summary(pl.UTF-8): Rozszerzona obsługa HTTPS dla modułów httplib i urllib2 poprzez PyOpenSSL
7e4c0b75 8Name: python-%{module}
3b152d9f 9Version: 0.3.3
aa58f598 10Release: 3
7e4c0b75
AM
11License: BSD
12Group: Libraries/Python
13Source0: https://pypi.python.org/packages/source/n/ndg-httpsclient/ndg_httpsclient-%{version}.tar.gz
3b152d9f 14# Source0-md5: c05794017dedee47b297185d82ef795e
7e4c0b75
AM
15URL: http://ndg-security.ceda.ac.uk/wiki/ndg_httpsclient
16BuildRequires: python-distribute
17BuildRequires: python-pyOpenSSL
18BuildRequires: rpm-pythonprov
8c368b24 19BuildRequires: rpmbuild(macros) >= 1.710
7e4c0b75
AM
20Requires: python-modules
21Requires: python-pyOpenSSL
22Requires: python-pyasn1
23BuildArch: noarch
24BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26%description
27This is a HTTPS client implementation for httplib and urllib2 based on
28PyOpenSSL. PyOpenSSL provides a more fully featured SSL implementation
29over the default provided with Python and importantly enables full
30verification of the SSL peer.
31
3b152d9f
JB
32%description -l pl.UTF-8
33Ten moduł to implementacja klienta HTTPS dla modułów httplib i urllib2
34oparta na module PyOpenSSL. PyOpenSSL udostępnia pełniejszą
35implementację SSL niż domyślnie dostarczana z Pythonem i umożliwia
36pełną weryfikację drugiej strony połączenia SSL.
37
7e4c0b75
AM
38%prep
39%setup -q -n ndg_httpsclient-%{version}
40
41%build
d200588e 42%py_build %{?with_tests:test}
7e4c0b75
AM
43
44%install
45rm -rf $RPM_BUILD_ROOT
46
d200588e 47%py_install
7e4c0b75 48
df64dd2a
AM
49%py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}
50%py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}
7e4c0b75
AM
51%py_postclean
52
53%clean
54rm -rf $RPM_BUILD_ROOT
55
56%files
57%defattr(644,root,root,755)
58%attr(755,root,root) %{_bindir}/ndg_httpclient
59%{py_sitescriptdir}/ndg
60%if "%{py_ver}" > "2.4"
61%{py_sitescriptdir}/ndg_httpsclient-%{version}-py*.egg-info
df64dd2a 62%{py_sitescriptdir}/ndg_httpsclient-%{version}-py*-nspkg.pth
7e4c0b75 63%endif
This page took 0.094081 seconds and 4 git commands to generate.