%define name feh %define version 1.2.9 %define release 1mdk %define section Multimedia/Graphics %define title Feh %define Summary Image viewer at heart, though it does other cool stuff. Summary: %Summary Name: %name Version: %version Release: %release License: BSD Group: Graphics URL: http://www.linuxbrit.co.uk/feh/ Source0: http://www.linuxbrit.co.uk/downloads/%name-%version.tar.bz2 Source1: %name-icons.tar.bz2 BuildRoot: %_tmppath/%name-buildroot Buildrequires: imlib2-devel giblib-devel %description Feh is an imageviewer, but it does a whole lot of other cool stuff as well. There are simply too many to mention them here so please check the docs/homepage. %prep %setup -q %setup -q -T -D -a1 # Don't let make install install the doc-files. %__perl -pi -e 's,install-data-am: install-man install-docsDATA,install-data-am: install-man,' Makefile.in %build %configure %make %install %__rm -rf %buildroot %makeinstall mkdir -p %buildroot/%_menudir cat > %buildroot/%_menudir/%name << EOF ?package(%name): \ command="%_bindir/%name %_datadir/wallpapers/*" \ needs="X11" \ icon="%name.png" \ section="%section" \ title="%title" \ longtitle="%Summary" EOF %__install -D -m 644 %{name}-48.png %buildroot/%_liconsdir/%name.png %__install -D -m 644 %{name}-32.png %buildroot/%_iconsdir/%name.png %__install -D -m 644 %{name}-16.png %buildroot/%_miconsdir/%name.png %post %update_menus %postun %clean_menus %clean %__rm -rf %buildroot %files %defattr(0755,root,root,0755) %_bindir/* %defattr(0644,root,root,0755) %doc AUTHORS ChangeLog README TODO %_menudir/* %_datadir/%name %_mandir/man1/%name.1* %_miconsdir/* %_iconsdir/* %_liconsdir/* %changelog * Mon Nov 08 2004 Lenny Cartier <lenny@mandrakesoft.com> 1.2.9-1mdk - 1.2.9 * Fri Sep 26 2003 Han Boetes <han@linux-mandrake.com> 1.2.6-2mdk - feh needs files otherwise it won't work. Not realy intuitive... * Thu Sep 18 2003 Han Boetes <han@linux-mandrake.com> 1.2.6-1mdk - Initial mandrake release.