1cc5bfc
# TODO: 20150531 - there's a temporary new home  http://geeqie.org
1cc5bfc
#   with a git server to replace access to gitorious that will be lost
1cc5bfc
847d83e
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
847d83e
ee60832
%define upstreamversion 1.2
ad845ac
%global _hardened_build 1
17a0f37
17a0f37
Summary: Image browser and viewer
17a0f37
Name: geeqie
ee60832
Version: 1.2
Rex Dieter 082a526
Release: 0.5.20141130gita1afabd%{?dist}
375e483
License: GPLv2+
17a0f37
Group: User Interface/X
ee60832
#Source: http://downloads.sf.net/sourceforge/geeqie/%{name}-%{upstreamversion}.tar.gz
ee60832
ee60832
# git clone https://gitorious.org/geeqie/geeqie.git
ee60832
# cd geeqie
ee60832
# git checkout a1afabd3ce740872a857234b91eeb64fcf239f6a
ee60832
# rm -rf .git
ee60832
Source: geeqie-a1afabd.tar.bz2
ee60832
BuildRequires: autoconf automake libtool
ee60832
b23a1bc
# https://raw.githubusercontent.com/hughsie/fedora-appstream/master/appdata-extra/desktop/geeqie.appdata.xml
b23a1bc
Source1: geeqie.appdata.xml
b23a1bc
# for /usr/bin/appstream-util
b23a1bc
BuildRequires: libappstream-glib
b23a1bc
17a0f37
URL: http://geeqie.sourceforge.net/
bdad16b
ef62849
# add -Wl,--as-needed without disturbing %%configure macro
e5c8e2a
Patch0: geeqie-1.1-LDFLAGS.patch
ee60832
99cc753
# in upstream bug tracker
ee60832
# status: still open
ee60832
# doesn't apply anymore due to changes in fullscreen.c
99cc753
Patch2: geeqie-1.0-fix-fullscreen.patch
ee60832
17f74f0
# reported upstream
17f74f0
# https://sourceforge.net/tracker/?func=detail&atid=1054680&aid=3602709&group_id=222125
ee60832
# not fixed in 1.2
17f74f0
Patch5: geeqie-1.1-filedata-change-notification.patch
ee60832
caa4f37
# reported upstream
412424e
# https://sourceforge.net/tracker/?func=detail&aid=3605406&group_id=222125&atid=1054682
ee60832
# and gitorious merge request
412424e
Patch7: geeqie-1.1-large-files.patch
ee60832
7da031a
BuildRequires: gtk2-devel
d6dc5cd
BuildRequires: lcms2-devel
17a0f37
BuildRequires: exiv2-devel
1de9b95
BuildRequires: lirc-devel
e5c8e2a
BuildRequires: libjpeg-devel
1a4171c
#BuildRequires: libtiff-devel
c2a65bb
BuildRequires: gettext intltool desktop-file-utils
7166a2f
BuildRequires: gnome-doc-utils
7166a2f
7166a2f
# for the included plug-in scripts
2ad1c5a
BuildRequires: exiv2 fbida ImageMagick zenity
2ad1c5a
Requires: exiv2 fbida ImageMagick zenity
2ad1c5a
# at run-time, it is only displayed in menus, if ufraw executable is available
2ad1c5a
%if 0%{?fedora}
2ad1c5a
BuildRequires: ufraw
2ad1c5a
%endif
2ad1c5a
17a0f37
bdad16b
# Experimental, still disabled by default.
bdad16b
#BuildRequires: libchamplain-gtk-devel >= 0.4
9015656
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
ee60832
#setup -q -n %{name}-%{upstreamversion}
ee60832
%setup -q -n %{name}
ee60832
autoreconf -f -i ; intltoolize
7166a2f
# guard against missing executables at (re)build-time,
7166a2f
# these are needed by the plug-in scripts
2ad1c5a
for f in exiftran exiv2 mogrify zenity ; do
2ad1c5a
    type $f || exit -1
2ad1c5a
done
2ad1c5a
%if 0%{?fedora}
2ad1c5a
for f in ufraw-batch ; do
7166a2f
    type $f || exit -1
7166a2f
done
2ad1c5a
%endif
e5c8e2a
%patch0 -p1 -b .LDFLAGS
ee60832
#patch2 -p1 -b .fix-fullscreen
17f74f0
%patch5 -p1 -b .filedata-notification
412424e
%patch7 -p1 -b .large-files
17a0f37
17a0f37
%build
847d83e
%configure --enable-lirc --disable-tiff \
847d83e
    --with-readmedir=%{_pkgdocdir}
17a0f37
make %{?_smp_mflags}
17a0f37
17a0f37
17a0f37
%install
847d83e
mkdir -p ${RPM_BUILD_ROOT}%{_pkgdocdir}/html
17a0f37
make DESTDIR=${RPM_BUILD_ROOT} INSTALL="install -p" install
17a0f37
7166a2f
# guard against missing HTML tree
847d83e
[ ! -f ${RPM_BUILD_ROOT}%{_pkgdocdir}/html/index.html ] && exit -1
7166a2f
17a0f37
# We want these _docdir files in GQ_HELPDIR.
ee60832
install -p -m 0644 AUTHORS BUGS CODING COPYING ChangeLog NEWS README* TODO \
847d83e
    ${RPM_BUILD_ROOT}%{_pkgdocdir}
17a0f37
17a0f37
desktop-file-install \
17a0f37
    --delete-original \
17a0f37
    --dir ${RPM_BUILD_ROOT}%{_datadir}/applications \
17a0f37
    ${RPM_BUILD_ROOT}%{_datadir}/applications/%{name}.desktop
17a0f37
17a0f37
%find_lang %name
17a0f37
b23a1bc
install -D -m0644 %{SOURCE1} ${RPM_BUILD_ROOT}%{_datadir}/appdata/%{name}.appdata.xml
b23a1bc
appstream-util validate-relax --nonet ${RPM_BUILD_ROOT}%{_datadir}/appdata/%{name}.appdata.xml
b23a1bc
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
847d83e
%doc %{_pkgdocdir}/
b23a1bc
%license COPYING
9015656
%{_bindir}/%{name}*
d139b59
%{_prefix}/lib/%{name}/
17a0f37
%{_mandir}/man1/%{name}.1*
9015656
%{_datadir}/%{name}/
17a0f37
%{_datadir}/pixmaps/%{name}.png
b68b35f
%{_datadir}/applications/*%{name}.desktop
b23a1bc
%{_datadir}/appdata/%{name}.appdata.xml
17a0f37
17a0f37
17a0f37
%changelog
Rex Dieter 082a526
* Wed Jun 24 2015 Rex Dieter <rdieter@fedoraproject.org> - 1.2-0.5.20141130gita1afabd
Rex Dieter 082a526
- rebuild (exiv2)
Rex Dieter 082a526
3935097
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-0.4.20141130gita1afabd
3935097
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
3935097
cebb46b
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 1.2-0.3.20141130gita1afabd
cebb46b
- Rebuilt for GCC 5 C++11 ABI change
cebb46b
b23a1bc
* Wed Mar 25 2015 Michael Schwendt <mschwendt@fedoraproject.org> - 1.2-0.2.20141130gita1afabd
b23a1bc
- Merge Fedora appdata file as requested on devel@ list.
b23a1bc
- Use %%license macro.
b23a1bc
ee60832
* Sun Nov 30 2014 Michael Schwendt <mschwendt@fedoraproject.org> - 1.2-0.1.20141130gita1afabd
ee60832
- TODO: Lua support wants lua5.1.pc >= 5.1, which isn't available
ee60832
  (only lua.pc 5.2.x exists).
3097602
- TODO: what's up with the aging fullscreen patch?
ee60832
- Add new BUGS file to documentation.
ee60832
- Drop the LCMS1 bcond.
ee60832
- Some patches not needed anymore.
ee60832
- Drop old conditional for desktop file vendor. 
ee60832
- Update to 1.2 from gitorious including the merged LCMS2 patch (post-1.2).
ee60832
  No official tarball release yet.
ee60832
6aec3b4
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-22
6aec3b4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
6aec3b4
2a9b735
* Tue Jun 17 2014 Michael Schwendt <mschwendt@fedoraproject.org> - 1.1-21
6a687c5
- Retrieve a printable CMS image profile and screen profile description
6a687c5
  to avoid crashing g_markup (#1110073).
6a687c5
8f796a2
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-20
8f796a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
8f796a2
4b57318
* Wed May 28 2014 Michael Schwendt <mschwendt@fedoraproject.org> - 1.1-19
4b57318
- Don't print CMS screen profileID garbage that crashes g_markup
4b57318
  (this should also fix #1051660).
4b57318
4af069f
* Tue May 27 2014 Michael Schwendt <mschwendt@fedoraproject.org> - 1.1-18
4af069f
- Merge fix for avoiding crash due to inexistent files in collections.
4af069f
  This also replaces the history path_list patch.
4af069f
54ededd
* Sun Jan 26 2014 Michael Schwendt <mschwendt@fedoraproject.org> - 1.1-17
54ededd
- Merge image-overlay.c fix for handling of filenames with % in them.
54ededd
d6dc5cd
* Mon Dec  9 2013 Michael Schwendt <mschwendt@fedoraproject.org> - 1.1-16
d6dc5cd
- Add LCMS2 patch from Geeqie-devel list, fix HAVE_LCMS and build with
d6dc5cd
  lcms2-devel instead of lcms-devel.
d6dc5cd
Rex Dieter 240bd4b
* Tue Dec 03 2013 Rex Dieter <rdieter@fedoraproject.org> - 1.1-15
Rex Dieter 240bd4b
- rebuild (exiv2)
Rex Dieter 240bd4b
2ad1c5a
* Sat Nov 16 2013 Michael Schwendt <mschwendt@fedoraproject.org> - 1.1-14
2ad1c5a
- Conditionalize ufraw BR/R for Fedora, since it's not available with
2ad1c5a
  RHEL and EPEL and is optional at run-time.
2ad1c5a
- Drop %%defattr usage.
2ad1c5a
847d83e
* Tue Aug  6 2013 Michael Schwendt <mschwendt@fedoraproject.org> - 1.1-13
847d83e
- For F-20 unversioned docdirs feature we need to build with
847d83e
  configure --with-readmedir=... to override the internal GQ_HELPDIR.
847d83e
1a706c4
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-12
1a706c4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
1a706c4
ad845ac
* Fri Jun  7 2013 Michael Schwendt <mschwendt@fedoraproject.org> - 1.1-11
ad845ac
- Define _hardened_build 1 to please rpm-chksec.
ad845ac
412424e
* Wed Feb 20 2013 Michael Schwendt <mschwendt@fedoraproject.org> - 1.1-10
412424e
- Include config.h earlier in some files, so the large file support
412424e
  definition is available early enough for e.g. sys/stat.h
412424e
- Drop the aging Obsoletes tag for gqview.
412424e
caa4f37
* Fri Feb  8 2013 Michael Schwendt <mschwendt@fedoraproject.org> - 1.1-9
caa4f37
- Avoid abort when opening non-existing paths from history.
caa4f37
4a08765
* Fri Feb  1 2013 Michael Schwendt <mschwendt@fedoraproject.org> - 1.1-8
17f74f0
- Drop new idle callback from file_data_send_notification() as it
17f74f0
  causes breakage (in the duplicate finder, for example).
17f74f0
b7864a5
* Sun Jan 27 2013 Michael Schwendt <mschwendt@fedoraproject.org> - 1.1-7
b68b35f
- Check exec value for NULL in src/editors.c
b68b35f
- Fedora >= 19: Drop ancient "fedora" vendor prefix from desktop file.
b68b35f
Adam Tkac cfbeae7
* Fri Jan 18 2013 Adam Tkac <atkac redhat com> - 1.1-6
Adam Tkac cfbeae7
- rebuild due to "jpeg8-ABI" feature drop
Adam Tkac cfbeae7
8c498e8
* Mon Dec 24 2012 Michael Schwendt <mschwendt@fedoraproject.org> - 1.1-5
8c498e8
- Fix crash upon escaping from generic dialogs.
8c498e8
6aa0dda
* Thu Dec 13 2012 Michael Schwendt <mschwendt@fedoraproject.org> - 1.1-4
1a4171c
- Build with --disable-tiff, as the custom libtiff loader crashes
1a4171c
  for some images as mentioned on geeqie-devel list.
6aa0dda
99cc753
* Thu Nov 22 2012 Michael Schwendt <mschwendt@fedoraproject.org> - 1.1-3
99cc753
- Merge a patch to fix fullscreen mode.
99cc753
f151e69
* Sun Aug 26 2012 Michael Schwendt <mschwendt@fedoraproject.org> - 1.1-2
f151e69
- Merge bar_keywords.c master commit to fix regression.
f151e69
e5c8e2a
* Tue Aug 14 2012 Michael Schwendt <mschwendt@fedoraproject.org> - 1.1-1
375e483
- Fix license tag to GPLv2+ as GPL3 (only in file COPYING) had been
375e483
  added only temporarily for 1.0-alpha1.
e5c8e2a
- BR libjpeg-devel libtiff-devel
e5c8e2a
- Upgrade to 1.1 (also to reduce patch count).
e5c8e2a
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