%define name eog %define version 0.5 %define release 11mdk Summary: The Eye of GNOME image viewer Name: %name Version: %version Release: %release License: GPL Group: Graphical desktop/GNOME Source: ftp://ftp.gnome.org/pub/GNOME/stable/sources/%{name}/%{name}-%{version}.tar.bz2 Source2: eog-32.png.bz2 Source3: eog-16.png.bz2 Source4: eog-48.png.bz2 URL: http://www.gnome.org/ Packager: Renaud Chaillat <rchaillat@mandrakesoft.com> Requires: gnome-libs Requires: gdk-pixbuf-gnomecanvas >= 0.9.0 Requires: bonobo Requires: oaf Requires: gnome-print >= 0.24 Requires: libglade Requires: GConf >= 0.8 BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot BuildRequires: GConf-devel gdk-pixbuf-devel gnome-libs-devel gnome-print-devel BuildRequires: libglade-devel libpng-devel libxml-devel oaf-devel popt-devel Patch0: eog-0.4-gconf.patch.bz2 Patch1: eog-libgconf1.patch.bz2 %description Eye of GNOME is a tool for viewing/cataloging images. %prep %setup -q #remove gconf registration (postpone to postinstall) #else you need to be root to create the package... %patch0 -p1 -b .gconfregister %patch1 -p1 -b .libgconf1 #automake to take the patch into account automake %build %configure --with-bonobo='no' %make %install rm -rf $RPM_BUILD_ROOT %makeinstall %{find_lang} %{name} #store shemas file cp %{name}.schemas $RPM_BUILD_ROOT%{_sysconfdir}/gconf/schemas # Menu mkdir -p $RPM_BUILD_ROOT%{_menudir} cat >$RPM_BUILD_ROOT%{_menudir}/%{name} <<EOF ?package(%{name}): command="%{_bindir}/%{name}" needs="X11" \ icon="%{name}.png" section="Multimedia/Graphics" \ title="Eye of Gnome" longtitle="Eye of Gnome Image Viewer" EOF #icon install -d $RPM_BUILD_ROOT/%{_iconsdir} install -d $RPM_BUILD_ROOT/%{_liconsdir} install -d $RPM_BUILD_ROOT/%{_miconsdir} bzcat %{SOURCE2} > $RPM_BUILD_ROOT/%{_iconsdir}/%{name}.png bzcat %{SOURCE3} > $RPM_BUILD_ROOT/%{_miconsdir}/%{name}.png # png is anti-aliased when put on the gnome panel bzcat %{SOURCE4} > $RPM_BUILD_ROOT/%{_liconsdir}/%{name}.png %clean rm -rf $RPM_BUILD_ROOT %post %{update_menus} #gconf registration GCONF_CONFIG_SOURCE="xml::%{_sysconfdir}/gconf/gconf.xml.defaults" \ %{_bindir}/gconftool --makefile-install-rule \ %{_sysconfdir}/gconf/schemas/%{name}.schemas if [ "$DURING_INSTALL" != "" ]; then killall oafd 2>&1 > /dev/null fi %postun %{clean_menus} %files -f %{name}.lang %defattr(-, root, root) %doc AUTHORS COPYING ChangeLog INSTALL NEWS README %{_bindir}/* %config(noreplace) %{_sysconfdir}/gconf/schemas/%{name}.schemas %{_datadir}/gnome/apps/*/* %{_datadir}/%{name} # only with bonobo support #%{_datadir}/oaf/* %{_menudir}/* %{_iconsdir}/%{name}.png %{_liconsdir}/%{name}.png %{_miconsdir}/%{name}.png %changelog * Thu Jan 31 2002 Thierry Vignaud <tvignaud@mandrakesoft.com> 0.5-11mdk - xpm -> png icons * Fri Oct 19 2001 Stefan van der Eijk <stefan@eijk.nu> 0.5-10mdk - BuildRequires: libxml-devel * Mon Aug 13 2001 dam's <damien@mandrakesoft.com> 0.5-9mdk - rebuilt * Sun Jun 10 2001 Stefan van der Eijk <stefan@eijk.nu> 0.5-8mdk - BuildRequires: db1-devel - BuildRequires: libglade-devel - BuildRequires: liboaf-devel - BuildRequires: popt-devel - Removed BuildRequires: libaudiofile-devel--> is required by gnome-libs-devel - Removed BuildRequires: libesound-devel--> is required by gnome-libs-devel - Removed BuildRequires: libimlib-devel--> is required by gnome-libs-devel - Removed BuildRequires: libjpeg-devel --> is required by gdk-pixbuf-devel - Removed BuildRequires: libtiff-devel --> is required by gdk-pixbuf-devel - Removed BuildRequires: XFree86-devel --> is required by gnome-libs-devel - Removed BuildRequires: zlib-devel --> is required by gdk-pixbuf-devel * Mon Mar 26 2001 Frederic Crozat <fcrozat@trinidad.mandrakesoft.com> 0.5-7mdk - Correct BuildRequires (thanks to Stefan van der Eijk) * Tue Feb 20 2001 Frederic Crozat <fcrozat@mandrakesoft.com> 0.5-6mdk - kill oafd during install * Wed Jan 24 2001 Frederic Crozat <fcrozat@mandrakesoft.com> 0.5-5mdk - Recompiled against oaf 0.6.2 * Mon Dec 4 2000 dam's <damien@mandrakesoft.com> 0.5-4mdk - added noreplace * Mon Dec 4 2000 Renaud Chaillat <rchaillat@mandrakesoft.com> 0.5-3mdk - updated for new 'lib' naming policy - compile temporarily without bonobo - patches for libgconf1 * Thu Oct 26 2000 Renaud Chaillat <rchaillat@mandrakesoft.com> 0.5-2mdk - recompiled with gnome-print 0.24 and bonobo 0.23 * Mon Sep 18 2000 Renaud Chaillat <rchaillat@mandrakesoft.com> 0.5-1mdk - new version * Tue Aug 29 2000 Renaud Chaillat <rchaillat@mandrakesoft.com> 0.4-3mdk - changed icons to xpm * Thu Aug 24 2000 Renaud Chaillat <rchaillat@mandrakesoft.com> 0.4-2mdk - add 32 and 16 icons * Mon Aug 22 2000 Renaud Chaillat <rchaillat@mandrakesoft.com> 0.4-1mdk - further macroszification - added requirements - patch to remove gconf registration in Makefile.am - added gconf registration in post install - added new files - compilation with bonobo - changed icon to eog shipped icon (gnome-eog.png) - config without 'no replace' on purpose (schemas are reference files which must be on par with gconf database), tell me if it's wrong. * Mon Aug 07 2000 Frederic Lepied <flepied@mandrakesoft.com> 0.3-8mdk - automatically added BuildRequires * Fri Jul 21 2000 dam's <damien@mandrakesoft.com> 0.3-7mdk - BM + macrozification. * Wed Jul 5 2000 dam's <damien@mandrakesoft.com> 0.3-6mdk - mandrake release. - specfile cleanup. * Mon May 15 2000 Pixel <pixel@mandrakesoft.com> 0.3-5mdk - add buidrequire * Wed May 3 2000 Guillaume Cottenceau <gc@mandrakesoft.com> 0.3-4mdk - remove software version in the menu entry - remove prefix for menu and icons - remove directory owns of locales * Sat Apr 29 2000 Daouda Lo <daouda@mandrakesoft.com> 0.3-3mdk - fixed wrong version in menuentry (reported by andreas ;-) * Fri Apr 28 2000 Daouda Lo <daouda@mandrakesoft.com> 0.3-2mdk - icon 32*32 * Tue Apr 24 2000 Daouda Lo <daouda@mandrakesoft.com> 0.3-1mdk - release * Tue Apr 18 2000 Daouda Lo <daouda@mandrakesoft.com> 0.2-2mdk - fix %post * Sun Apr 16 2000 Daouda Lo <daouda@mandrakesoft.com> 0.2-1mdk - first Mandrake rpm. - build from helix package. - SMP build/check. - add menu and icon file