%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} Name: germanium Version: 0.2.0.1 Release: 1%{?dist} Summary: A download manager for eMusic.com Group: Applications/Multimedia License: GPLv2 URL: http://matt-good.net/music/ Source0: http://matt-good.net/files/releases/germanium/%{name}-%{version}.tar.gz Patch1: germanium-desktop.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-devel >= 2.4 BuildRequires: pygtk2-devel >= 2.4 BuildRequires: pycairo-devel BuildRequires: pygobject2-devel BuildRequires: gtk2-devel BuildRequires: GConf2-devel Requires: pygtk2 Requires: pycairo Requires: pygobject2 Requires: python-twisted-core Requires: python-twisted-web %description Germanium will open .emp files and download the songs from eMusic. The .emp files can be opened from the toolbar button, or passed as command-line parameters. %prep %setup -q %patch1 -p0 -b germanium.desktop.in %build %configure --disable-mime-update --disable-desktop-update make %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %post # TBD: update-mime-foo? update-desktop-database %{_datadir}/applications %postun # TBD: update-mime-foo? update-desktop-database %{_datadir}/applications %files %defattr(-,root,root,-) %doc README AUTHORS COPYING NEWS %{_bindir}/%{name} %{_datadir}/%{name}/%{name}.glade %{_datadir}/applications/%{name}.desktop %{_datadir}/mime/packages/emusic.xml %{_datadir}/application-registry/%{name}.applications %{python_sitelib}/%{name}-%{version}/germanium/*.py* %config(noreplace) %{_sysconfdir}/gconf/schemas/%name.schemas %changelog * Wed Jul 9 2008 Hans Ulrich Niedermann - 0.2.0.1-1 - Install into python_sitelib * Sat Jul 5 2008 Adam Huffman - 0.2.0-1 - Initial version