]>
Commit | Line | Data |
---|---|---|
dd8b4942 JR |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without python3 # Python 3.x module | |
4 | ||
2f9adc1a | 5 | Summary: A comprehensive HTTP client library |
190dfc00 | 6 | Summary(pl.UTF-8): Obszerna biblioteka klienta HTTP |
2f9adc1a | 7 | Name: python-httplib2 |
b9a87db1 AM |
8 | Version: 0.12.0 |
9 | Release: 1 | |
2f9adc1a ER |
10 | License: MIT |
11 | Group: Development/Languages/Python | |
5007a437 | 12 | Source0: https://github.com/httplib2/httplib2/archive/v%{version}.tar.gz |
b9a87db1 | 13 | # Source0-md5: 1f3071d94551bfced890c34fd3524f68 |
5007a437 | 14 | Patch0: %{name}.certfile.patch |
b9a87db1 | 15 | Patch1: %{name}-0.9-proxy-http.patch |
5007a437 | 16 | URL: https://github.com/httplib2/httplib2 |
2f9adc1a | 17 | BuildRequires: python >= 2.3 |
a725a8a2 | 18 | BuildRequires: python-modules |
a0736ae2 | 19 | BuildRequires: rpmbuild(macros) >= 1.710 |
dd8b4942 JR |
20 | BuildRequires: sed >= 4.0 |
21 | %if %{with python3} | |
22 | BuildRequires: python3-devel | |
23 | BuildRequires: python3-distribute | |
24 | BuildRequires: python3-modules | |
25 | %endif | |
a725a8a2 | 26 | BuildRequires: rpm-pythonprov |
5007a437 | 27 | Requires: ca-certificates |
2f9adc1a ER |
28 | BuildArch: noarch |
29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
30 | ||
31 | %description | |
32 | A comprehensive HTTP client library, httplib2.py supports many | |
190dfc00 | 33 | features left out of other HTTP libraries. Supports: |
2f9adc1a ER |
34 | - HTTP and HTTPS |
35 | - Keep-Alive | |
36 | - Authentication | |
37 | - Caching | |
38 | - All Methods | |
39 | - Redirects | |
40 | - Compression | |
41 | - Lost update support | |
42 | - Unit Tested | |
43 | ||
190dfc00 JB |
44 | %description -l pl.UTF-8 |
45 | httplib2.py to obszerna biblioteka klienta HTTP, obsługująca wiele | |
46 | cech pomijanych przez inne biblioteki. Obsługuje: | |
47 | - HTTP i HTTPS | |
48 | - Keep-Alive | |
49 | - uwierzytelnianie | |
50 | - buforowanie | |
51 | - wszystkie metody | |
52 | - przekierowania | |
53 | - kompresję | |
54 | - Lost update | |
55 | - podlega testom jednostkowym. | |
56 | ||
dd8b4942 JR |
57 | %package -n python3-httplib2 |
58 | Summary: A comprehensive HTTP client library | |
59 | Summary(pl.UTF-8): Obszerna biblioteka klienta HTTP | |
60 | Group: Development/Languages/Python | |
61 | ||
62 | %description -n python3-httplib2 | |
63 | A comprehensive HTTP client library, httplib2.py supports many | |
64 | features left out of other HTTP libraries. Supports: | |
65 | - HTTP and HTTPS | |
66 | - Keep-Alive | |
67 | - Authentication | |
68 | - Caching | |
69 | - All Methods | |
70 | - Redirects | |
71 | - Compression | |
72 | - Lost update support | |
73 | - Unit Tested | |
74 | ||
75 | %description -n python3-httplib2 -l pl.UTF-8 | |
76 | httplib2.py to obszerna biblioteka klienta HTTP, obsługująca wiele | |
77 | cech pomijanych przez inne biblioteki. Obsługuje: | |
78 | - HTTP i HTTPS | |
79 | - Keep-Alive | |
80 | - uwierzytelnianie | |
81 | - buforowanie | |
82 | - wszystkie metody | |
83 | - przekierowania | |
84 | - kompresję | |
85 | - Lost update | |
86 | - podlega testom jednostkowym. | |
87 | ||
2f9adc1a ER |
88 | %prep |
89 | %setup -q -n httplib2-%{version} | |
5007a437 AM |
90 | %patch0 -p1 |
91 | %patch1 -p1 | |
2f9adc1a | 92 | |
af4b3757 JK |
93 | %build |
94 | %py_build | |
95 | ||
dd8b4942 | 96 | %if %{with python3} |
af4b3757 | 97 | %py3_build |
dd8b4942 JR |
98 | %endif |
99 | ||
2f9adc1a ER |
100 | %install |
101 | rm -rf $RPM_BUILD_ROOT | |
af4b3757 | 102 | %py_install |
5007a437 | 103 | rm $RPM_BUILD_ROOT%{py_sitescriptdir}/httplib2/cacerts.txt |
dd8b4942 JR |
104 | |
105 | %if %{with python3} | |
af4b3757 | 106 | %py3_install |
5007a437 | 107 | rm $RPM_BUILD_ROOT%{py3_sitescriptdir}/httplib2/cacerts.txt |
dd8b4942 | 108 | %endif |
2f9adc1a ER |
109 | |
110 | %py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir} | |
111 | %py_postclean | |
112 | ||
113 | %clean | |
114 | rm -rf $RPM_BUILD_ROOT | |
115 | ||
116 | %files | |
117 | %defattr(644,root,root,755) | |
5007a437 | 118 | %doc README.md CHANGELOG |
dd8b4942 JR |
119 | %{py_sitescriptdir}/httplib2 |
120 | %{py_sitescriptdir}/httplib2-%{version}-py*.egg-info | |
121 | ||
5007a437 | 122 | %if %{with python3} |
dd8b4942 JR |
123 | %files -n python3-httplib2 |
124 | %defattr(644,root,root,755) | |
125 | %doc python3/README CHANGELOG | |
126 | %{py3_sitescriptdir}/httplib2 | |
127 | %{py3_sitescriptdir}/httplib2-%{version}-py*.egg-info | |
5007a437 | 128 | %endif |