595bf47
%define upstreamversion 1.0
17a0f37
17a0f37
Summary: Image browser and viewer
17a0f37
Name: geeqie
17a0f37
Version: 1.0
8237c1f
Release: 18%{?dist}
0be4cfa
License: GPLv3
17a0f37
Group: User Interface/X
fdb4a7b
# svn + autogen
7da031a
#Source: geeqie-1.0alpha2-svn-1341.tgz
828bd85
Source: http://downloads.sf.net/sourceforge/geeqie/%{name}-%{upstreamversion}.tar.gz
17a0f37
URL: http://geeqie.sourceforge.net/
bdad16b
bdad16b
# in upstream patch tracker
bdad16b
Patch0: geeqie-1.0-lfs-autoconf.patch
bdad16b
BuildRequires: autoconf
bdad16b
# reported upstream
bdad16b
Patch1: geeqie-1.0-exif-filecache.patch
071762d
# bz 632243, reported upstream
071762d
Patch2: geeqie-1.0-sidecars-case.patch
7d15e9c
# as discussed on geeqie devel list and due to further debugging/patching, 
7d15e9c
# won't be needed in 1.1
442fca2
Patch3: geeqie-1.0-vflist-refresh.patch
7d15e9c
# bz 728802 / TODO: check 1.1 as there have been more exif-cache changes
8d5715f
Patch4: geeqie-1.0-exif-728802.patch
ef30190
# nadvornik master tree
ef30190
Patch5: geeqie-1.0-filedata-compare.patch
ef30190
# upstream stable tree
ef30190
Patch6: geeqie-1.0-copy-chown.patch
ef30190
Patch7: geeqie-1.0-ui_pathsel.patch
ef62849
# add -Wl,--as-needed without disturbing %%configure macro
ef62849
# this touches both Makefile.in and Makefile.am as autoreconf is used
ef62849
Patch8: geeqie-1.0-LDFLAGS.patch
bdad16b
7da031a
BuildRequires: gtk2-devel
17a0f37
BuildRequires: lcms-devel
17a0f37
BuildRequires: exiv2-devel
1de9b95
BuildRequires: lirc-devel
c2a65bb
BuildRequires: gettext intltool desktop-file-utils
7166a2f
BuildRequires: gnome-doc-utils
7166a2f
7166a2f
# for the included plug-in scripts
7166a2f
BuildRequires: exiv2 fbida ImageMagick ufraw zenity
7166a2f
Requires: exiv2 fbida ImageMagick ufraw zenity
17a0f37
bdad16b
# Experimental, still disabled by default.
bdad16b
#BuildRequires: libchamplain-gtk-devel >= 0.4
9015656
e7a7669
%if 0%{?fedora} > 13
17a0f37
# Replace GQView last stable release in Fedora space,
17a0f37
# plus allow for it to return if a higher version.
17a0f37
# Stalled upstream GQView development is at 2.1.5.
c3b269b
Obsoletes: gqview < 2.0.4-13
e7a7669
%endif
17a0f37
17a0f37
%description
17a0f37
Geeqie has been forked from the GQview project with the goal of picking up
17a0f37
development and integrating patches. It is an image viewer for browsing
17a0f37
through graphics files. Its many features include single click file
17a0f37
viewing, support for external editors, previewing images using thumbnails,
17a0f37
and zoom.
17a0f37
17a0f37
17a0f37
%prep
17a0f37
%setup -q -n %{name}-%{upstreamversion}
7166a2f
# guard against missing executables at (re)build-time,
7166a2f
# these are needed by the plug-in scripts
7166a2f
for f in exiftran exiv2 mogrify ufraw-batch zenity ; do
7166a2f
    type $f || exit -1
7166a2f
done
bdad16b
%patch0 -p1 -b .lfs-autoconf
bdad16b
%patch1 -p1 -b .exif-filecache
071762d
%patch2 -p1 -b .sidecars-case
442fca2
%patch3 -p1 -b .vflist-refresh
8d5715f
%patch4 -p1 -b .exif-728802
ef30190
%patch5 -p1 -b .filedata-compare
ef30190
%patch6 -p1 -b .copy-chown
ef30190
%patch7 -p1 -b .ui_pathsel
ef62849
%patch8 -p1 -b .LDFLAGS
17a0f37
17a0f37
17a0f37
%build
bdad16b
autoreconf -f
1de9b95
%configure --enable-lirc
17a0f37
make %{?_smp_mflags}
17a0f37
17a0f37
17a0f37
%install
bf4bcae
mkdir -p ${RPM_BUILD_ROOT}%{_docdir}/%{name}-%{upstreamversion}/html
17a0f37
make DESTDIR=${RPM_BUILD_ROOT} INSTALL="install -p" install
17a0f37
7166a2f
# guard against missing HTML tree
7166a2f
[ ! -f ${RPM_BUILD_ROOT}%{_datadir}/doc/%{name}-%{upstreamversion}/html/index.html ] && exit -1
7166a2f
17a0f37
# We want these _docdir files in GQ_HELPDIR.
0be4cfa
install -p -m 0644 AUTHORS COPYING NEWS README* TODO \
17a0f37
    ${RPM_BUILD_ROOT}%{_datadir}/doc/%{name}-%{upstreamversion}
17a0f37
rm -f ${RPM_BUILD_ROOT}%{_datadir}/doc/%{name}-%{upstreamversion}/ChangeLog
17a0f37
17a0f37
desktop-file-install \
17a0f37
    --delete-original \
17a0f37
    --vendor fedora \
17a0f37
    --dir ${RPM_BUILD_ROOT}%{_datadir}/applications \
17a0f37
    ${RPM_BUILD_ROOT}%{_datadir}/applications/%{name}.desktop
17a0f37
17a0f37
%find_lang %name
17a0f37
17a0f37
17a0f37
%post
17a0f37
update-desktop-database &> /dev/null || :
17a0f37
17a0f37
17a0f37
%postun
17a0f37
update-desktop-database &> /dev/null || :
17a0f37
17a0f37
17a0f37
%files -f %{name}.lang
17a0f37
%defattr(-,root,root,-)
17a0f37
%doc %{_datadir}/doc/%{name}*
9015656
%{_bindir}/%{name}*
d139b59
%{_prefix}/lib/%{name}/
17a0f37
%{_mandir}/man1/%{name}.1*
9015656
%{_datadir}/%{name}/
17a0f37
%{_datadir}/pixmaps/%{name}.png
17a0f37
%{_datadir}/applications/fedora-%{name}.desktop
17a0f37
17a0f37
17a0f37
%changelog
8237c1f
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-18
8237c1f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
8237c1f
bf4bcae
* Thu May  3 2012 Michael Schwendt <mschwendt@fedoraproject.org> - 1.0-17
bf4bcae
- Complete previous rebuild that failed unexpectedly because html docdir in
bf4bcae
  buildroot had not been created (Rawhide only). Now create it explicitly
bf4bcae
  at beginning of %%install.
bf4bcae
4a7dc86
* Wed May 02 2012 Rex Dieter <rdieter@fedoraproject.org> - 1.0-16
4a7dc86
- rebuild (exiv2)
4a7dc86
d8d564c
* Fri Jan  6 2012 Michael Schwendt <mschwendt@fedoraproject.org> - 1.0-15
d8d564c
- rebuild for GCC 4.7 as requested
d8d564c
ef62849
* Sat Nov  5 2011 Michael Schwendt <mschwendt@fedoraproject.org> - 1.0-14
ef62849
- Link with --as-needed.
ef62849
ef30190
* Sun Oct 16 2011 Michael Schwendt <mschwendt@fedoraproject.org> - 1.0-13
ef30190
- Cherry-pick a few commits (from Vladimir Nadvornik, Klaus Ethgen
ef30190
  and Vladislav Naumov). With the modified filelist_sort_compare_filedata
ef30190
  method, Geeqie passes another stress test I've created in order
ef30190
  to track down rare file_data_unref crashes.
ef30190
02571c8
* Fri Oct 14 2011 Rex Dieter <rdieter@fedoraproject.org> - 1.0-12
02571c8
- rebuild (exiv2)
02571c8
8d5715f
* Tue Aug  9 2011 Michael Schwendt <mschwendt@fedoraproject.org> - 1.0-11
8d5715f
- Patch another place where not to exif_free_fd NULL ptr (#728802).
8d5715f
442fca2
* Fri Apr 15 2011 Michael Schwendt <mschwendt@fedoraproject.org> - 1.0-10
442fca2
- Let's see how we do with a simpler vflist_setup_iter_recursive().
442fca2
071762d
* Sat Mar  5 2011 Michael Schwendt <mschwendt@fedoraproject.org> - 1.0-9
071762d
- Patch filedata.c check_case_insensitive_ext to accept the first
071762d
  tested file name ext and not accept multiple combinations due to
071762d
  case-insensitive fs.
071762d
071762d
* Fri Mar  4 2011 Michael Schwendt <mschwendt@fedoraproject.org> - 1.0-8.test1
071762d
- Patch filedata.c check_sidecars to avoid adding a file as its own
071762d
  sidecar. Case-insensitive sidecar file name generation may not be
071762d
  enough if a fs stat is used in conjunction with a case-insensitive fs.
071762d
bdad16b
* Tue Feb 22 2011 Michael Schwendt <mschwendt@fedoraproject.org> - 1.0-8
bdad16b
- Fix file cache NULL pointer crash in exif-common.c (#679256).
bdad16b
- Patch and build with large file support.
bdad16b
f8def57
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-7
f8def57
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
f8def57
f1182b5
* Sun Jan 02 2011 Rex Dieter <rdieter@fedoraproject.org> - 1.0-6
f1182b5
- rebuild (exiv2)
f1182b5
e7a7669
* Thu Sep  9 2010 Michael Schwendt <mschwendt@fedoraproject.org> - 1.0-5
e7a7669
- Make gqview "Obsoletes" tag conditional: for Fedora newer than 13.
e7a7669
c3b269b
* Mon Jul 26 2010 Michael Schwendt <mschwendt@fedoraproject.org> - 1.0-4
c3b269b
- Replace old gqview < 2.0.4-13 with geeqie.
c3b269b
a0aba71
* Mon May 31 2010 Rex Dieter <rdieter@fedoraproject.org> - 1.0-3 
a0aba71
- rebuild (exiv2)
a0aba71
7166a2f
* Tue Apr  6 2010 Michael Schwendt <mschwendt@fedoraproject.org> - 1.0-2
7166a2f
- require exiv2, ImageMagick, fbida, ufraw, zenity for plug-in scripts
7166a2f
- BR gnome-doc-utils for HTML documentation (and "Help > Contents" menu)
7166a2f
595bf47
* Fri Feb 19 2010 Michael Schwendt <mschwendt@fedoraproject.org> - 1.0-1
595bf47
- update to 1.0 final release
595bf47
 
94f8660
* Mon Jan 04 2010 Rex Dieter <rdieter@fedoraproject.org> - 1.0-0.20.beta2
94f8660
- rebuild (exiv2)
94f8660
d2e13c4
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-0.19.beta2
d2e13c4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
d2e13c4
d139b59
* Mon Jul  6 2009 Michael Schwendt <mschwendt@fedoraproject.org> - 1.0-0.18.beta2
c2a65bb
- update to beta2 tarball
c2a65bb
- BR intltool
c2a65bb
- print-pagesize.patch enabled in 1.0beta2 (#222639)
c2a65bb
9015656
* Thu May 14 2009 Michael Schwendt <mschwendt@fedoraproject.org> - 1.0-0.16.beta1
9015656
- update to beta1 tarball
9015656
cf69dfa
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-0.15.alpha3
cf69dfa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
cf69dfa
2b954f1
* Sat Feb  7 2009 Michael Schwendt <mschwendt@fedoraproject.org> - 1.0-0.14.alpha3
2b954f1
- fetch src/utilops.c change from svn 1385 for metadata crash-fix
2b954f1
1de9b95
* Wed Jan 28 2009 Michael Schwendt <mschwendt@fedoraproject.org> - 1.0-0.13.alpha3
1de9b95
- ignore .helpdir/.htmldir values in geeqierc to fix "Help"
1de9b95
- add --enable-lirc again to build with LIRC
1de9b95
7da031a
* Mon Jan 26 2009 Michael Schwendt <mschwendt@fedoraproject.org> - 1.0-0.12.alpha3
7da031a
- update to alpha3 tarball
7da031a
90eebf3
* Thu Jan 22 2009 Michael Schwendt <mschwendt@fedoraproject.org> - 1.0-0.11.alpha2.1341svn
90eebf3
- update to svn 1341 for pre-alpha3 testing (image metadata features)
90eebf3
- drop obsolete patches remote-blank and float-layout
90eebf3
19f5836
* Wed Dec 24 2008 Michael Schwendt <mschwendt@fedoraproject.org> - 1.0-0.11.alpha2.1307svn
19f5836
- update to svn 1307 for "Safe delete"
19f5836
cf5e995
* Thu Dec 18 2008 Michael Schwendt <mschwendt@fedoraproject.org> - 1.0-0.11.alpha2.1299svn
cf5e995
- drop desktop file Exec= invocation patch (no longer necessary)
cf5e995
fdb4a7b
* Thu Dec 18 2008 Michael Schwendt <mschwendt@fedoraproject.org> - 1.0-0.10.alpha2.1299svn
fdb4a7b
- update to svn 1299 for new exiv2
fdb4a7b
- disable LIRC support which is broken
fdb4a7b
b4a9a00
* Thu Dec 18 2008 Rex Dieter <rdieter@fedoraproject.org> - 1.0-0.9.alpha2
05df480
- respin (exiv2)
b4a9a00
26ce5be
* Tue Aug 12 2008 Michael Schwendt <mschwendt@fedoraproject.org> - 1.0-0.8.alpha2
26ce5be
- fix float layout for --blank mode
26ce5be
f08b08f
* Mon Aug 11 2008 Michael Schwendt <mschwendt@fedoraproject.org> - 1.0-0.7.alpha2
f08b08f
- fix options --blank and -r file:
f08b08f
0be4cfa
* Thu Jul 31 2008 Michael Schwendt <mschwendt@fedoraproject.org> - 1.0-0.6.alpha2
0be4cfa
- update to 1.0alpha2 (now GPLv3)
0be4cfa
- build with new LIRC support
0be4cfa
6600759
* Wed Jun 25 2008 Rex Dieter <rdieter@fedoraproject.org> - 1.0-0.5.alpha1 
6600759
- respin for exiv2
6600759
17a0f37
* Thu May  8 2008 Michael Schwendt <mschwendt@fedoraproject.org> - 1.0-0.4.alpha1
17a0f37
- scriptlets: run update-desktop-database without path
17a0f37
- drop dependency on desktop-file-utils
17a0f37
- drop ChangeLog file as it's too low-level
17a0f37
17a0f37
* Fri Apr 25 2008 Michael Schwendt <mschwendt@fedoraproject.org> - 1.0-0.3.alpha1
17a0f37
- package GQview fork "geeqie 1.0alpha1" based on Fedora gqview.spec
17a0f37
- BR lcms-devel exiv2-devel
17a0f37
- update -desktop and -editors patch
17a0f37
- update spec file with more dir macros
17a0f37