-Summary: A powerful GTK2 media player
+# TODO:
+# separate plugins/*
+#
+Summary: A powerful GTK+2 media player
+Summary(pl.UTF-8): Potężny odtwarzacz multimediów oparty na GTK+2
Name: exaile
-Version: 0.2.5
+Version: 0.3.2.0
Release: 1
-Source0: http://www.exaile.org/files/%{name}_%{version}.tar.gz
-# Source0-md5: f700d561e3cf756bcdcf4c006b132d51
-Patch0: %{name}-python-2.5.patch
+# GPL v2 in COPYING; GPL v1+ in license.txt; Artistic/Perl in lib/wmainfo.py
License: GPL
-Group: Applications/X11
+Group: X11/Applications/Multimedia
+Source0: http://launchpad.net/exaile/0.3.2/0.3.2.0/+download/%{name}-%{version}.tar.gz
+# Source0-md5: fdd1f75118032a5aa0932cb449b2c533
URL: http://www.exaile.org/
-BuildRequires: python-pygtk-devel >= 2.8
-Requires: python-dbus >= 0.71
+BuildRequires: gettext-devel
+BuildRequires: help2man
+BuildRequires: intltool
+BuildRequires: python-pygtk-devel >= 2:2.18.0
+BuildRequires: rpmbuild(macros) >= 1.268
Requires: gstreamer-plugins-base >= 0.10
Requires: gstreamer-plugins-good >= 0.10
+Requires: python-dbus >= 0.71
+Requires: python-gstreamer
+Requires: python-mutagen
+Requires: python-pygobject >= 2.26.0
+Requires: python-pygtk-glade >= 2:2.18.0
+Requires: python-sqlite
+Suggests: brasero
+Suggests: k3b
+Suggests: python-gnome-extras-mozilla
+Suggests: serpentine
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
Exaile is a media player aiming to be similar to KDE's AmaroK, but for
-gtk2. It incorporates many of the cool things from AmaroK (and other
+GTK+2. It incorporates many of the cool things from AmaroK (and other
media players).
Some of the features are:
- lyrics fetching
- artist/album information via the wikipedia
- last.fm support
-- optional iPod support (assuming you have python-gpod installed).
+- optional iPod support (assuming you have python-gpod installed)
- builtin shoutcast directory browser
- tabbed playlists
- blacklisting of tracks
- downloading of guitar tabs from fretplay.com
- submitting played tracks on the iPod to last.fm
+%description -l pl.UTF-8
+Exaile to odtwarzacz multimediów mający być podobny do AmaroKa, ale
+dla GTK+2. Łączy wiele dobrych cech AmaroKa (i innych odtwarzaczy
+multimediów).
+
+Niektóre możliwości to:
+- automatyczne pobieranie okładki albumu
+- obsługa dużych bibliotek
+- pobieranie tekstów utworów
+- informacje o wykonawcy/albumie z wikipedii
+- obsługa last.fm
+- opcjonalna obsługa iPoda (przy zainstalowanym pakiecie python-gpod)
+- wbudowana przeglądarka katalogów shoutcastów
+- playlisty z zakładkami
+- czarna lista ścieżek
+- ściąganie tabulatur gitarowych z fretplay.com
+- przesyłanie ścieżek odtworzonych na iPodzie do last.fm
+
%prep
-%setup -q -n %{name}_%{version}
-%patch0 -p1
+%setup -q
+
+# useless, there are bigger correspondent locales
+rm -f po/{es_ES.po,frp.po,he_IL.po,it_IT.po,tr_TR.po}
+
+%build
+%{__make} \
+ PREFIX=%{_prefix} \
+ LIBINSTALLDIR=/%{_lib}
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_menudir}
-%{__make}
%{__make} install \
- DESTDIR=$RPM_BUILD_ROOT
+ PREFIX=%{_prefix} \
+ DESTDIR=$RPM_BUILD_ROOT \
+ LIBINSTALLDIR=/%{_lib}
-%postun
+%find_lang %{name} --all-name
%clean
rm -rf $RPM_BUILD_ROOT
-%files
+%files -f %{name}.lang
%defattr(644,root,root,755)
-%doc TODO
%attr(755,root,root) %{_bindir}/%{name}
+%dir %{_sysconfdir}/xdg/exaile
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xdg/exaile/settings.ini
+%{_libdir}/%{name}
%dir %{_datadir}/%{name}
-%attr(755,root,root) %{_datadir}/%{name}/exaile.py
-%{_datadir}/%{name}/exaile.glade
-%{_datadir}/%{name}/mmkeys.so
-%{_datadir}/%{name}/images
-%{_datadir}/%{name}/po
-%{_datadir}/%{name}/sql
-%{_datadir}/%{name}/xl
-%{_desktopdir}/*
-%{_pixmapsdir}/*
+%{_datadir}/%{name}/data
+%{_desktopdir}/%{name}.desktop
+%{_pixmapsdir}/%{name}.png
+%{_mandir}/man1/exaile.1*
+# maybe seperate subpackages for plugins?
+%{_datadir}/%{name}/plugins