Summary: A music player
Name: exaile
Version: 0.2.8
Release: 1%{?dist}
Group: Applications/Multimedia
License: GPL
URL: http://www.exaile.org
Source0: http://www.exaile.org/files/exaile_%{version}.tar.gz
Patch0: exaile-python.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: python-devel
BuildRequires: pygtk2-devel
BuildRequires: gtk2-devel
BuildRequires: gstreamer-plugins-good-devel
BuildRequires: desktop-file-utils
BuildRequires: pkgconfig
Requires: python-mutagen >= 1.8
Requires: dbus-python
Requires: gstreamer-python >= 0.10
Requires: python-sqlite2
%if "%fedora" > "6"
# for iPod device support
Requires: python-gpod
%endif
%description
Exaile is a media player aiming to be similar to KDE's AmaroK, but for GTK+.
It incorporates many of the cool things from AmaroK (and other media players)
like automatic fetching of album art, handling of large libraries, lyrics
fetching, artist/album information via the wikipedia, last.fm support, optional
iPod support (assuming you have python-gpod installed).
In addition, Exaile also includes a built in shoutcast directory browser,
tabbed playlists (so you can have more than one playlist open at a time),
blacklisting of tracks (so they don't get scanned into your library),
downloading of guitar tablature from fretplay.com, and submitting played tracks
on your iPod to last.fm
%prep
%setup -q -n %{name}_%{version}
%patch0 -p0 -b .python
# remove shebangs from all files as none should be executable scripts
sed -e '/^#!\//,1 d' -i plugins/*.py
sed -e '/^\s*strip /d' -i mmkeys/Makefile # fix -debuginfo
%build
export CFLAGS="$RPM_OPT_FLAGS"
make %{?_smp_mflags}
%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot}
desktop-file-install --delete-original \
--vendor="fedora" \
--remove-category=Application \
--remove-category=AudioPlayer \
--add-category=Audio \
--dir=%{buildroot}%{_datadir}/applications \
%{buildroot}%{_datadir}/applications/%{name}.desktop
mkdir -p %{buildroot}%{_libdir}/%{name}
mv %{buildroot}%{_datadir}/%{name}/mmkeys.so %{buildroot}%{_libdir}/%{name}/
chmod 755 %{buildroot}%{_libdir}/%{name}/mmkeys.so
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc changelog COPYING TODO
%{_bindir}/exaile
%{_libdir}/exaile/
%{_datadir}/applications/*.desktop
%{_datadir}/pixmaps/exaile.png
%{_datadir}/exaile/
%changelog
* Sun Jan 28 2007 Deji Akingunola <dakingun@gmail.com> - 0.2.8-1
- Fixes for empty debuginfo by Ville Skyttä (Bug #225093)
* Tue Jan 09 2007 Deji Akingunola <dakingun@gmail.com> - 0.2.8-1
- New release
* Sat Dec 30 2006 Deji Akingunola <dakingun@gmail.com> - 0.2.7-1
- New release
* Wed Dec 27 2006 Deji Akingunola <dakingun@gmail.com> - 0.2.6-3
- Rework the python include patch
* Wed Dec 27 2006 Deji Akingunola <dakingun@gmail.com> - 0.2.6-2
- Rewrite the build patch to be more generic
* Tue Dec 26 2006 Deji Akingunola <dakingun@gmail.com> - 0.2.6-1
- First version for Fedora Extras