File quodlibet.spec of Package quodlibet
# #
# # spec file for package quodlibet
# #
# # This file and all modifications and additions to the pristine
# # package are under the same license as the package itself.
# #
# # norootforbuild
Name: quodlibet
Version: 1.0.061508
Release: 2
Summary: Quod Libet Audio Player (and Ex Falso media tagger)
License: GPLv2
Group: Productivity/Multimedia/Sound/Players
URL: http://www.sacredchao.net/quodlibet/
Source: %{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Patch0: 01-make-setup.py-honor-root-option.patch
Requires: python-mutagen python-gstreamer-0_10 python-gtk
Requires: %{name}-lang = %{version}
AutoReqProv: yes
BuildRequires: intltool python-devel
%description
Quod Libet is a GTK+-based audio player written in Python. It's designed around the idea that you know how to organize your music better than we do. It lets you make playlists based on regular expressions (don't worry, regular searches work too). It lets you display and edit any tags you want in the file. And it lets you do this for all the file formats it supports -- Ogg Vorbis, FLAC, MP3, Musepack, and MOD.
Ex Falso is a program that uses the same tag editing backend as Quod Libet, but isn't connected to an audio player. If you're perfectly happy with your favorite player and just want something that can handle tagging, Ex Falso is for you.
%lang_package
%prep
%setup -q
%patch0
%build
%{__python} setup.py build
%install
%{__python} setup.py install \
--root=%{buildroot} \
--prefix=%{_usr}
%{__mkdir} -p %{buildroot}/%{_datadir}/pixmaps/
%{__mkdir} -p %{buildroot}/%{_datadir}/icons/hicolor/{64x64,scalable}/apps/
%{__cp} quodlibet/missing-cover.svg %{buildroot}/%{_datadir}/pixmaps/
%{__cp} quodlibet/quodlibet.png %{buildroot}/%{_datadir}/icons/hicolor/64x64/apps/
%{__cp} quodlibet/quodlibet.svg %{buildroot}/%{_datadir}/icons/hicolor/scalable/apps/
%{__cp} quodlibet/exfalso.png %{buildroot}/%{_datadir}/icons/hicolor/64x64/apps/
%{__cp} quodlibet/exfalso.svg %{buildroot}/%{_datadir}/icons/hicolor/scalable/apps/
%find_lang %{name}
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-,root,root)
%doc README COPYING NEWS
%{_bindir}/quodlibet
%{_bindir}/exfalso
%{_datadir}/applications/quodlibet.desktop
%{_datadir}/applications/exfalso.desktop
%{_datadir}/pixmaps/missing-cover.svg
%{_datadir}/icons/hicolor/64x64/apps/*.png
%{_datadir}/icons/hicolor/scalable/apps/*.svg
%{py_sitedir}/*.egg-info
%{py_sitedir}/quodlibet/
%{_mandir}/man1/*
%files lang -f %{name}.lang
%changelog