%define build_number 0.2 %define snapshot .20080705 %define source_folder yum-axelget-svn-trunk Name: yum-axelget Version: 1.0 BuildArch: noarch Release: %{build_number}%{?snapshot}%{?dist} Summary: Yum plugin to download big files with axel or prozilla Group: System Environment/Base License: GPLv2 URL: http://cnfreesoft.googlecode.com Source0: http://cnfreesoft.googlecode.com/files/axelget-%{version}%{?snapshot}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) #BuildRequires: Requires: axel %description Developed by Wesley Wang from China. The latest code can be found in SVN: http://cnfreesoft.googlecode.com/svn/trunk/axelget %prep %setup -q %{?source_folder:-n %{source_folder}} %build %install rm -rf $RPM_BUILD_ROOT install -m 0755 -d %{buildroot}%{_sysconfdir}/yum/pluginconf.d install -p -m 0644 axelget.conf %{buildroot}%{_sysconfdir}/yum/pluginconf.d install -m 0755 -d %{buildroot}%{_libdir}/yum-plugins install -p -m 0644 axelget.py %{buildroot}%{_libdir}/yum-plugins %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc %{_libdir}/yum-plugins/axelget.py* %config(noreplace) %{_sysconfdir}/yum/pluginconf.d/axelget.conf %changelog * Sat Jul 05 2008 bbbush - 1.0-0.2.20080705 - preserve time stamp when copy files - confirmed that both .pyc and .pyo should be included * Sat Jul 05 2008 bbbush - 1.0-0.1.20080705 - create spec