%define		src musicmanager
Version:	0.9.12
Name:		gmm
Release:	alt0.1
Summary:	Goggles Music Manager
License: 	GPLv3+
Group: 		Sound
Packager:	Motsyo Gennadi <drool@altlinux.ru>
Url:		http://code.google.com/p/gogglesmm/
Source0:	http://gogglesmm.googlecode.com/files/%src-%version.tar.bz2

Requires(post,postun): desktop-file-utils
BuildPreReq:	desktop-file-utils

# Automatically added by buildreq on Thu Jun 26 2008 (-bi)
BuildRequires: ImageMagick bzlib-devel gcc-c++ libXcursor-devel libXrandr-devel libdbus-devel libfox-devel libjpeg-devel libmesa-devel libpng-devel libsqlite3-devel libtag-devel libtiff-devel libxine-devel

%description
Goggles Music Manager is a music collection manager and player
that automatically categorizes your music files based on genre,
artist, album, and song. It supports gapless playback and features
easy tag editing.

%prep
%setup -q -n %src-%version

%build
%configure --with-dbus
%make_build VERBOSE=1

%install
%__mkdir -p %buildroot%_bindir
%make PREFIX=%buildroot/%prefix install
%__install -Dp -m 0644 extra/%name.desktop %buildroot%_desktopdir/%name.desktop

%__mkdir -p %buildroot/{%_miconsdir,%_niconsdir,%_liconsdir}
convert -resize 48x48 extra/%name.png %buildroot%_liconsdir/%name.png
convert -resize 32x32 extra/%name.png %buildroot%_niconsdir/%name.png
convert -resize 16x16 extra/%name.png %buildroot%_miconsdir/%name.png

%post
%update_menus
%update_desktopdb

%postun
%clean_menus
%clean_desktopdb

%files
%doc AUTHORS ChangeLog* README*
%_bindir/*
%_desktopdir/*
%_miconsdir/%name.png
%_niconsdir/%name.png
%_liconsdir/%name.png

%changelog
* Wed Jun 25 2008 Motsyo Gennadi <drool@altlinux.ru> 0.9.12-alt0.1
- test build
