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