]>
Commit | Line | Data |
---|---|---|
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 | |
4 | Summary: A high-level cross-protocol url-grabber | |
5 | Summary(pl.UTF-8): Wysokopoziomowa biblioteka do wychwytywania URL-i do wielu protokołów | |
6 | Name: python-urlgrabber | |
7 | Version: 3.9.1 | |
8 | Release: 2 | |
9 | Epoch: 1 | |
10 | License: LGPL v2.1+ | |
11 | Group: Libraries/Python | |
12 | Source0: http://urlgrabber.baseurl.org/download/urlgrabber-%{version}.tar.gz | |
13 | # Source0-md5: 00c8359bf71062d0946bacea521f80b4 | |
14 | Patch1: urlgrabber-HEAD.patch | |
15 | Patch2: urlgrabber-pycurl-resolv.conf-hack.patch | |
16 | URL: http://urlgrabber.baseurl.org/ | |
17 | BuildRequires: python >= 1:2.5 | |
18 | BuildRequires: python-devel | |
19 | BuildRequires: python-pycurl >= 7.19 | |
20 | BuildRequires: rpm-pythonprov | |
21 | %pyrequires_eq python-libs | |
22 | Requires: python-pycurl >= 7.19 | |
23 | Provides: urlgrabber | |
24 | BuildArch: noarch | |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
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 | ||
32 | %description -l pl.UTF-8 | |
33 | Wysokopoziomowa biblioteka Pythona do wychwytywania URL-i dla wielu | |
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, | |
36 | uwierzytelnianie, proxy itp. | |
37 | ||
38 | %prep | |
39 | %setup -q -n urlgrabber-%{version} | |
40 | %patch1 -p1 | |
41 | %patch2 -p1 | |
42 | ||
43 | %build | |
44 | %{__python} setup.py build | |
45 | ||
46 | %install | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | %{__python} setup.py install \ | |
49 | --root=$RPM_BUILD_ROOT | |
50 | ||
51 | rm -rf $RPM_BUILD_ROOT%{_docdir}/urlgrabber-%{version} | |
52 | %py_postclean | |
53 | ||
54 | %clean | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | %files | |
58 | %defattr(644,root,root,755) | |
59 | %doc ChangeLog README TODO | |
60 | %attr(755,root,root) %{_bindir}/urlgrabber | |
61 | %{py_sitescriptdir}/urlgrabber | |
62 | %{py_sitescriptdir}/*.egg-info |