Home | History | Annotate | Download | only in gnome-2-16
      1 #
      2 # spec file for package eog
      3 #
      4 # Copyright (c) 2005 Sun Microsystems, Inc.
      5 # This file and all modifications and additions to the pristine
      6 # package are under the same license as the package itself.
      7 #
      8 # Owner: rickju
      9 #
     10 Name:         eog
     11 License:      GPL
     12 Group:        System/GUI/GNOME
     13 Version:      2.16.1.1
     14 Release:      1
     15 Distribution: Java Desktop System
     16 Vendor:       Sun Microsystems, Inc.
     17 Summary:      Eye Of GNOME Image Viewer
     18 Source:       http://ftp.gnome.org/pub/GNOME/sources/eog/2.16/eog-%{version}.tar.bz2
     19 Source1:      eog.1.gz
     20 Patch1:       eog-01-full-screen-show.diff
     21 Patch2:       eog-02-jpeg.diff
     22 Patch3:       eog-03-shell-X11.diff
     23 Patch4:       eog-04-menu-entry.diff
     24 URL:          http://www.gnome.org
     25 BuildRoot:    %{_tmppath}/%{name}-%{version}-build
     26 Docdir:       %{_defaultdocdir}/doc
     27 Autoreqprov:  on
     28 
     29 %define libgnomeui_version 2.5.90
     30 %define libgnomeprintui_version 2.6.0
     31 %define scrollkeeper_version 0.3.12
     32 %define eel_version 2.5.90
     33 
     34 Requires:	libgnomeui >= %{libgnomeui_version}
     35 Requires:	libgnomeprintui >= %{libgnomeprintui_version}
     36 Requires:       eel > %{eel_version}
     37 Prereq:         GConf
     38 BuildRequires:	libgnomeui-devel >= %{libgnomeui_version}
     39 BuildRequires:	libgnomeprintui-devel >= %{libgnomeprintui_version}
     40 BuildRequires:	eel-devel >= %{eel_version}
     41 BuildRequires:	scrollkeeper >= %{scrollkeeper_version}
     42 BuildRequires:	intltool
     43 
     44 %description
     45 The "Eye of GNOME" is a very fast picture viewer, which can either be used as a 
     46 plugin for Nautilus, or as a standalone application. This version of EOG is 
     47 compiled for the GNOME 2.0 Desktop platform.
     48 
     49 %prep
     50 %setup -q
     51 %patch1 -p1
     52 %patch2 -p1
     53 %patch3 -p1
     54 %patch4 -p1
     55 
     56 for po in po/*.po; do
     57   dos2unix -ascii $po $po
     58 done
     59 
     60 
     61 %build
     62 %ifos linux
     63 if [ -3 /usr/bin/getconf ]; then
     64   CPUS=`getconf _NPROCESSORS_ONLN`
     65 fi
     66 %else
     67   CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
     68 %endif
     69 if test "x$CPUS" = "x" -o $CPUS = 0; then
     70   CPUS=1
     71 fi
     72 
     73 gnome-doc-common
     74 libtoolize --force
     75 glib-gettextize -f
     76 intltoolize --force --copy
     77 aclocal $ACLOCAL_FLAGS
     78 automake -a -c -f
     79 autoconf
     80 
     81 CFLAGS="$RPM_OPT_FLAGS"			\
     82 ./configure --prefix=%{_prefix}		\
     83 	    --sysconfdir=%{_sysconfdir} \
     84 	    --libexecdir=%{_libexecdir} \
     85             --without-lcms
     86 make -j $CPUS
     87 
     88 %install
     89 rm -rf $RPM_BUILD_ROOT
     90 export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
     91 make DESTDIR=$RPM_BUILD_ROOT install
     92 unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL  
     93 install -d $RPM_BUILD_ROOT%{_mandir}/man1
     94 install --mode=0644 %SOURCE1 $RPM_BUILD_ROOT%{_mandir}/man1
     95 #Copy zh_HK from zh_TW
     96 #Fixes bug 4930405
     97 install -d $RPM_BUILD_ROOT%{_datadir}/locale/zh_HK/LC_MESSAGES
     98 install --mode=0644 $RPM_BUILD_ROOT%{_datadir}/locale/zh_TW/LC_MESSAGES/*.mo $RPM_BUILD_ROOT%{_datadir}/locale/zh_HK/LC_MESSAGES/
     99 chmod 644 $RPM_BUILD_ROOT%{_datadir}/gnome/help/eog/*/*.xml
    100 
    101 
    102 %clean
    103 rm -rf $RPM_BUILD_ROOT
    104 
    105 %post
    106 export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
    107 SCHEMAS="eog.schemas"
    108 for S in $SCHEMAS; do
    109         gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/$S >/dev/null
    110 done
    111 
    112 %files
    113 %defattr (-, root, root)
    114 %{_bindir}/*
    115 %{_sysconfdir}/gconf/schemas/eog.schemas
    116 %{_datadir}/applications/eog.desktop
    117 %{_datadir}/eog/*
    118 %{_datadir}/gnome/help/*
    119 %{_datadir}/locale/*/LC_MESSAGES/*.mo
    120 %{_datadir}/omf/eog/*
    121 %{_datadir}/pixmaps/*
    122 %{_datadir}/man/man1/*
    123 %{_prefix}/var/scrollkeeper
    124 
    125 %changelog
    126 * Fri Oct 20 2006 - damien.carbery@sun.com
    127 - Bump to 2.16.1.1.
    128 * Mon Oct 02 2006 - damien.carbery@sun.com
    129 - Bump to 2.16.1.
    130 * Mon Sep 04 2006 - damien.carbery@sun.com
    131 - Bump to 2.16.0.1.
    132 * Mon Sep 04 2006 - damien.carbery@sun.com
    133 - Bump to 2.16.0.
    134 * Tue Aug 22 2006 - damien.carbery@sun.com
    135 - Bump to 2.15.92.
    136 * Tue Aug 08 2006 - damien.carbery@sun.com
    137 - Bump to 2.15.91.
    138 * Thu Jul 27 2006 - damien.carbery@sun.com
    139 - Add dos2unix call to fix po files.
    140 * Mon Jul 24 2006 - damien.carbery@sun.com
    141 - Bump to 2.15.90.
    142 * Fri Jul 21 2006 - laca@sun.com
    143 - add --without-lcms to avoid accidentally picking up liblcms (part of
    144   spec-files-extra), fixes 6425540
    145 * Web Jul 19 2006 - dermot.mccluskey@sun.com
    146 - Bump to 2.15.4.
    147 * Tue Apr 11 2006 - damien.carbery@sun.com
    148 - Bump to 2.14.1.
    149 * Tue Mar 14 2006 - damien.carbery@sun.com
    150 - Bump to 2.14.0.
    151 * Sun Mar  5 2006 - damien.carbery@sun.com
    152 - Bump to 2.13.92.
    153 * Wed Feb 15 2006 - damien.carbery@sun.com
    154 - Bump to 2.13.91.
    155 * Thu Jan 19 2006 - damien.carbery@sun.com
    156 - Running glib-gettextize is a better fix than patching the Makefile to
    157   not go into the po directory.  This fixes infinite loop also.
    158 * Wed Jan 18 2006 - damien.carbery@sun.com
    159 - Add intltoolize call.
    160 * Tue Jan 17 2006 - glynn.foster@sun.com
    161 - Bump to 2.13.5
    162 * Sun Jan 15 2006 - damien.carbery@sun.com
    163 - Bump to 2.13.4
    164 * Tue Dec 20 2005 - dermot.mccluskey@sun.com
    165 - Bump to 2.13.3
    166 * Tue Nov 29 2005 - laca.com
    167 - remove javahelp stuff
    168 * Tue Nov 29 2005 - damien.carbery@sun.com
    169 - Bump to 2.12.2.
    170 * Tue Oct 11 2005 - damien.carbery@sun.com
    171 - Bump to 2.12.1
    172 * Mon Oct 03 2005 - damien.carbery@sun.com
    173 - Add patch to link with X11 to build on Solaris. Bugzilla 317828.
    174 * Sat Sep 17 2005 - glynn.foster@sun.com
    175 - Bump to 2.12.0
    176 * Mon Sep 05 2005 - damien.carbery@sun.com
    177 - Bump to 2.11.92.
    178 * Mon Aug 15 2005 - damien.carbery@sun.com
    179 - Bump to 2.11.90.
    180 * Thu Aug 04 2005 - laca@sun.com
    181 - removed patch image-save-as.diff, fix now in gnome-vfs
    182 * Thu Jun 23 2005 - arvind.samptur@wipro.com
    183 - Fix files getting deleted when doing a save as. Fixes #6288517
    184 * Thu May 19 2005 - glynn.foster@sun.com
    185 - Bump to 2.10.0
    186 * Fri May 05 2005 - kieran.colfer@sun.com
    187 - updating l10n po tarball to 1.15. Fixing CR 6265841
    188 * Mon Mar 21 2005 - srirama.sharma@wipro.com
    189 - Added eog-06-full-screen-show.diff to see that gtk_grab_add is
    190   done only when no other widget holds the grab.
    191   Fixes bug #6238888.
    192 * Mon Mar 07 2005 - damien.carbery@sun.com
    193 * 6233036: Add Source6 to specify Linux version of docs tarball.
    194 * Thu Mar 03 2005 - srirama.sharma@wipro.com
    195 - Added eog-05-multihead-functionality.diff to 
    196   make eog functional on a multihead system.
    197   Fixes bug #4893502.
    198 * Tue Feb 22 2005 - damien.carbery@sun.com
    199 * Correct name of docs tarball.
    200 * Mon Feb 21 2005 - damien.carbery@sun.com
    201 - Correct commit of Jan 25 to update docs tarball to 0.4.
    202 * Tue Feb 08 2005 - srirama.sharma@wipro.com
    203 - Updated eog-02-print-preview.diff to see that the print-preview window 
    204   does not diminish in size when invoked multiple times. Fixes bug #6221186.
    205 * Tue Jan 25 2005 - damien.carbery@sun.com
    206 - Update docs with Linux specific tarball from maeve.anslow@sun.com.
    207 * Fri Jan 14 2005 - kazuhiko.maekawa@sun.com
    208 - Updated l10n help tarball for cinnabar-linux
    209 * Wed Dec 22 2004 - takao.fujiwara@sun.com
    210 - Added eog-04-g11n-i18n-ui.diff to localize eog printer dialog.
    211   Fix bug 6174164
    212 * Wed Aug 25 2004 - Kazuhiko.Maekawa@sun.com
    213 - Added l10n help contents with patch
    214 * Mon Aug 16 2004 - shirley.woo@sun.com
    215 - Updated /usr/share/gnome/help/eog/*/*.xml to 0644 for Solaris integration 
    216 * Thu Aug 05 2004 - damien.carbery@sun.com
    217 - Incorporate new docs tarball from breda.mccolgan@sun.com.
    218 * Thu Jul 08 2004 - damien.donlon@sun.com
    219 - Updated l10n content to eog-l10n-po-1.2.tar.bz2
    220 * Wed Jul 07 2004 - dermot.mccluskey@sun.com
    221 - added "-j $CPUS" to make to speed up builds
    222 * Thu Jun 10 2004 - vijaykumar.patwari@wipro.com
    223 - Added patch for print preview.
    224 * Fri May 28 2004 - damien.carbery@sun.com
    225 - Incorporate new docs tarball from breda.mccolgan@sun.com.
    226 * Thu May 13 2004 - narayana.pattipati@wipro.com
    227 - Added patch eog-01-image-collection-viewer.diff to provide viewer_label
    228   for Image Collection Viewer. Fixes bugtraq bug#5043908. Also the changes 
    229   have been committed to community CVS HEAD on May 12 2004 
    230   (bugzilla bug#142347)
    231 * Wed May 12 2004 - damien.donlon@sun.com
    232 - Updated l10n content to eog-l10n-po-1.1.tar.bz2
    233 * Fri May 07 2004 - matt.keenan@sun.com
    234 - Bump to 2.6.1
    235 * Sun Apr 18 2004 - laca@sun.com
    236 - enable javahelp conversion on Solaris
    237 * Fri Apr 09 2004 - brian.cameron@sun.com
    238 - Change the way the build directory is cleaned so that eog and
    239   gthumb can be built into the same Solaris package.
    240 * Tue Apr 06 2004 - glynn.foster@sun.com
    241 - Bump to 2.6.0
    242 * Thu Apr 01 2004 - matt.keenan@sun.com
    243 - Javahelp conversion
    244 * Mon Mar 29 2004 - damien.donlon@sun.com
    245 - Updated l10n content to eog-l10n-po-1.0.tar.bz2
    246 * Mon Mar 01 2004 - <laca@sun.com>
    247 - add $ACLOCAL_FLAGS to aclocal args
    248 * Fri Feb 06 2004 - <matt.keenan@sun.com>
    249 - Bump tarball to 2.5.4 because of intltool (OrigTree) Failures
    250 - Remove patch1 and patch2 no longer needed
    251 - bump l10n release
    252 * Thu Jan 29 2004 - <dermot.mccluskey@sun.com>
    253 - add patch 02 for intltool-merge and dep. on intltool
    254 * Wed Dec 17 2003 - <glynn.foster@sun.com>
    255 - Bump to 2.5.1
    256 * Fri Oct 31 2003 - <glynn.foster@sun.com>
    257 - Remove potfiles patch [not needed] and Sun Support 
    258   keyword patch, since we're no longer using the Extras
    259   menu.
    260 - Update to 2.4.0
    261 * Fri Oct 10 2003 - <laca (at] sun.com>
    262 - Update to 2.4.0
    263 * Fri Sep 26 2003 - <laca (at] sun.com>
    264 - Integrate Sun docs
    265 * Fri Aug 07 2003 - <glynn.foster (at] sun.com>
    266 - Add mnemonics to some menu items.
    267 * Fri Aug 01 2003 - <glynn.foster (at] sun.com>
    268 - Add recent files support
    269 * Wed Jul 30 2003 - <glynn.foster (at] sun.com>
    270 - New tarball
    271 * Mon Jul 28 2003 - <glynn.foster (at] sun.com>
    272 - Change menu entry.
    273 * Wed Jul 09 2003 - <michael.twomey (at] sun.com>
    274 - add in sun po files
    275 * Wed Jul 02 2003 - glynn.foster (at] sun.com
    276 - Fix up the install of the glade file to stop things
    277   crashing
    278 * Wed May 14 2003 - Stephen.Browne (at] sun.com
    279 - initial release
    280