Modernize spec

epel9
Orion Poplawski 8 years ago
parent 15bf18aaed
commit a2a0d7c9f5

@ -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 Summary: A high-level cross-protocol url-grabber
Name: python-urlgrabber Name: python-urlgrabber
Version: 3.10.1 Version: 3.10.1
Release: 9%{?dist} Release: 10%{?dist}
Source0: http://urlgrabber.baseurl.org/download/urlgrabber-%{version}.tar.gz Source0: http://urlgrabber.baseurl.org/download/urlgrabber-%{version}.tar.gz
Patch1: urlgrabber-HEAD.patch Patch1: urlgrabber-HEAD.patch
Patch2: BZ-1051554-speed-on-404-mirror.patch Patch2: BZ-1051554-speed-on-404-mirror.patch
License: LGPLv2+ License: LGPLv2+
Group: Development/Libraries Group: Development/Libraries
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildArch: noarch BuildArch: noarch
BuildRequires: python-devel, python-pycurl BuildRequires: python2-devel, python-pycurl
Url: http://urlgrabber.baseurl.org/ Url: http://urlgrabber.baseurl.org/
Provides: urlgrabber = %{version}-%{release} Provides: urlgrabber = %{version}-%{release}
Provides: python2-urlgrabber = %{version}-%{release}
Requires: python-pycurl Requires: python-pycurl
%description %description
@ -28,26 +26,23 @@ authentication, proxies and more.
%patch2 -p1 %patch2 -p1
%build %build
python setup.py build %py2_build
%install %install
rm -rf $RPM_BUILD_ROOT %py2_install
python setup.py install -O1 --root=$RPM_BUILD_ROOT
rm -rf $RPM_BUILD_ROOT/%{_docdir}/urlgrabber-%{version} rm -rf $RPM_BUILD_ROOT/%{_docdir}/urlgrabber-%{version}
%clean
rm -rf $RPM_BUILD_ROOT
%files %files
%defattr(-,root,root,-)
%{!?_licensedir:%global license %%doc}
%license LICENSE %license LICENSE
%doc ChangeLog README TODO %doc ChangeLog README TODO
%{python_sitelib}/urlgrabber* %{python2_sitelib}/urlgrabber*
%{_bindir}/urlgrabber %{_bindir}/urlgrabber
%attr(0755,root,root) %{_libexecdir}/urlgrabber-ext-down %attr(0755,root,root) %{_libexecdir}/urlgrabber-ext-down
%changelog %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 * 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 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages

Loading…
Cancel
Save