From a2a0d7c9f5e69d16bd8743ff7a93c445f7329167 Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Wed, 9 Nov 2016 17:02:22 -0700 Subject: [PATCH] Modernize spec --- python-urlgrabber.spec | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/python-urlgrabber.spec b/python-urlgrabber.spec index 8c406b3..282d97d 100644 --- a/python-urlgrabber.spec +++ b/python-urlgrabber.spec @@ -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 - 3.10.1-10 +- Modernize spec + * Tue Jul 19 2016 Fedora Release Engineering - 3.10.1-9 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages