]>
Commit | Line | Data |
---|---|---|
f055b746 ER |
1 | # TODO |
2 | # - find better solution for unreadable /etc/resolv.conf in pycurl | |
3 | # the problem is actgually in curl-libs, util_curl_new() returns NULL in that case | |
ff0c16c0 | 4 | Summary: A high-level cross-protocol url-grabber |
94940d03 | 5 | Summary(pl.UTF-8): Wysokopoziomowa biblioteka do wychwytywania URL-i do wielu protokołów |
ff0c16c0 | 6 | Name: python-urlgrabber |
481eec4c | 7 | Version: 3.9.1 |
f055b746 | 8 | Release: 2 |
84600149 | 9 | Epoch: 1 |
30fcc205 | 10 | License: LGPL v2.1+ |
e4f955b1 | 11 | Group: Libraries/Python |
481eec4c ER |
12 | Source0: http://urlgrabber.baseurl.org/download/urlgrabber-%{version}.tar.gz |
13 | # Source0-md5: 00c8359bf71062d0946bacea521f80b4 | |
14 | Patch1: urlgrabber-HEAD.patch | |
f055b746 | 15 | Patch2: urlgrabber-pycurl-resolv.conf-hack.patch |
de18d0ec | 16 | URL: http://urlgrabber.baseurl.org/ |
04e9159e | 17 | BuildRequires: python >= 1:2.5 |
b03b2ee2 | 18 | BuildRequires: python-devel |
481eec4c | 19 | BuildRequires: python-pycurl >= 7.19 |
04e9159e JB |
20 | BuildRequires: rpm-pythonprov |
21 | %pyrequires_eq python-libs | |
481eec4c | 22 | Requires: python-pycurl >= 7.19 |
ff0c16c0 | 23 | Provides: urlgrabber |
dbaf2bb8 | 24 | BuildArch: noarch |
ff0c16c0 PZ |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
26 | ||
27 | %description | |
dbaf2bb8 JB |
28 | A high-level cross-protocol url-grabber for Python supporting HTTP, |
29 | FTP and file locations. Features include keepalive, byte ranges, | |
30 | throttling, authentication, proxies and more. | |
31 | ||
2899dc9f | 32 | %description -l pl.UTF-8 |
dbaf2bb8 | 33 | Wysokopoziomowa biblioteka Pythona do wychwytywania URL-i dla wielu |
2899dc9f JR |
34 | protokołów, obsługująca odnośniki HTTP, FTP i file. Możliwości |
35 | obejmują połączenia keepalive, przedziały bajtów, tłumienie, | |
dbaf2bb8 | 36 | uwierzytelnianie, proxy itp. |
ff0c16c0 PZ |
37 | |
38 | %prep | |
dbaf2bb8 | 39 | %setup -q -n urlgrabber-%{version} |
481eec4c | 40 | %patch1 -p1 |
f055b746 | 41 | %patch2 -p1 |
ff0c16c0 PZ |
42 | |
43 | %build | |
de18d0ec | 44 | %{__python} setup.py build |
ff0c16c0 PZ |
45 | |
46 | %install | |
995477c4 | 47 | rm -rf $RPM_BUILD_ROOT |
de18d0ec | 48 | %{__python} setup.py install \ |
995477c4 ER |
49 | --root=$RPM_BUILD_ROOT |
50 | ||
51 | rm -rf $RPM_BUILD_ROOT%{_docdir}/urlgrabber-%{version} | |
6fad7992 | 52 | %py_postclean |
ff0c16c0 PZ |
53 | |
54 | %clean | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
dbaf2bb8 | 57 | %files |
ff0c16c0 | 58 | %defattr(644,root,root,755) |
dbaf2bb8 JB |
59 | %doc ChangeLog README TODO |
60 | %attr(755,root,root) %{_bindir}/urlgrabber | |
61 | %{py_sitescriptdir}/urlgrabber | |
84600149 | 62 | %{py_sitescriptdir}/*.egg-info |