%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} Name: quodlibet Version: 2.4.1 Release: 1%{?dist} Summary: A music management program Group: Applications/Multimedia License: GPLv2 URL: http://code.google.com/p/quodlibet/ Source0: http://quodlibet.googlecode.com/files/quodlibet-%{version}.tar.gz Source1: http://quodlibet.googlecode.com/files/quodlibet-plugins-%{version}.tar.gz # There is no upstream currently, as this plugin is the product of the Quod Libet packager Source3: google.py Source4: README.fedora BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: python-devel BuildRequires: pygtk2-devel BuildRequires: glib2-devel BuildRequires: gtk2-devel BuildRequires: gettext BuildRequires: intltool BuildRequires: desktop-file-utils BuildRequires: pkgconfig %if 0%{fedora} <= 6 BuildRequires: python-ctypes %endif Requires: exfalso = %{version}-%{release} Requires: gstreamer-python >= 0.10.2 Requires: gstreamer-plugins-good Requires: python-feedparser Requires: media-player-info # For tray icon plugin Requires: gnome-python2-libegg # for Replay Gain plugin Requires: vorbisgain %if %{fedora} >= 6 # for iPod device support Requires: python-gpod %endif # for CDDB plugin Requires: python-CDDB # for musicbrainz plugin Requires: python-musicbrainz2 %description Quod Libet is a music management program. It provides several different ways to view your audio library, as well as support for Internet radio and audio feeds. It has extremely flexible metadata tag editing and searching capabilities. Supported file formats include Ogg Vorbis, MP3, FLAC, MOD/XM/IT, Musepack, Wavpack, and MPEG-4 AAC. %package -n exfalso Summary: Tag editor for various music files Group: Applications/Multimedia Requires: pkgconfig Requires: python >= 2.4 Requires: pygtk2 >= 2.10 Requires: gnome-python2-canvas Requires: python-mutagen >= 1.10 %description -n exfalso Ex Falso is a tag editor with the same tag editing interface as Quod Libet, but it does not play files. Supported file formats include Ogg Vorbis, MP3, FLAC, MOD/XM/IT, Musepack, Wavpack, and MPEG-4 AAC. %prep %setup -q cp %{S:4} . %build python setup.py build %install rm -rf %{buildroot} mkdir -p %{buildroot}%{python_sitelib}/quodlibet/plugins tar --verbose --strip-components=1 --extract --file=%{S:1} --directory=%{buildroot}%{python_sitelib}/quodlibet/plugins cp -v %{S:3} %{buildroot}%{python_sitelib}/quodlibet/plugins/songsmenu python setup.py install --root=%{buildroot} --prefix=%{_prefix} install -dm 755 %{buildroot}%{_datadir}/pixmaps install -m 644 build/lib/quodlibet/images/hicolor/64x64/apps/exfalso.png %{buildroot}%{_datadir}/pixmaps install -m 644 build/lib/quodlibet/images/quodlibet.png %{buildroot}%{_datadir}/pixmaps install -m 644 build/lib/quodlibet/images/quodlibet.png %{buildroot}%{python_sitelib}/quodlibet # needed for Tray Icon plugin sed -i 's/\.png$//' build/share/applications/*.desktop desktop-file-install --vendor fedora \ --dir %{buildroot}%{_datadir}/applications \ --delete-original \ %{buildroot}%{_datadir}/applications/quodlibet.desktop desktop-file-install --vendor fedora \ --dir %{buildroot}%{_datadir}/applications \ --delete-original \ %{buildroot}%{_datadir}/applications/exfalso.desktop %{find_lang} quodlibet %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc README.fedora %{_bindir}/quodlibet %{_datadir}/applications/fedora-quodlibet.desktop %{_datadir}/pixmaps/quodlibet.png %{_mandir}/man1/quodlibet.1* %files -n exfalso -f %{name}.lang %defattr(-,root,root,-) %doc COPYING HACKING NEWS README %{_bindir}/exfalso %{_datadir}/applications/fedora-exfalso.desktop %{_datadir}/pixmaps/exfalso.png %{_mandir}/man1/exfalso.1* %{python_sitelib}/quodlibet/ %{python_sitelib}/quodlibet-%{version}-py*.egg-info %changelog * Mon Jul 30 2012 Johannes Lips <hannes@fedoraproject.org> - 2.4.1-1 - Update to recent upstream release 2.4.1 * Sun Mar 18 2012 Johannes Lips <hannes@fedoraproject.org> - 2.4-1 - Update to recent upstream release * Tue Jan 17 2012 Johannes Lips <hannes@fedoraproject.org> - 2.3.92-1 - Update to recent upstream release * Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Tue Oct 18 2011 Johannes Lips <hannes@fedoraproject.org> - 2.3.2-1 - Update to recent upstream release * Sun Jul 17 2011 Johannes Lips <hannes@fedoraproject.org> - 2.3.1-1 - Update to recent upstream release * Sat Apr 02 2011 Johannes Lips <hannes@fedoraproject.org> - 2.3-2 - split the package into quodlibet and an exfalso subpackage * Sat Apr 02 2011 Johannes Lips <hannes@fedoraproject.org> - 2.3-1 - Update to 2.3 - added the requirements python-feedparser, media-player-info and python-musicbrainz2 #688602 * Fri Jul 23 2010 Jeffrey C. Ollie <jeff@ocjtech.us> - 2.2.1-3 - Fix issue building with Python 2.7 * Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 2.2.1-2 - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild * Mon Apr 26 2010 Jeffrey C. Ollie <jeff@ocjtech.us> - 2.2.1-1 - Update to 2.2.1 * Wed Oct 28 2009 Jeffrey C. Ollie <jeff@ocjtech.us> - 2.1-3 - Require gstreamer-plugins-good - BZ#531664 * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Mon Jul 6 2009 Jeffrey C. Ollie <jeff@ocjtech.us> - 2.1-1 - Update to 2.1 based on patches to spec by Andrew Nayenko * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Sun Nov 30 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.0-5 - Rebuild for Python 2.6 * Wed Sep 3 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.0-4 - fix license tag * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.0-3 - Autorebuild for GCC 4.3 * Mon Jul 09 2007 Todd Zullinger <tmz@pobox.com> - 1.0-2 - Small fix for changes in python-gpod-0.5.2 - Fix some desktop-file-install warning and errors * Thu May 10 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.0-1 - Update to 1.0 * Sat Apr 14 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.24-7 - Add requires on gnome-python2-canvas, fixes #236468 * Sun Mar 4 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.24-6 - Update plugins * Mon Jan 29 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.24-5 - Build iPod support on FC-6 * Tue Dec 12 2006 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.24-4 - Require python-CDDB for CDDB plugin - Conditionalize python-gpod support * Mon Dec 11 2006 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.24-2 - Require python-gpod for iPod device support * Tue Nov 21 2006 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.24-1 - Update to 0.24 * Mon Aug 28 2006 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.23.1-1 - Update to 0.23.1 * Thu Aug 24 2006 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.23-5 - Include a README.fedora * Thu Aug 17 2006 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.23-4 - Instead of manually copying all of the plugins, pack them into a tarball and include a script for generating the tarball * Wed Aug 16 2006 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.23-3 - Make sure that %%{_libdir}/quodlibet/ is owned * Tue Aug 15 2006 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.23-2 - Convert tabs to spaces. - Add shell plugin - Get rid of some shebang lines. - Add Google search plugin * Fri Aug 11 2006 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.23-1 - First version for Fedora Extras