Sophie

Sophie

distrib > * > 2008.0 > x86_64 > by-pkgid > 89c9436e57b4c936fe63b5de5ed65016 > files > 6

gai-album-0.7-5mdv2007.1.src.rpm

%define name gai-album
%define version 0.7
%define release %mkrel 5

Name: %name
Summary: Displays the front CD cover of the album played by XMMS
Version: %{version}
Release: %{release}
License: GPL
Url: http://gai.sf.net
Group: Sound
Source: http://prdownloads.sourceforge.net/gai/%{name}-%{version}.tar.bz2
Source10:   %{name}-16.png
Source11:   %{name}-32.png
Source12:   %{name}-48.png
Patch: gai-album-0.7-rox-install.patch
BuildRoot: %{_tmppath}/build-root-%{name}
BuildRequires: xmms-devel
BuildRequires: libgai-devel >= 0.5.3

%description
A GAI applet displaying the front CD cover of the album played by
XMMS. 

This applet can be used in the GNOME and ROX Panels and as a
WindowMaker dockapp. Other panels and Window Managers will be
supported soon.

%prep
%setup -q 
%patch -p1

%build
%configure2_5x
%make 

%install
rm -rf ${RPM_BUILD_ROOT}
%makeinstall_std
%if %_lib != lib
mv %buildroot%_prefix/lib/* %buildroot%_libdir/
%endif
install -m644 %SOURCE10 -D %{buildroot}/%_miconsdir/%name.png
install -m644 %SOURCE11 -D %{buildroot}/%_iconsdir/%name.png
install -m644 %SOURCE12 -D %{buildroot}/%_liconsdir/%name.png
mkdir -p $RPM_BUILD_ROOT%{_menudir}
cat << EOF > %{buildroot}/%{_menudir}/%{name} 
?package(%name): command="%{_bindir}/%name" icon="%name.png" \
                needs="X11" section="Multimedia/Sound" \
 title="Gai-album" longtitle="Xmms cover viewer" xdg="true"
EOF
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
cat > $RPM_BUILD_ROOT%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=Gai-Album
Comment=Xmms cover viewer
Exec=%{_bindir}/%{name}
Icon=%name
Terminal=false
Type=Application
Categories=X-MandrivaLinux-Multimedia-Sound;AudioVideo;Audio;
StartupNotify=true
Encoding=UTF-8
EOF

%clean
rm -rf $RPM_BUILD_ROOT

%post
%update_menus

%postun
%clean_menus

%files
%defattr(-,root,root,0755)
%doc README README.gai
%{_bindir}/*
%{_libdir}/bonobo/servers/GNOME_%{name}Applet.server
%_libdir/apps/*
%_datadir/applications/mandriva*
%{_menudir}/%name
%{_datadir}/pixmaps/*
%{_iconsdir}/%name.png
%{_liconsdir}/%name.png
%{_miconsdir}/%name.png


%changelog
* Wed Jan 24 2007 Götz Waschk <waschk@mandriva.org> 0.7-5mdv2007.0
+ Revision: 112815
- Import gai-album



* Wed Jan 24 2007 Götz Waschk <waschk@mandriva.org> 0.7-5mdv2007.1
- unpack patch

* Thu Jul 20 2006 Götz Waschk <waschk@mandriva.org> 0.7-4mdv2007.0
- xdg menu

* Wed May 10 2006 Götz Waschk <waschk@mandriva.org> 0.7-3mdk
- Rebuild
- use mkrel

* Mon May  9 2005 Götz Waschk <waschk@mandriva.org> 0.7-2mdk
- fix build on x86_64

* Tue Jul  6 2004 Götz Waschk <waschk@linux-mandrake.com> 0.7-1mdk
- update patch
- New release 0.7

* Wed Apr 21 2004 Götz Waschk <waschk@linux-mandrake.com> 0.6-3mdk
- update description (again)
- fix ROX installation

* Tue Apr 20 2004 Götz Waschk <waschk@linux-mandrake.com> 0.6-2mdk
- fix description

* Tue Apr 20 2004 Götz Waschk <waschk@linux-mandrake.com> 0.6-1mdk
- fix source location
- new version

* Mon Apr 12 2004 Götz Waschk <waschk@linux-mandrake.com> 0.5-1mdk
- new version

* Sat Apr  3 2004 Götz Waschk <waschk@linux-mandrake.com> 0.4-1mdk
- fix installation
- requires new gai
- new version

* Mon Mar  1 2004 Götz Waschk <waschk@linux-mandrake.com> 0.2-1mdk
- new version

* Sat Nov  1 2003 Götz Waschk <waschk@linux-mandrake.com> 0.1-3mdk
- rebuild for new gai

* Wed Oct  1 2003 Götz Waschk <waschk@linux-mandrake.com> 0.1-2mdk
- use the right configure macro
- small spec fix
- fix buildrequires

* Mon Sep 15 2003 Olivier Thauvin <thauvin@aerov.jussieu.fr> 0.1-1mdk 
- From Bellegarde Cedric <gnumdk@wanadoo.fr>
   - Make a spec file