%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} Name: pymazon Version: 0.9 Release: 1%{?dist} Summary: Downloader for the amazon.com MP3 store Group: Development/Languages License: GPLv3 URL: http://code.google.com/p/%{name}/ Source0: http://%{name}.googlecode.com/files/Pymazon-%{version}.tar.gz BuildArch: noarch BuildRequires: python-devel Requires: python-crypto Requires: pymazon-ui %description Pymazon is a python implemented downloader for the amazon MP3 store. This base package includes the CLI client; to enable the GTK or Qt, install pymazon-gtk or pymazon-qt, respectively. %package gtk Summary: GTK frontend for pymazon Group: Development/Languages Requires: %{name} = %{version}-%{release} Requires: pygtk2 Provides: pymazon-ui %description gtk GTK frontend for pymazon. %package qt Summary: Qt frontend for pymazon Group: Development/Languages Requires: %{name} = %{version}-%{release} Requires: PyQt4 Provides: pymazon-ui %description qt Qt frontend for pymazon. %prep %setup -q -n Pymazon-%{version} %build %{__python} setup.py build %install rm -rf $RPM_BUILD_ROOT %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc README.txt LICENSE.txt %{_bindir}/%{name} %exclude %{python_sitelib}/%{name}/gtk %exclude %{python_sitelib}/%{name}/qt %{python_sitelib}/* %files gtk %defattr(-,root,root,-) %{python_sitelib}/%{name}/gtk %files qt %defattr(-,root,root,-) %{python_sitelib}/%{name}/qt %changelog * Mon Aug 30 2010 Adam Jackson 0.9-1 - Initial packaging