%define name xpenguins %define version 2.2 %define release 5mdk Summary: Cute little penguins that walk along the tops of your windows Name: %{name} Version: %{version} Release: %{release} license: GPL Source0: %{name}-%{version}.tar.bz2 Source1: %name-32x32.png.bz2 Source2: %name-16x16.png.bz2 Source3: %name-48x48.png.bz2 Group: Toys BuildRoot: %{_tmppath}/%{name}-buildroot URL: http://xpenguins.seul.org/ BuildRequires: xpm-devel BuildRequires: XFree86-devel %description XPenguins animates a friendly family of penguins in your root window. They drop in from the top of the screen, walk along the tops of your windows, up the side of your windows, levitate, skateboard, and do other similarly exciting things. XPenguins is now themeable so if you're bored of penguins, try something else. The themes that come with this package are "Penguins", "Classic Penguins" and "Turtles". %prep %setup -q %build # Note: when we compile the program it needs to know where the # data will be when finally installed. %configure %make %install rm -rf $RPM_BUILD_ROOT %makeinstall_std mkdir -p %buildroot{%{_menudir},%{_iconsdir},%{_miconsdir},%{_liconsdir}} cat << EOF > %buildroot%{_menudir}/%{name} ?package(%{name}): \ command="%{_bindir}/%{name}" \ icon="%{name}.png" \ needs="x11" \ section="Amusement/Toys" \ title="Xpenguins" \ longtitle="Display penguins running on your desktop." EOF bzip2 -dc %{SOURCE1} > %buildroot%{_iconsdir}/%{name}.png bzip2 -dc %{SOURCE2} > %buildroot%{_miconsdir}/%{name}.png bzip2 -dc %{SOURCE3} > %buildroot%{_liconsdir}/%{name}.png %clean rm -rf $RPM_BUILD_ROOT %post %{update_menus} %postun %{clean_menus} %files %defattr(-,root,root) %doc README AUTHORS COPYING ChangeLog lay-out-frames.scm %attr(755,root,root) %{_bindir}/xpenguins %{_mandir}/man1/* %dir %{_datadir}/%{name}/ %{_datadir}/%{name}/themes %{_menudir}/%{name} %{_iconsdir}/%{name}.png %{_miconsdir}/%{name}.png %{_liconsdir}/%{name}.png %changelog * Fri Jul 02 2004 Lenny Cartier <lenny@mandrakesoft.com> 2.2-5mdk - rebuild * Sun Jun 15 2003 Götz Waschk <waschk@linux-mandrake.com> 2.2-4mdk - arrgh, forgot to type C-c C-r * Sat Jun 14 2003 Götz Waschk <waschk@linux-mandrake.com> 2.2-3mdk - add the data dir - add buildrequires - remove prefix * Mon Sep 9 2002 Arnaud Desmons <adesmons@mandrakesoft.com> 2.2-3mdk - added Packager * Mon Mar 4 2002 Götz Waschk <waschk@linux-mandrake.com> 2.2-2mdk - substitute xpm by png icons - fix data dir by using %%makeinstall_std macro * Tue Oct 09 2001 Lenny Cartier <lenny@mandrakesoft.com> 2.2-1mdk - fixed & updated by Götz Waschk <waschk@linux-mandrake.com> : - fixed rpmlint warning about non-transparent icon - 2.2 * Fri Jun 22 2001 Etienne Faure <etienne@mandrakesoft.com> 2.1-2mdk - large icon * Fri Jun 22 2001 Lenny Cartier <lenny@mandrakesoft.com> 2.1-1mdk - added in contribs bu Götz Waschk <waschk@linux-mandrake.com> : - adapted package for Mandrake * Sat May 5 2001 Robin Hogan <R.J.Hogan@reading.ac.uk> 1.9.1-1 - First spec file used with autoconf * Tue May 23 2000 Robin Hogan <R.J.Hogan@reading.ac.uk> 1.2-1 - Use BuildRoot. # end of file