|
|
|
@ -1,20 +1,18 @@
|
|
|
|
|
%{!?python_sitelib: %define python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
|
|
|
|
|
|
|
Summary: A high-level cross-protocol url-grabber
|
|
|
|
|
Name: python-urlgrabber
|
|
|
|
|
Version: 3.10.1
|
|
|
|
|
Release: 9%{?dist}
|
|
|
|
|
Release: 10%{?dist}
|
|
|
|
|
Source0: http://urlgrabber.baseurl.org/download/urlgrabber-%{version}.tar.gz
|
|
|
|
|
Patch1: urlgrabber-HEAD.patch
|
|
|
|
|
Patch2: BZ-1051554-speed-on-404-mirror.patch
|
|
|
|
|
|
|
|
|
|
License: LGPLv2+
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
BuildRequires: python-devel, python-pycurl
|
|
|
|
|
BuildRequires: python2-devel, python-pycurl
|
|
|
|
|
Url: http://urlgrabber.baseurl.org/
|
|
|
|
|
Provides: urlgrabber = %{version}-%{release}
|
|
|
|
|
Provides: python2-urlgrabber = %{version}-%{release}
|
|
|
|
|
Requires: python-pycurl
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
@ -28,26 +26,23 @@ authentication, proxies and more.
|
|
|
|
|
%patch2 -p1
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
python setup.py build
|
|
|
|
|
%py2_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
python setup.py install -O1 --root=$RPM_BUILD_ROOT
|
|
|
|
|
%py2_install
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT/%{_docdir}/urlgrabber-%{version}
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%{!?_licensedir:%global license %%doc}
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc ChangeLog README TODO
|
|
|
|
|
%{python_sitelib}/urlgrabber*
|
|
|
|
|
%{python2_sitelib}/urlgrabber*
|
|
|
|
|
%{_bindir}/urlgrabber
|
|
|
|
|
%attr(0755,root,root) %{_libexecdir}/urlgrabber-ext-down
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Wed Nov 9 2016 Orion Poplawski <orion@cora.nwra.com> - 3.10.1-10
|
|
|
|
|
- Modernize spec
|
|
|
|
|
|
|
|
|
|
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.10.1-9
|
|
|
|
|
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
|
|
|
|
|
|
|