263N/A#
1879N/A# spec file for package gthumb
263N/A#
263N/A# Copyright 2008 Sun Microsystems, Inc.
263N/A# This file and all modifications and additions to the pristine
263N/A# package are under the same license as the package itself.
263N/A#
263N/A# owner: jerrytan
263N/A#
263N/A
263N/A%define OSR LFI#105446 (gnome Exec. summary):n/a
263N/A
263N/A%include l10n.inc
263N/AName: gthumb
263N/ALicense: GPL v2
263N/AGroup: Applications/Multimedia
263N/AVersion: 2.12.0
263N/ARelease: 1
1472N/ADistribution: Java Desktop System
1472N/AVendor: Gnome Community
1472N/ASummary: An image viewer and browser for GNOME.
263N/ASource: http://ftp.gnome.org/pub/GNOME/sources/gthumb/2.12/%{name}-%{version}.tar.bz2
263N/ASource1: %{name}-po-sun-%{po_sun_version}.tar.bz2
263N/A%if %build_l10n
1879N/ASource2: l10n-configure.sh
1879N/A%endif
1879N/A#owner:jerrytan date:2006-03-22 type:branding
1879N/APatch1: gthumb-01-menu-entry.diff
1879N/A#owner:chrisk date:2010-03-13 type:bug
1879N/APatch2: gthumb-02-enable-deprecated.diff
1879N/A#owner:gheet date:2011-02-25 type:bug bugster:7014628
263N/APatch3: gthumb-03-use-libpng12.diff
263N/A
263N/AURL: http://gthumb.sourceforge.net/
263N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
263N/ADocdir: %{_docdir}/doc
263N/AAutoreqprov: on
263N/A
263N/ABuildRequires: libpng-devel
263N/ABuildRequires: glib2-devel >= 2.4.0
263N/ABuildRequires: gtk2-devel >= 2.4.0
263N/ABuildRequires: libxml2-devel >= 2.6.7
263N/ABuildRequires: libgnome-devel >= 2.6.0
263N/ABuildRequires: libgnomeui-devel >= 2.6.0
263N/ABuildRequires: gnome-vfs-devel >= 2.6.0
263N/ABuildRequires: libglade-devel >= 2.3.6
263N/ABuildRequires: libgnomeprint-devel >= 2.6.0
263N/ABuildRequires: libgnomeprintui-devel >= 2.6.0
263N/ABuildRequires: libbonobo-devel >= 2.6.0
263N/ABuildRequires: libbonoboui-devel >= 2.6.0
263N/ARequires: libpng
263N/ARequires: glib2 >= 2.4.0
263N/ARequires: gtk2 >= 2.4.0
263N/ARequires: libxml2 >= 2.6.7
263N/ARequires: libgnome >= 2.6.0
263N/ARequires: libgnomeui >= 2.6.0
263N/ARequires: gnome-vfs >= 2.6.0
263N/ARequires: libglade >= 2.3.6
263N/ARequires: libgnomeprint >= 2.6.0
263N/ARequires: libgnomeprintui >= 2.6.0
263N/ARequires: libbonobo >= 2.6.0
263N/ARequires: libbonoboui >= 2.6.0
263N/A
263N/A%description
263N/AgThumb lets you browse your hard disk, showing you thumbnails of image files.
263N/AIt also lets you view single files (including GIF animations), add comments to
263N/Aimages, organize images in catalogs, print images, view slideshows, set your
263N/Adesktop background, and more.
263N/A
263N/A%prep
263N/A%setup -q
263N/A%if %build_l10n
3863N/Abzcat %SOURCE1 | tar xf -
263N/Acd po-sun; make; cd ..
263N/A%endif
263N/A%patch1 -p1
263N/A%patch2 -p1
263N/A%patch3 -p1
263N/A
263N/A%build
263N/A%ifos linux
263N/Aif [ -x /usr/bin/getconf ]; then
263N/A CPUS=`getconf _NPROCESSORS_ONLN`
263N/Afi
263N/A%else
263N/A CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
263N/A%endif
263N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
263N/A CPUS=1
263N/Afi
263N/A
263N/A#FIXME: remove uncompatible m4 files
263N/Arm -f m4/lt~obsolete.m4
263N/Arm -f m4/ltoptions.m4
263N/Arm -f m4/libtool.m4
263N/Arm -f m4/ltsugar.m4
263N/Arm -f m4/ltversion.m4
263N/A
263N/Alibtoolize --force
263N/Aintltoolize --force --copy --automake
263N/A
263N/A%if %build_l10n
263N/Abash -x %SOURCE2 --enable-copyright
263N/A%endif
263N/A
263N/ACFLAGS="$RPM_OPT_FLAGS"
263N/Aaclocal $ACLOCAL_FLAGS -I ./m4
263N/Aautomake -a -c -f
263N/Aautoconf
263N/A./configure --prefix=%{_prefix} \
263N/A --bindir=%{_bindir} \
263N/A --libdir=%{_libdir} \
263N/A --mandir=%{_mandir} \
263N/A --sysconfdir=%{_sysconfdir} \
263N/A --disable-scrollkeeper \
263N/A --disable-schemas-install \
263N/A --libexecdir=%{_libexecdir}
263N/Amake -j $CPUS
1467N/A
263N/A%install
263N/Aexport GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
263N/Amake DESTDIR=$RPM_BUILD_ROOT install
263N/Aunset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
263N/A
263N/A#Clean up unpackage files
263N/Afind $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
263N/Afind $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
263N/A
263N/A%clean
263N/Arm -rf $RPM_BUILD_ROOT
263N/A
263N/A%post
263N/Aexport GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
263N/ASCHEMAS="gthumb.schemas"
263N/Afor S in $SCHEMAS; do
263N/A gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/$S >/dev/null
263N/Adone
263N/A
263N/A%postun
263N/A
263N/A%files
263N/A%defattr(-,root,root)
263N/A%{_bindir}/gthumb
263N/A%{_libdir}/gthumb/libgthumb.so
263N/A%{_libexecdir}/gthumb-image-viewer
263N/A%{_libexecdir}/gthumb-catalog-view
263N/A%{_datadir}/applications/gthumb.desktop
263N/A%{_datadir}/gnome-2.0/ui/*.xml
1879N/A%{_datadir}/gthumb/glade/*
1879N/A%{_datadir}/gthumb/icons/*
%{_datadir}/gthumb/albumthemes/*
%{_datadir}/locale/*/LC_MESSAGES/gthumb.mo
%{_datadir}/application-registry/gthumb.applications
%{_libdir}/bonobo/servers/*.server
%{_libdir}/gthumb/modules/*.so
%{_datadir}/pixmaps/gthumb.png
%{_sysconfdir}/gconf/schemas/*.schemas
%doc AUTHORS NEWS README COPYING
%doc %{_datadir}/man/man1/gthumb.1*
%doc %{_datadir}/gnome/help/gthumb
%changelog
* Wed Oct 27 2010 - brian.cameron@oracle.com
- Bump to 2.12.0.
* Fri Apr 16 2010 - christian.kelly@oracle.com
- Bump to 2.11.3.
- Remove patches/gthumb-02-upgrade.diff.
- Re-shuffle and re-work patches/gthumb-03-enable-deprecated.diff.
* Sat Mar 13 2010 - christian.kelly@sun.com
- Add gthumb-03-enable-deprecated.diff.
* Thu Feb 26 2009 - dave.lin@sun.com
- Bump to 2.10.11
- Remove upstreamed patch 05-libumem-check.diff.
* Wed Feb 04 2009 - jerry.tan@sun.com
- Add gthumb-05-libumem-check.diff to fix bug 6647918
* Wed Dec 03 2008 - jerry.tan@sun.com
- Bump to 2.10.10
* Thu Nov 20 2008 -xin.lai@sun.com
- Add gthumb-04-zh-ja-locale.diff to fix the core dumped bug 6718848
* Tue Aug 26 2008 - takao.fujiwara@sun.com
- Add gthumb-03-g11n-locale-dir.diff to show none UTF-8 filenames.
* Tue Aug 05 2008 - damien.carbery@sun.com
- Bump to 2.10.9. Remove upstream patch 02-uninstd_h.
* Tue Jul 22 2008 - damien.carbery@sun.com
- Add upstream patch 02-uninstd_h to fix 543584.
* Thu 25 Apr 2008 - jerry.tan@sun.com
- Bump to 2.10.8.
* Thu Nov 22 2007 - matt.keenan@sun.com
- Add Patch 02-threads.diff resolves bugs 6631422/498995
* Fri Oct 19 2007 - damien.carbery@sun.com
- Bump to 2.10.7.
* Thu Aug 30 2007 - damien.carbery@sun.com
- Add intltoolize call to update intltool scripts.
* Tue Aug 28 2007 - damien.carbery@sun.com
- Bump to 2.10.6.
* Mon Jul 02 2007 - damien.carbery@sun.com
- Bump to 2.10.5. Remove upstream patch, 02-html-page-begin.
* Fri Jun 22 2007 - damien.carbery@sun.com
- Add patch, 02-html-page-begin, to fix 450110.
* Tue Jun 19 2007 - damien.carbery@sun.com
- Bump to 2.10.4.
* Thu May 17 2007 - damien.carbery@sun.com
- Bump to 2.10.3. Remove upstream patch, 02-fix-photo-import.
* Wed May 16 2007 - takao.fujiwara@sun.com
- Add l10n tarball.
* Thu Apr 12 2007 - damien.carbery@sun.com
- Bump to 2.10.2.
* Wed Mar 28 2007 - damien.carbery@sun.com
- Bump to 2.10.1.
* Tue Mar 20 2007 - damien.carbery@sun.com
- Bump to 2.10.0.
* Wed Mar 14 2007 - laca@sun.com
- add --disable-scrollkeeper configure option
* Wed Mar 07 2007 - daymobrew@users.sourceforge.net
- Bump to 2.9.3.
* Mon Feb 19 2007 - damien.carbery@sun.com
- Bump to 2.9.2. Minor change to deletion of *.a & *.la.
* Thu Nov 20 2006 - laca@sun.com
- bump to 2.7.9
* Sat May 13 2006 - laca@sun.com
- Move to /usr
* Thu Apr 20 2006 - damien.carbery@sun.com
- Bump to 2.7.6.
* Tue Mar 21 2006 - damien.carbery@sun.com
- Bump to 2.7.5.1.
* Mon Mar 6 2006 - damien.carbery@sun.com
- Bump to 2.7.4.
* Tue Feb 14 2006 - damien.carbery@sun.com
- Bump to 2.7.3.
* Sun Jan 15 2006 - damien.carbery@sun.com
- Bump to 2.7.2
* Tue Dec 20 2005 - dermot.mccluskey@sun.com
- Bump to 2.7.1
* Fri Dec 02 2005 - srirama.sharma@wipro.com
- Added gthumb-04-sfw-path.diff to use the absolute path of the
executable in the .desktop file as usr/sfw/bin should not be
included in $PATH.
Fixes bug #6345489.
* Tue Nov 29 2005 - laca.com
- remove javahelp stuff
* Tue Sep 27 2005 - damien.carbery@sun.com
- Bump to 2.6.8.
* Mon Aug 15 2005 - damien.carbery@sun.com
- Bump to 2.6.6.
* Fri Jan 28 2005 - Matt.keenan@sun.com
- #6222302 - Remove from yelp
* Sun Nov 14 2004 - laca@sun.com
- added --libdir=%{_libdir} and --bindir=%{_bindir} to configure opts
* Wed Oct 20 2004 - alvaro.lopez@sun.com
- Added patch6. It fixes bug #5101957
* Wed Oct 20 2004 - alvaro.lopez@sun.com
- "Source" entry updated
* Wed Sep 15 2004 - yuriy.kuznetsov@sun.com
- Added gthumb-04-g11n-potfiles.diff
* Thu Jul 08 2004 - damien.donlon@sun.com
- Updated l10n content to gthumb-l10n-po-1.2.tar.bz2
* Wed Jul 07 2004 - niall.power@sun.com
- port to rpm4
* Wed Jul 07 2004 - dermot.mccluskey@sun.com
- added "-j $CPUS" to make to speed up builds
* Mon Jun 14 2004 - kaushal.kumar@wipro.com
- Fix gthumb omf file installation.
* Thu Jun 10 2004 - vijaykumar.patwari@wipro.com
- Fixes search pattern.
* Wed May 12 2004 - damien.donlon@sun.com
- Updated l10n content to gthumb-l10n-po-1.1.tar.bz2
* Sun Apr 18 2004 - laca@sun.com
- enable javahelp conversion on Solaris
* Fri Apr 09 2004 - brian.cameron@sun.com
- Change the way the build directory is cleaned so that eog and
gthumb can be built into the same Solaris package.
* Thu Apr 01 2004 - brian.cameron@sun.com
- Added patch02, now use ACLOCAL_FLAGS in aclocal call, and
added --libexecdir to the configure line.
* Thu Apr 01 2004 - matt.keenan@sun.com
- Javahelp conversion, fix BuildRoot location
* Wed Mar 31 2004 - brian.cameron@sun.com
- replace tar jxf with the more solaris friendly
bzcat piped through tar
* Mon Mar 29 2004 - damien.donlon@sun.com
- Adding gthumb-l10n-po-1.0.tar.bz2 l10n content
* Mon Feb 23 2004 - <stephen.browne@sun.com>
- uprevd to 2.3.1, removed patch 02
* Fri Jan 09 2004 - <matt.keenan@sun.com>
- Deprecated patch for compile
* Mon Oct 20 2003 - <stephen.browne@sun.com>
- upreved to 2.1.7
* Thu Aug 14 2003 - <laca@sun.com>
- remove *.a, *.la
* Mon Aug 11 2003 - stephen.browne@sun.como
- new tarball, reset release
* Sat Aug 01 2003 - glynn.foster@sun.com
- Update menu entry.
* Mon Jul 14 2003 - Ghee.Teo@sun.com
- Initial Sun Release