File gnome-applet-music.spec of Package gnome-applet-music
# norootforbuild
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%global python_module_name musicapplet
Name: gnome-applet-music
Version: 2.4.0
Release: 1
Summary: A GNOME panel applet to control various music players
Group: Applications/Multimedia
License: GPLv2+
URL: http://www.kuliniewicz.org/music-applet/
Source0: http://www.kuliniewicz.org/music-applet/downloads/music-applet-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-build
## The build script will give warnings about missing python modules, such as
## gconf, gnomeapplet, etc.; but these are entirely false positives.
## These modules are only needed at runtime, hence are not included as
## build-time dependencies.
BuildRequires: gconf2
BuildRequires: gettext
BuildRequires: gnome-panel-devel
BuildRequires: python-gnome-devel
BuildRequires: perl(XML::Parser)
BuildRequires: python-gtk-devel
BuildRequires: python-devel
BuildRequires: intltool
## The hicolor-icon-theme dependency is to ensure that the
## %%_datadir/icons/hicolor directory hierarchy is properly owned.
Requires: dbus-1-python
Requires: gnome-python-desktop
Requires: hicolor-icon-theme
Requires: python-pyinotify
Requires: python-gtk
Requires: pyxml
Provides: gnome-applet-rhythmbox
Provides: music-applet
Provides: rhythmbox-applet
Obsoletes: gnome-applet-rhythmbox
Obsoletes: music-applet
Obsoletes: rhythmbox-applet
%gconf_schemas_prereq
%lang_package
%description
Music Applet is a small, simple GNOME panel applet that lets you control a
variety of different music players from the panel. Music Applet provides easy
access to information about the current song and the most important playback
controls.
Music Applet is the successor to the Rhythmbox Applet and currently supports
the following music players:
* Amarok
* Audacious
* Banshee
* Exaile
* MPD
* Muine
* Rhythmbox
* Quod Libet
* VLC
* XMMS1 and XMMS2
%prep
%setup -qn "music-applet-%{version}"
%build
#intltoolize -f
%configure --disable-schemas-install
make
%install
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
make install DESTDIR=%{buildroot}
%find_lang music-applet
%find_gconf_schemas
cat %{name}.schemas_list music-applet.lang >%{name}.lst
%clean
rm -rf %{buildroot}
%pre -f %{name}.schemas_pre
%preun -f %{name}.schemas_preun
%posttrans -f %{name}.schemas_posttrans
%files -f %{name}.lst
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING FAQ NEWS README README.plugins THANKS
#%{_sysconfdir}/gconf/schemas/music-applet.schemas
%{_libdir}/bonobo/servers/GNOME_Music_Applet.server
%{_libdir}/gnome-2.0/ui/GNOME_Music_Applet.xml
%exclude %{python_sitelib}/%{python_module_name}/*.la
%{python_sitelib}/%{python_module_name}/
%{_libexecdir}/music-applet/
%{_datadir}/music-applet/
%{_datadir}/icons/hicolor/*/apps/music-applet-*
%changelog