%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} Summary: Yum plugin to order downloaded packages Name: yum-plugin-download-order Version: 0.1 Release: 5%{?dist} License: GPLv2+ Group: Development/Tools Source: http://rakesh.fedorapeople.org/yum/%{name}-%{version}.tar.gz URL: http://rakesh.fedorapeople.org/yum/ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-setuptools, python-devel Requires: yum >= 3.2.23 %description Yum plugin to order downloads. Right now it just orders based on size. %prep %setup -q %build #Empty build %install rm -rf $RPM_BUILD_ROOT %{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-, root, root, -) %doc README COPYING %{python_sitelib}/* /usr/lib/yum-plugins/download-order.py* %config(noreplace) %{_sysconfdir}/yum/pluginconf.d/download-order.conf %changelog * Wed Aug 26 2009 Rakesh Pandit 0.1-5 - Added python-devel as BR and renamed to yum-plugin-download-order * Sun Aug 23 2009 Rakesh Pandit 0.1-4 - fixed buildrequire and definition of python_sitelib * Tue Aug 04 2009 Rakesh Pandit 0.1-3 - fixed tarball, fixed import bug * Tue Jun 23 2009 Rakesh Pandit 0.1-2 - Updated with setup file - Included egg files * Mon Jun 22 2009 Rakesh Pandit 0.1-1 - Initial package