cvsdist 34515dd
39f3a4e
%define gtk2_version 2.4.0
39f3a4e
%define glib2_version 2.4.0
cvsdist 34515dd
%define nautilus_version 2.2.0
b80cb84
%define desktop_file_utils_version 0.9
39f3a4e
%define libgnomeprint_version 2.6.0
39f3a4e
%define libgnomeprintui_version 2.6.0
ef6b08e
%define gphoto_version 2.1.3
80247f5
%define gconf_version 2.14
cvsdist 34515dd
cvsdist 34515dd
Summary: Image viewer, editor, organizer
cvsdist 34515dd
Name: gthumb
c809f56
Version: 2.10.10
fde1270
Release: 3%{?dist}
cvsdist 34515dd
URL: http://gthumb.sourceforge.net
c568d94
Source0: http://download.gnome.org/sources/gthumb/2.10/%{name}-%{version}.tar.bz2
David Zeuthen be6ff67
Source1: gthumb-importer
David Zeuthen be6ff67
Source2: gthumb-importer.desktop
dc3d0c9
License: GPLv2+
cvsdist 34515dd
Group: User Interface/X
78b45d0
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 
cvsdist 34515dd
cvsdist 34515dd
BuildRequires: gtk2-devel >= %{gtk2_version}
cvsdist 34515dd
BuildRequires: glib2-devel >= %{glib2_version}
cvsdist 34515dd
BuildRequires: nautilus >= %{nautilus_version}
cvsdist 6a461fe
BuildRequires: libgnomeprint22-devel >= %{libgnomeprint_version}
cvsdist 6a461fe
BuildRequires: libgnomeprintui22-devel >= %{libgnomeprintui_version}
cvsdist 6a461fe
BuildRequires: libexif-devel
ddba42d
BuildRequires: libiptcdata-devel
a5ba779
BuildRequires: libopenraw-gnome-devel
cvsdist 409d331
BuildRequires: libgnomeui-devel >= 2.2.0
cvsdist 409d331
BuildRequires: libpng-devel
cvsdist 409d331
BuildRequires: gettext
039b0b7
BuildRequires: automake
7d76d02
BuildRequires: libtool
eab504d
BuildRequires: intltool
b262170
BuildRequires: perl(XML::Parser)
9906b24
BuildRequires: gnome-doc-utils >= 0.3.2
cvsdist 409d331
cvsdist 409d331
# Needed or features are missing
891a86b
%ifnarch s390 s390x
c02b753
BuildRequires: gphoto2-devel >= %{gphoto_version}
891a86b
%endif
c02b753
cvsdist 409d331
BuildRequires: libjpeg-devel
cvsdist 409d331
BuildRequires: libtiff-devel
cvsdist 6a461fe
1f158e2
Requires(post): scrollkeeper
1f158e2
Requires(post): desktop-file-utils >= %{desktop_file_utils_version}
5cbebec
Requires(pre): GConf2 >= %{gconf_version}
80247f5
Requires(post): GConf2 >= %{gconf_version}
80247f5
Requires(preun): GConf2 >= %{gconf_version}
1f158e2
1f158e2
Requires(postun): scrollkeeper
1f158e2
Requires(postun): desktop-file-utils >= %{desktop_file_utils_version}
cvsdist 34515dd
039b0b7
Patch0: gthumb-libdir.patch
e04bade
Patch1: icon-crash.patch
3f610be
# http://bugzilla.gnome.org/show_bug.cgi?id=557640
3f610be
Patch2: gthumb-adjustment.patch
b20dc76
cvsdist 34515dd
%description
cvsdist 34515dd
gthumb is an application for viewing, editing, and organizing 
cvsdist 34515dd
collections of images.
cvsdist 34515dd
cvsdist 34515dd
%prep
cvsdist 34515dd
%setup -q
039b0b7
%patch0 -p1 -b .libdir
e04bade
%patch1 -p1 -b .icon-crash
3f610be
%patch2 -p1 -b .adjustment
cvsdist 34515dd
cvsdist 34515dd
%build
cvsdist 34515dd
039b0b7
# patch 0 affects Makefile.am
039b0b7
aclocal
039b0b7
automake 
09643c1
intltoolize --force
40155a4
%ifarch s390 s390x
96c2616
%define gphoto_flags --disable-gphoto2
28a6f9c
%else
b7a5f83
%define gphoto_flags  %{nil}
40155a4
%endif
40155a4
%configure %{gphoto_flags}
cvsdist 34515dd
make
cvsdist 34515dd
cvsdist 34515dd
%install
cvsdist 34515dd
rm -rf $RPM_BUILD_ROOT
cvsdist 34515dd
cvsdist 34515dd
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
0e091f4
make install DESTDIR=$RPM_BUILD_ROOT
cvsdist 34515dd
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
cvsdist 34515dd
db0ae4e
rm -rf $RPM_BUILD_ROOT/var/lib/scrollkeeper
cvsdist 6a461fe
find $RPM_BUILD_ROOT -name "*.a" -exec rm {} \;
db0ae4e
find $RPM_BUILD_ROOT -name "*.la" -exec rm {} \;
cvsdist 34515dd
David Zeuthen be6ff67
install -p -m 755 %SOURCE1 $RPM_BUILD_ROOT/%{_bindir}
David Zeuthen be6ff67
install -p -m 644 %SOURCE2 $RPM_BUILD_ROOT/%{_datadir}/applications
David Zeuthen be6ff67
dc3d0c9
%find_lang %{name} --with-gnome
cvsdist 34515dd
cvsdist 34515dd
%clean
cvsdist 34515dd
rm -rf $RPM_BUILD_ROOT
cvsdist 34515dd
cvsdist 34515dd
%post
1f158e2
scrollkeeper-update -q
1f158e2
update-desktop-database -q
cvsdist 34515dd
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
80247f5
gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/gthumb.schemas > /dev/null || :
1f158e2
touch --no-create %{_datadir}/icons/hicolor
1f158e2
if [ -x /usr/bin/gtk-update-icon-cache ]; then
1f158e2
  gtk-update-icon-cache -q %{_datadir}/icons/hicolor
1f158e2
fi
cvsdist 34515dd
5cbebec
%pre
5cbebec
if [ "$1" -gt 1 ]; then
5cbebec
  export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
5cbebec
  gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/gthumb.schemas > /dev/null || :
5cbebec
fi
5cbebec
80247f5
%preun
5cbebec
if [ "$1" -eq 0 ]; then
80247f5
  export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
80247f5
  gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/gthumb.schemas > /dev/null || :
80247f5
fi
80247f5
cvsdist 34515dd
%postun
1f158e2
scrollkeeper-update -q
1f158e2
update-desktop-database -q
1f158e2
touch --no-create %{_datadir}/icons/hicolor
1f158e2
if [ -x /usr/bin/gtk-update-icon-cache ]; then
1f158e2
  gtk-update-icon-cache -q %{_datadir}/icons/hicolor
1f158e2
fi
cvsdist 34515dd
cvsdist 34515dd
%files -f %{name}.lang
cvsdist 34515dd
%defattr(-,root,root)
cvsdist 34515dd
cvsdist 34515dd
%{_bindir}/*
cvsdist 34515dd
%{_sysconfdir}/gconf/schemas/*
cvsdist 6a461fe
%{_libdir}/gthumb
553fed1
%{_libdir}/bonobo/servers/GNOME_GThumb.server
cvsdist 34515dd
%{_datadir}/gthumb
f9c76c6
%{_datadir}/applications/*
dc3d0c9
%{_mandir}/man*/*
1f158e2
%{_datadir}/icons/hicolor/*
cvsdist 34515dd
cvsdist 34515dd
%changelog
fde1270
* Thu Oct 23 2008 Matthias Clasen  <mclasen@redhat.com> - 2.10.10-3
3f610be
- Avoid tons of GTK+ warnings
3f610be
c809f56
* Mon Sep 22 2008 Matthias Clasen  <mclasen@redhat.com> - 2.10.10-1
c809f56
- Update to 2.10.10
c809f56
f6580fb
* Tue Aug  5 2008 Matthias Clasen  <mclasen@redhat.com> - 2.10.9-1
f6580fb
- Update to 2.10.9 
f6580fb
e04bade
* Fri Jul 18 2008 Matthias Clasen  <mclasen@redhat.com> - 2.10.8-4
e04bade
- Try to fix a crash (#453181)
e04bade
David Zeuthen be6ff67
* Fri May  2 2008 David Zeuthen <davidz@redhat.com> - 2.10.8-3
David Zeuthen be6ff67
- Drop x-content patch and provide gthumb-importer and a desktop
David Zeuthen be6ff67
  file for it (#444635)
David Zeuthen be6ff67
9b7042b
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.10.8-2
9b7042b
- Autorebuild for GCC 4.3
9b7042b
9fdecf0
* Sun Jan 20 2008 Matthias Clasen <mclasen@redhat.com> - 2.10.8-1
9fdecf0
- Update to 2.10.8
9fdecf0
3d382fc
* Fri Jan 18 2008 Matthias Clasen <mclasen@redhat.com> - 2.10.7-2
3d382fc
- Add content-type support
3d382fc
8a27b98
* Mon Oct 15 2007 Matthias Clasen <mclasen@redhat.com> - 2.10.7-1
8a27b98
- Update to 2.10.7 (bug fixes)
8a27b98
a88b13b
* Thu Oct  2 2007 Matthias Clasen <mclasen@redhat.com> - 2.10.6-2
a88b13b
- Fix rotation of images with # in their name (#248708)
a88b13b
08ea306
* Tue Sep  4 2007 Matthias Clasen <mclasen@redhat.com> - 2.10.6-1
08ea306
- Update to 2.10.6
08ea306
4cb8161
* Tue Aug 28 2007 Fedora Release Engineering <rel-eng at fedoraproject dot org> - 2.10.5-5
4cb8161
- Rebuild for selinux ppc32 issue.
4cb8161
b9df1be
* Wed Aug 22 2007 Adam Jackson <ajax@redhat.com> - 2.10.5-4
b9df1be
- Rebuild for PPC toolchain bug
b9df1be
dc3d0c9
* Tue Aug  7 2007 Matthias Clasen <mclasen@redhat.com> - 2.10.5-3
dc3d0c9
- Update the license field
dc3d0c9
- Use %%find_lang for help files
dc3d0c9
9b4e6c8
* Fri Jul  6 2007 Matthias Clasen <mclasen@redhat.com> - 2.10.5-2
9b4e6c8
- Fix a directory ownership issue
9b4e6c8
3101ad7
* Wed Jun 27 2007 Matthias Clasen <mclasen@redhat.com> - 2.10.5-1
3101ad7
- Update to 2.10.5
3101ad7
42265ca
* Tue Jun 19 2007 Matthias Clasen <mclasen@redhat.com> - 2.10.4-1
42265ca
- Update to 2.10.4
42265ca
c568d94
* Sat May 19 2007 Matthias Clasen <mclasen@redhat.com> - 2.10.3-1
c568d94
- Update to 2.10.3
d416eb0
- Drop upstreamed patch
c568d94
a5ba779
* Wed May  9 2007 Matthias Clasen <mclasen@redhat.com> - 2.10.2-3
a5ba779
- Add dependency on libopenraw-gnome (#236184)
a5ba779
ddba42d
* Thu May  3 2007 Matthias Clasen <mclasen@redhat.com> - 2.10.2-2
ddba42d
- Add dependency on libiptcdata (#127690)
ddba42d
756686b
* Fri Apr 20 2007 Matthias Clasen <mclasen@redhat.com> - 2.10.2-1
756686b
- Update to 2.10.2
756686b
- 
9b19bd8
* Mon Apr  2 2007 Matthias Clasen <mclasen@redhat.com> - 2.10.0-3
9b19bd8
- Use the PICTURES user dir as default location for photo import
9b19bd8
b65bad5
* Fri Mar 23 2007 Matthias Clasen <mclasen@redhat.com> - 2.10.0-2
b65bad5
- Remove a no-longer needed patch (#233350)
b65bad5
1fa9e30
* Tue Mar 20 2007 Matthias Clasen <mclasen@redhat.com> - 2.10.0-1
1fa9e30
- Update to 2.10.0
1fa9e30
404f2eb
* Tue Feb 27 2007 Matthias Clasen <mclasen@redhat.com> - 2.9.3-1
404f2eb
- Update to 2.9.3
404f2eb
b262170
* Wed Feb 21 2007 Matthias Clasen <mclasen@redhat.com> - 2.9.2-1
b262170
- Update to 2.9.2
039b0b7
- Move libgthumb.so out of libdir
b262170
78b45d0
* Wed Jan 10 2007 Matthias Clasen <mclasen@redhat.com> - 2.9.1-1
78b45d0
- Update to 2.9.1
78b45d0
5cbebec
* Sun Oct 22 2006 Matthias Clasen <mclasen@redhat.com> - 2.7.9-1
5cbebec
- Update to 2.7.9
5cbebec
80247f5
* Wed Oct 18 2006 Matthias Clasen <mclasen@redhat.com> - 2.7.8-4
80247f5
- fix up requires (#202549)
80247f5
80247f5
* Thu Sep  7 2006 Matthias Clasen <mclasen@redhat.com> - 2.7.8-3
f9c76c6
- fix directory ownership issues (#205682)
f9c76c6
6321ba2
* Mon Aug  7 2006 Jindrich Novy <jnovy@redhat.com> - 2.7.8-2.fc6
6321ba2
- fix URL in Source0
6321ba2
0506d62
* Wed Aug  2 2006 Matthias Clasen <mclasen@redhat.com> - 2.7.8-1.fc6
0506d62
- Update to 2.7.8
0506d62
- Fix some documentation inaccuracies (#175165)
0506d62
c02b753
* Fri Jul 14 2006 Matthias Clasen <mclasen@redhat.com> - 2.7.7-4
c02b753
- Don't BR gphoto2-devel on s390
c02b753
891a86b
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 2.7.7-3
395710b
- rebuild
891a86b
- Don't get gphoto2 on s390(x)
395710b
f44f87b
* Mon May 22 2006 Matthias Clasen <mclasen@redhat.com> - 2.7.7-2  
f44f87b
- Update to 2.7.7  
f44f87b
d4914fe
* Thu Apr 20 2006 Matthias Clasen <mclasen@redhat.com> - 2.7.6-2  
d4914fe
- Update to 2.7.6  
d4914fe
bb64395
* Fri Mar 24 2006 Matthias Clasen <mclasen@redhat.com> - 2.7.5.1-2
bb64395
- Update to 2.7.5.1
bb64395
bb64395
* Mon Mar 20 2006 Matthias Clasen <mclasen@redhat.com> - 2.7.5-1
bb64395
- Update to 2.7.5
bb64395
b20dc76
* Thu Mar  2 2006 Ray Strode <rstrode@redhat.com> - 2.7.3-2
b20dc76
- Make saving work again (bug 183141)
b20dc76
bf089cd
* Wed Feb 15 2006 Matthias Clasen <mclasen@redhat.com> - 2.7.3-1
bf089cd
- Update to 2.7.3
b9e14cd
- BuildRequire libgphoto2
bf089cd
e0a90c0
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 2.7.2-2.2
e0a90c0
- bump again for double-long bug on ppc(64)
e0a90c0
f1a6139
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 2.7.2-2.1
f1a6139
- rebuilt for new gcc4.1 snapshot and glibc changes
f1a6139
0e091f4
* Fri Jan 27 2006 Ray Strode <rstrode@redhat.com> - 2.7.2-2
0e091f4
- drop redhat-menus buildrequires
0e091f4
- use make install DESTDIR instead %%makeinstall
0e091f4
68ab2ee
* Wed Jan  4 2006 Matthias Clasen <mclasen@redhat.com> - 2.7.2-1
68ab2ee
- Update to 2.7.2
68ab2ee
- Drop upstreamed patches
68ab2ee
1b1d2e7
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com> - 2.7.1-1.1
4a09121
- rebuilt
4a09121
2dc2b36
* Sun Nov 13 2005 Matthias Clasen <mclasen@redhat.com> - 2.7.1-1
2dc2b36
- Update to 2.7.1
2dc2b36
c74d124
* Wed Oct 12 2005 Matthias Clasen <mclasen@redhat.com> - 2.6.8-2
c74d124
- Use GTK+ stock icons where available
c74d124
90aa16a
* Thu Sep 29 2005 Matthias Clasen <mclasen@redhat.com> - 2.6.8-1
90aa16a
- Update to 2.6.8
90aa16a
147b77e
* Thu Sep  8 2005 Matthias Clasen <mclasen@redhat.com> - 2.6.7-1
147b77e
- Update to 2.6.7
147b77e
5c81bcf
* Tue Aug 18 2005 John (J5) Palmieri <johnp@redhat.com> - 2.6.2-2
5c81bcf
- Bump and rebuild for cairo ABI changes
5c81bcf
39f3a4e
* Fri Jul 15 2005 Matthias Clasen <mclasen@redhat.com> - 2.6.6-1
39f3a4e
- Newer upstream version
39f3a4e
9754828
* Mon May 16 2005 John (J5) Palmieri <johnp@redhat.com> - 2.6.5-1
9754828
- Minor updated that fixes a couple of bugs and adds some translations
9754828
71952fc
* Mon Mar 28 2005 Matthias Clasen <mclasen@redhat.com> 
71952fc
- Rebuild against newer libexif
71952fc
af57dfb
* Wed Mar 16 2005 John (J5) Palmieri <johnp@redhat.com> - 2.6.4-1
af57dfb
- Update to upstream version 2.6.4
af57dfb
Marco Pesenti Gritti cb3b6c4
* Thu Mar  3 2005 Marco Pesenti Gritti <mpg@redhat.com> 2.6.3-2
Marco Pesenti Gritti cb3b6c4
- Rebuild
Marco Pesenti Gritti cb3b6c4
c4b532e
* Mon Jan 31 2005 Matthias Clasen <mclasen@redhat.com> 2.6.3
c4b532e
- Update to 2.6.3
c4b532e
Marco Pesenti Gritti bd68b23
* Tue Nov  9 2004 Marco Pesenti Gritti <mpg@redhat.com> 2.6.0.1-2
Marco Pesenti Gritti bd68b23
- Use upstream desktop file, it has translations and mime
Marco Pesenti Gritti bd68b23
dc52c5d
* Sun Oct 31 2004 Christopher Aillon <caillon@redhat.com> 2.6.0.1-1
dc52c5d
- Update to 2.6.0.1
dc52c5d
b80cb84
* Thu Sep 30 2004 Christopher Aillon <caillon@redhat.com> 2.4.2-3
b80cb84
- PreReq desktop-file-utils >= 0.9
b80cb84
9ce119f
* Wed Sep 29 2004 Ray Strode <rstrode@redhat.com> 2.4.2-2
9ce119f
- Move gthumb.desktop to redhat-menus (#131726)
9ce119f
- Require recent desktop-file-utils
9ce119f
- Call update-desktop-database from %postun
9ce119f
7d7624d
* Mon Sep 13 2004 Christopher Aillon <caillon@redhat.com> 2.4.2-1
7d7624d
  - gthumb.desktop: Add supported mime types (#131740)
7d7624d
  - gthumb.spec: Run update-desktop-database (#131740)
7d7624d
  - Update to 2.4.2
7d7624d
cvsdist f029a55
* Mon Aug 23 2004 Christopher Aillon <caillon@redhat.com> 2.4.1-2
cvsdist f029a55
- Only use catalog view if the directory has an image file present (alexl)
cvsdist f029a55
cvsdist e304ad4
* Wed Aug 11 2004 Christopher Aillon <caillon@redhat.com> 2.4.1-1
cvsdist e304ad4
- Update to 2.4.1
cvsdist e304ad4
cvsdist 5fab0c6
* Tue Jun 29 2004 Christopher Aillon <caillon@redhat.com> 2.4.0-1
cvsdist 5fab0c6
- Update to 2.4.0
cvsdist 5fab0c6
cvsdist 8fe13f6
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
cvsdist 8fe13f6
- rebuilt
cvsdist 8fe13f6
cvsdist 409d331
* Tue Apr 13 2004 Warren Togami <wtogami@redhat.com> 2.3.2-2
cvsdist 409d331
- #111001 BR: libgnomeui-devel gettext libpng-devel
cvsdist 409d331
  BR or missing features: gphoto2-devel libjpeg-devel libtiff-devel
cvsdist 409d331
cvsdist 409d331
* Fri Apr  2 2004 Mark McLoughlin <markmc@redhat.com> 2.3.2-1
cvsdist 409d331
- Update to 2.3.2
cvsdist 409d331
cvsdist b400436
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
cvsdist b400436
- rebuilt
cvsdist b400436
cvsdist b400436
* Wed Feb 25 2004 Alexander Larsson <alexl@redhat.com> 2.3.1-1
cvsdist b400436
- update to 2.3.1
cvsdist b400436
cvsdist b400436
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
cvsdist b400436
- rebuilt
cvsdist b400436
cvsdist 6a461fe
* Mon Dec 22 2003 Matt Wilson <msw@redhat.com> 2.2.0-1
cvsdist 6a461fe
- 2.2.0
cvsdist 6a461fe
cvsdist 5b05724
* Wed Jul  9 2003 Havoc Pennington <hp@redhat.com> 2.0.2-1
cvsdist 5b05724
- 2.0.2
cvsdist 5b05724
- buildreq libgnomeprint
cvsdist 5b05724
cvsdist 5b05724
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
cvsdist 5b05724
- rebuilt
cvsdist 5b05724
cvsdist 34515dd
* Wed Feb  5 2003 Havoc Pennington <hp@redhat.com> 2.0.1-1
cvsdist 34515dd
- 2.0.1
cvsdist 34515dd
cvsdist 34515dd
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
cvsdist 34515dd
- rebuilt
cvsdist 34515dd
cvsdist 34515dd
* Tue Jan  7 2003 Havoc Pennington <hp@redhat.com>
cvsdist 34515dd
- 1.108
cvsdist 34515dd
- disable schema install during makeinstall
cvsdist 34515dd
cvsdist 34515dd
* Thu Jan 02 2003 Florian La Roche <Florian.LaRoche@redhat.de>
cvsdist 34515dd
- require scrollkeeper
cvsdist 34515dd
cvsdist 34515dd
* Mon Dec 16 2002 Havoc Pennington <hp@redhat.com>
cvsdist 34515dd
- rebuild
cvsdist 34515dd
cvsdist 34515dd
* Thu Dec 12 2002 Havoc Pennington <hp@redhat.com>
cvsdist 34515dd
- Initial build.
cvsdist 34515dd
cvsdist 34515dd