blob: 92a15164caab9f9cd338a0d65fb0099d77463c6e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
Name: python-urlgrabber
Summary: A high-level cross-protocol url-grabber
Version: 3.9.1
Release: 1
Group: Development/Libraries
License: LGPLv2+
BuildArch: noarch
URL: http://urlgrabber.baseurl.org/
Source0: %{name}-%{version}.tar.gz
Source1001: packaging/python-urlgrabber.manifest
Patch0: urlgrabber-HEAD.patch
Requires: python-pycurl
#Requires: m2crypto
#Requires: libproxy-python
BuildRequires: python-devel
BuildRequires: python-pycurl
Provides: urlgrabber = %{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
A high-level cross-protocol url-grabber for python supporting HTTP, FTP
and file locations. Features include keepalive, byte ranges, throttling,
authentication, proxies and more.
%prep
%setup -q
%patch0 -p1
%build
cp %{SOURCE1001} .
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
%install
rm -rf %{buildroot}
%{__python} setup.py install --root=%{buildroot} -O1 --prefix=%{_prefix}
rm -rf $RPM_BUILD_ROOT/%{_docdir}/urlgrabber-%{version}
%clean
rm -rf %{buildroot}
%files
%manifest python-urlgrabber.manifest
%defattr(-,root,root,-)
%doc ChangeLog LICENSE README TODO
%{python_sitelib}/urlgrabber*
%{_bindir}/urlgrabber
|