Name: listen Version: 0.5 Release: 3.beta1%{?dist} Summary: A music manager and player for GNOME Group: Applications/Multimedia License: GPL URL: http://listengnome.free.fr Source0: %name-%{version}b1.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}b1-%{release}-root-%(%{__id_u} -n) Requires(post): /sbin/ldconfig Requires(postun): /sbin/ldconfig Buildrequires: python-devel BuildRequires: pygtk2-devel BuildRequires: gtk2-devel Buildrequires: pkgconfig Buildrequires: docbook2X BuildRequires: gettext Buildrequires: xorg-x11-server-Xvfb Buildrequires: xorg-x11-xauth Buildrequires: xorg-x11-fonts-base Buildrequires: xorg-x11-fonts-misc BuildRequires: gstreamer-python BuildRequires: dbus-python BuildRequires: python-sqlite2 BuildRequires: python-ctypes BuildRequires: gnome-python2 BuildRequires: gnome-python2-extras BuildRequires: gnome-python2-libegg BuildRequires: python-ogg-devel BuildRequires: python-vorbis BuildRequires: python-sexy BuildRequires: python-mutagen >= 1.6 BuildRequires: desktop-file-utils # MusicBrainz support BuildRequires: python-musicbrainz2 BuildRequires: libtunepimp # optional requires an updated libgpod package from Core #Requires: python-libgpod %description Listen is a music manager and player for GNOME With listen you can: * Play your favorite songs * Manage your library * Manage your ipod * Make playlists * Automatically or manually download album covers * Automatically synchronize album covers with iPod * Easily burn an audio CD * Directly get informations from wikipedia when you play a song * See the lyrics of a song * Have statistics about your favorite songs, albums or artists * Listen to web radio * Submit your songs to Audioscrobbler * Quick access to last.fm related file With listen you will be able to: * Listen And Rip Audio CDs * Browse and listen songs on a DAAP share * Share you library via a DAAP share * Fill metadata with musicbrainz * Make smart playlists %prep %setup -q -n %{name}-%{version}b1 # the path is hardcoded in the Makefile %{__sed} -i 's/local//' Makefile # Under Fedora dockbook2x-man is renamed db2x_docbook2man %{__sed} -i 's/docbook2x-man/db2x_docbook2man/' Makefile %build # (misc) for import gtk, as gtk requires a X server to be imported XDISPLAY=$(i=2; while [ -f /tmp/.X$i-lock ]; do i=$(($i+1)); done; echo $i) # added - nolisten tcp -ac -terminate to fix build issue with mock %{_prefix}/bin/Xvfb :$XDISPLAY -nolisten tcp -ac -terminate & export DISPLAY=:$XDISPLAY xauth add $DISPLAY . EE make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT chmod +x $RPM_BUILD_ROOT%{_libdir}/%{name}/listen.py chmod +x $RPM_BUILD_ROOT%{_libdir}/%{name}/mmkeys.so # fixed rights of trackedit.glade thanks to Martin Sourada chmod 644 $RPM_BUILD_ROOT%{_datadir}/%{name}/trackedit.glade desktop-file-install --vendor fedora --delete-original \ --dir $RPM_BUILD_ROOT%{_datadir}/applications \ --add-category X-Fedora \ --remove-mime-type audio/mp3 \ --remove-mime-type audio/x-mp3 \ --remove-mime-type audio/mpeg \ --remove-mime-type audio/x-mpeg \ --remove-mime-type audio/mpeg3 \ --remove-mime-type audio/x-mpeg-3 \ --remove-mime-type application/x-id3 \ $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root,-) %doc gpl.txt %{_bindir}/%{name} %{_libdir}/%{name}/ %{_datadir}/%{name}/trackedit.glade %{_datadir}/%{name}/img/ %{_datadir}/pixmaps/%{name}.png %{_datadir}/applications/*.desktop %changelog * Sun Nov 08 2006 Haïkel Guémar 0.5-3.beta1 - Removed audio/mp3 & cie mime types from .desktop, fixed naming issue, some enhancements to the spec (thanks M. Sourada), * Thu Nov 05 2006 Haïkel Guémar 0.5b1-2 - Added gettext and gtk2-devel as BR, fixed build issue with mock * Fri Sep 08 2006 Haïkel Guémar 0.5b1-1 - Updated to 0.5 beta 1 * Sun Aug 20 2006 Haïkel Guémar 0.5.svn20060825-1 - Updated to 0.5.svn20060825 (0.5pre1) * Thu May 25 2006 Haïkel Guémar 0.4.3-4 - Added licence/copyright files and fixed some issues with rpmlint * Thu May 25 2006 Haïkel Guémar 0.4.3-3 - Add some patches to remove the dependency against libmad * Thu May 25 2006 Haïkel Guémar 0.4.3-2 - Some cleaning to the spec * Thu May 11 2006 Haïkel Guémar 0.4.3-1 - First packaging