File gthumb.spec of Package gthumb

#
# spec file for package gthumb (Version 2.7.9)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild

Name:           gthumb
BuildRequires:  fdupes hicolor-icon-theme intltool libglade2-devel libgnomeprintui-devel libgnomeui-devel libgphoto2-devel libidl libiptcdata-devel libtiff-devel libwnck-devel scrollkeeper update-desktop-files
License:        GPL v2 or later
Group:          System/GUI/GNOME
Version:        2.7.9
Release:        103
Summary:        An Image Viewer and Browser for GNOME
Source:         %{name}-%{version}.tar.bz2
URL:            http://sourceforge.net/projects/gthumb/
Patch1:         reg_expr.diff
Patch5:         gthumb-sizes.patch
Patch6:         gthumb-sizes-po.patch
Patch8:         gthumb-random.patch
Patch9:         gthumb-iptcdata.patch
Patch10:        gthumb-stringcompare.patch
Requires:       hicolor-icon-theme
Requires:       %{name}-lang = %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%gconf_schemas_prereq

%description
gThumb lets you browse your hard disk, showing you thumbnails of image
files. It also lets you view single files (including GIF animations),
add comments to images, organize images in catalogs, print images, view
slide shows, set your desktop background, and more.



Authors:
--------
    Paolo Bacchilega <paolo.bacch@tin.it>
    Josua Groeger <fractalus@gmx.net> 
    Chauk-Mean Proum <chaukmean@free.fr>

%lang_package
%prep
%setup -q
%patch1
%patch5
%patch6
%patch8
%patch9
%patch10

%build
autoreconf -f -i
# gth-window-actions-callbacks.c:*: warning: dereferencing type-punned pointer will break strict-aliasing rules
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
%configure\
	--libexecdir=%{_prefix}/lib/gthumb\
	--disable-schemas-install\
	--disable-scrollkeeper\
	--disable-static
make %{?jobs:-j%jobs}

%install
%makeinstall
rm -r $RPM_BUILD_ROOT%{_localstatedir}/scrollkeeper
%suse_update_desktop_file -N gThumb %name GTK GNOME Photography
echo DocPath=gthumb >> $RPM_BUILD_ROOT%{_datadir}/applications/gthumb.desktop
rm -r $RPM_BUILD_ROOT%{_datadir}/application-registry
%find_lang %name
%find_gconf_schemas
cat %{name}.schemas_list >%{name}.lst
rm $RPM_BUILD_ROOT%{_libdir}/gthumb/*.*a $RPM_BUILD_ROOT%{_libdir}/gthumb/*/*.*a

%fdupes $RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%pre -f %{name}.schemas_pre

%posttrans -f %{name}.schemas_posttrans

%preun -f %{name}.schemas_preun

%files -f %name.lst
%defattr(-, root, root)
# TODO is empty
%doc AUTHORS ChangeLog COPYING MAINTAINERS NEWS README
%{_bindir}/*
%{_libdir}/gthumb
%if "%_lib" != "lib"
%{_prefix}/lib/gthumb
%endif
%{_datadir}/applications/*.desktop
%{_datadir}/gnome-2.0/ui/*.xml
%{_datadir}/icons/hicolor/48x48/apps/gthumb.png
%{_datadir}/gthumb
%{_datadir}/omf/gthumb
%{_libdir}/bonobo/servers/*.server
%doc %{_mandir}/man1/gthumb.1*

%files lang -f %{name}.lang

%changelog
* Tue Aug 28 2007 - stbinner@suse.de
- fix .desktop file: don't repeat GenericName content within Name
* Wed Aug 08 2007 - maw@suse.de
- Use %%fdupes
- Split off a -lang subpackage.
* Mon Jun 18 2007 - ro@suse.de
- avoid string compare with char literal
* Fri Apr 27 2007 - sbrabec@suse.cz
- Do not call meinproc (#227624).
- Require hicolor-icon-theme.
* Thu Mar 08 2007 - sbrabec@suse.cz
- Removed obsolete hicolor icon symlink (#248676).
- Reduced BuildRequires.
- Enabled TIFF support.
- Spec file cleanup.
* Tue Jan 30 2007 - ro@suse.de
- GNOME moved to /usr
* Sun Oct 22 2006 - meissner@suse.de
- buildrequirs libgphoto2-devel
* Mon Oct 02 2006 - jhargadon@suse.de
- update to version 2.7.9
- Set a smaller height for the progressbar to avoid an image resize.
- Only display user visible drives in the location box.
- many bug fixes.
* Thu Sep 21 2006 - jhargadon@suse.de
- update to version 2.7.4
- Fixed bug #325833 – gthumb icon isn't on window title bar and windo
  list applet
- Fixed bug #326844 – Scale Series: Prevent rename .jpg to .jpeg
- Fixed bug #333102 – Image rotation action does not update the EXIF
  tag correctly
-  Fixed bug #331714 - crash in Preferences Browser
- Fixed bug #327245 - Full screen mode crippled if Xinerama is used
- Fixed bug #313827 – Search does not work on categories with colon
  symbol and similar names.
- Fixed bug #331658 - EXIF attributes are not preserved after an image
  modification + save
- Fixed bug #327263 - Save doesn't work, save as does.
- Fixed bug #327262 - Gthumb deletes exif data too aggressively
- Fixed bug #329889 - thumbnail generation and accentuated characters
  in path.
- Fixed bug #329139 - Doesn't determine image type from content anymore
- Improved the crop dialog.
- Fixed bug #329600 – Deleting the Catalogue Search\ Results causes
  erroneous behaviour.
- Fixed bug #328010 - Add GNOME or GTK categories o the .desktop file
- Fixed bug #327049 – Fix build with gcc 2.95
- Fixed bug #325846 - gthumb refuses to compile with libexif-0.6.13.
- Added ability to enable/disable many features in configure.in
- Fixed bug #307959 - "Open With..." dialog offers gthumb as an option.
- Fixed bug #324017 - failed to initialize Canon powerShot G5 due an GTK          bug.
- Fixed bug #325211 - Image quality in web album.
- Fixed bug #325308 - gThumb crash when reaching the end of a directory
  during fullscreen viewing.
- Fixed bug #325507 - gthumb crashes if startup_location gconf pref is
  invalid
* Tue Feb 28 2006 - sbrabec@suse.cz
- Use kdelibs3-doc in BuildRequires for meinproc (#153635#c14).
* Thu Feb 23 2006 - sbrabec@suse.cz
- Updated Categories, move to Photography (#130232).
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Jan 18 2006 - sbrabec@suse.cz
- Updated to version 2.7.2.
* Mon Sep 19 2005 - sbrabec@suse.cz
- Fixed Delete All Comments close window (#6286).
* Fri Aug 19 2005 - sbrabec@suse.cz
- Added portait web sizes patch.
  http://bugzilla.gnome.org/show_bug.cgi?id=313671
* Thu Jun 30 2005 - sbrabec@suse.cz
- Updated to version 2.6.6.
* Fri Jan 28 2005 - sbrabec@suse.cz
- Added -fno-strict-aliasing.
* Thu Jan 27 2005 - meissner@suse.de
- use NULL as terminator for g_strconcat.
* Tue Jan 25 2005 - gekker@suse.de
- Update to version 2.6.3
* Wed Jan 19 2005 - ro@suse.de
- added c++ to neededforbuild (for libtiff)
* Mon Nov 22 2004 - ro@suse.de
- make specfile rpm3 compliant ...
  (non numeric if arguments need quoting)
- apply exif patch only for > 9.1
* Mon Nov 22 2004 - ro@suse.de
- fixed one compiler warning
* Tue Nov 02 2004 - ro@suse.de
- locale rename: no -> nb
* Tue Oct 12 2004 - sbrabec@suse.cz
- Fixed libexecdir for bi-arch (#47050).
* Sat Sep 04 2004 - ro@suse.de
- fix typo in specfile
* Tue Aug 31 2004 - clahey@suse.de
- Cache gthumb help and show gthumb in khelpcenter.
* Mon Aug 16 2004 - shprasad@suse.de
- Fixes bug #61331  (Fix given by gsunil@novell.com)
  Resets sequence after save.
- Fixes bug #59748  (Fix given by gsunil@novell.com)
  Fixes slide show bug.
- Fixes bug #61594  (Fix given by gsunil@novell.com)
  Fixes search regular expression.
- Fixes bug #62334  (Fix given by gsunil@novell.com)
  Fixes duplicate image after save.
* Fri Jul 30 2004 - meissner@suse.de
- Ported to use new libexif api.
* Tue May 11 2004 - sbrabec@suse.cz
- Updated to version 2.3.3.
* Wed Mar 17 2004 - sbrabec@suse.cz
- Fixed scrollkeeper calling conventions (#36215).
* Wed Mar 10 2004 - sbrabec@suse.cz
- Fixed gconf schemas installation (#33114).
- Fixed scrollkeeper installation.
* Tue Mar 02 2004 - sbrabec@suse.cz
- Updated to version 2.2.1.
- Enable shared libraries (bug #33881).
* Fri Feb 20 2004 - sbrabec@suse.cz
- Fixed PreReq.
* Wed Feb 18 2004 - sbrabec@suse.cz
- Updated to version 2.2.0.
* Sat Jan 10 2004 - adrian@suse.de
- remove unneeded %%run_ldconfig
* Thu Oct 09 2003 - hhetter@suse.de
- updated to version 2.1.6
* Mon Aug 18 2003 - sbrabec@suse.cz
- Updated to version 2.1.4.
* Tue Aug 12 2003 - adrian@suse.de
- add Viewer Category
* Tue Jul 29 2003 - hhetter@suse.de
- %%_lib fixes
* Mon Jul 14 2003 - sbrabec@suse.cz
- GNOME prefix change to /opt/gnome.
* Sat Jun 28 2003 - coolo@suse.de
- package directories
- use %%find_lang
* Thu Jun 05 2003 - hhetter@suse.de
- fix filelist and schemas
* Wed Feb 26 2003 - sbrabec@suse.cz
- FHS fix.
* Wed Feb 26 2003 - hhetter@suse.de
- updated to stable 2.0.1 release (#24350)
* Mon Jan 20 2003 - ro@suse.de
- update to 1.108
- hack for libgnomeprint(ui) 2.2
* Fri Jan 17 2003 - ro@suse.de
- configure: accept libgnomeprint-2.2
* Wed Jan 15 2003 - ro@suse.de
- added expat to neededforbuild
* Mon Nov 11 2002 - ro@suse.de
- changed neededforbuild <xf86 xdevel> to <x-devel-packages>
* Fri Sep 20 2002 - sbrabec@suse.cz
- Added alsa to neededforbuild, because esound can depend on it.
* Tue Aug 13 2002 - hhetter@suse.de
- fix filelist for libexec binaries
* Mon Aug 12 2002 - hhetter@suse.de
- updated to version 1.103
  * New tool: jpeg lossless transformations.
  * The user can edit/view comments and delete images
  in fullscreen mode.
  * Changed the fourth layout type to something more usefull.
  * Automatically update the content of a folder.
* Mon Aug 12 2002 - ro@suse.de
- added openssl, openssl-devel to neededforbuild
* Wed Jul 17 2002 - uli@suse.de
- fixed to build on lib64 archs
* Tue Jul 16 2002 - jordi@suse.de
- updated to version 1.102
  * New tool: rename series of images.
  * Added a maintenance dialog where the user can delete old/all
  comments/thumbnails, and backup and restore comments.
  * Added header and footer support to the "Index Image" tool.
  * Re-added the "Toolbar Style" option.
  * Added Next/Prev Image buttons on toolbar.
  * Click on an image to view the next one.
  * Minor usability improvements.
* Thu Jul 11 2002 - jordi@suse.de
- initial SuSE release
openSUSE Build Service is sponsored by