26809ed
f39f281
Summary:         Picture viewer
f39f281
Name:            xzgv
f39f281
Version:         0.9.2
b7a0117
Release:         11%{?dist}
f39f281
License:         GPLv2+
f39f281
URL:             http://sourceforge.net/projects/xzgv/
f39f281
Source0:         http://downloads.sourceforge.net/xzgv/xzgv-%{version}.tar.gz
95bc670
Patch0:          xzgv-0.9-fix-doc-install.patch
95bc670
Patch1:          xzgv-0.9-fix-thumbnail-generation.patch
95bc670
Patch2:          0001-Fix-xzgv-man-page-so-it-is-valid-nroff.patch
e8334ab
BuildRequires: make
26809ed
BuildRequires:   gcc
f39f281
BuildRequires:   gtk2-devel
f39f281
BuildRequires:   libexif-devel
f39f281
BuildRequires:   libpng-devel
f39f281
BuildRequires:   texinfo
f39f281
BuildRequires:   desktop-file-utils
f39f281
Requires:        xterm
f39f281
Requires:        gnome-icon-theme
b3b35de
%description 
b3b35de
A picture viewer with a thumbnail-based file selector.  Many file
b3b35de
formats are supported, and the thumbnails used are compatible with xv,
b3b35de
zgv and the Gimp.
522d4ef
522d4ef
%prep
95bc670
%autosetup -p1
95bc670
for f in ChangeLog NEWS; do
95bc670
  iconv -f iso8859-1 -t utf8 $f -o $f.txt
95bc670
  touch -r $f.txt $f
95bc670
  mv $f.txt $f
95bc670
done
522d4ef
522d4ef
%build
f39f281
sed -i 's|^CFLAGS.*|CFLAGS=%{optflags}|' config.mk
f39f281
make %{?_smp_flags}
f39f281
make info
b3b35de
f39f281
cat <<EOF > %{name}.desktop
522d4ef
[Desktop Entry]
522d4ef
Name=xzgv Image Viewer
522d4ef
Comment=View different types of images
522d4ef
Exec=xzgv
327641b
Icon=xzgv
522d4ef
Terminal=false
522d4ef
Type=Application
522d4ef
Categories=GTK;Graphics;RasterGraphics;Viewer;
522d4ef
EOF
522d4ef
522d4ef
%install
f39f281
install -d -m 0755 %{buildroot}%{_datadir}/applications
f39f281
install -d -m 0755 %{buildroot}%{_datadir}/pixmaps
522d4ef
f39f281
make PREFIX=%{buildroot}/%{_prefix} \
522d4ef
     MANDIR=%{buildroot}/%{_mandir}/man1 \
f39f281
     INFODIR=%{buildroot}/%{_infodir} \
f39f281
     DESKTOPDIR2=%{buildroot}%{_datadir}/applications \
f39f281
     install
f39f281
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
522d4ef
Richard Hughes 1959a04
# Register as an application to be visible in the software center
Richard Hughes 1959a04
#
Richard Hughes 1959a04
# NOTE: It would be *awesome* if this file was maintained by the upstream
Richard Hughes 1959a04
# project, translated and installed into the right place during `make install`.
Richard Hughes 1959a04
#
Richard Hughes 1959a04
# See http://www.freedesktop.org/software/appstream/docs/ for more details.
Richard Hughes 1959a04
#
f39f281
mkdir -p %{buildroot}/%{_datadir}/appdata
f39f281
cat > %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml <
Richard Hughes 1959a04
Richard Hughes 1959a04
Richard Hughes 1959a04
Richard Hughes 1959a04
BugReportURL: https://sourceforge.net/p/xzgv/feature-requests/5/
Richard Hughes 1959a04
-->
Richard Hughes 1959a04
<application>
Richard Hughes 1959a04
  <id type="desktop">xzgv.desktop</id>
Richard Hughes 1959a04
  <metadata_license>CC0-1.0</metadata_license>
Richard Hughes 1959a04
  <summary>Simple image viewer</summary>
Richard Hughes 1959a04
  <description>
Richard Hughes 1959a04
    

Richard Hughes 1959a04
      xzgv is a simple image editor, with a focus on controlling all actions
Richard Hughes 1959a04
      using keyboard input.
Richard Hughes 1959a04
      It has a simple, two pane layout, with all the thumbnails of the current
Richard Hughes 1959a04
      directory listed in the left pane, and the image viewed in the main pane.
Richard Hughes 1959a04
      The menu in xzgv can be viewed in a context menu that is shown by
Richard Hughes 1959a04
      right-clicking on the main image pane.
Richard Hughes 1959a04
      This context menu also lists all the keyboard shortcuts if you are new to
Richard Hughes 1959a04
      xzgv and need to know them.
Richard Hughes 1959a04
    

Richard Hughes 1959a04
  </description>
Richard Hughes 1959a04
  <url type="homepage">http://sourceforge.net/projects/xzgv/</url>
Richard Hughes 1959a04
  <screenshots>
Richard Hughes 1959a04
    <screenshot type="default">https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/xzgv/a.png</screenshot>
Richard Hughes 1959a04
  </screenshots>
Richard Hughes 1959a04
</application>
Richard Hughes 1959a04
EOF
Richard Hughes 1959a04
522d4ef
%files
f39f281
%license COPYING
f39f281
%doc AUTHORS NEWS README TODO ChangeLog
522d4ef
%{_bindir}/%{name}
522d4ef
%{_mandir}/man1/%{name}*
b3b35de
%{_infodir}/%{name}*
Richard Hughes 1959a04
%{_datadir}/appdata/%{name}.appdata.xml
Parag Nemade 5fe8c63
%{_datadir}/applications/%{name}.desktop
f39f281
%{_datadir}/pixmaps/xzgv.xpm
522d4ef
522d4ef
%changelog
b7a0117
* Thu Jan 28 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.2-11
b7a0117
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
b7a0117
481cf41
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.2-10
481cf41
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
481cf41
95bc670
* Sat Jul 25 2020 Terje Rosten <terjeros@phys.ntnu.no> - 0.9.2-9
95bc670
- Add patch from upstream to fix man page
95bc670
3565b26
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.2-8
3565b26
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
3565b26
b99e2e4
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.2-7
b99e2e4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
b99e2e4
c3ba58f
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.2-6
c3ba58f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
c3ba58f
26809ed
* Mon Jul 16 2018 Terje Rosten <terjeros@phys.ntnu.no> - 0.9.2-5
26809ed
- Add C compiler
26809ed
4efbf47
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.2-4
4efbf47
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
4efbf47
bfef48f
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.2-3
bfef48f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
bfef48f
e754e06
* Thu Jan 18 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.9.2-2
e754e06
- Remove obsolete scriptlets
e754e06
f39f281
* Thu Nov 09 2017 Terje Rosten <terjeros@phys.ntnu.no> - 0.9.2-1
f39f281
- 0.9.2
f39f281
7487469
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.1-16
7487469
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
7487469
9c5d74e
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.1-15
9c5d74e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
9c5d74e
ec9272f
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.1-14
ec9272f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
ec9272f
a4999a6
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.1-13
a4999a6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
a4999a6
58a1f7b
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.1-12
58a1f7b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
58a1f7b
Richard Hughes 1959a04
* Thu Mar 26 2015 Richard Hughes <rhughes@redhat.com> - 0.9.1-11
Richard Hughes 1959a04
- Add an AppData file for the software center
Richard Hughes 1959a04
6bfd4ee
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.1-10
6bfd4ee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
6bfd4ee
b290bb7
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.1-9
b290bb7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
b290bb7
55fa5d9
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.1-8
55fa5d9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
55fa5d9
Parag Nemade 5fe8c63
* Sun Feb 10 2013 Parag Nemade <paragn AT fedoraproject DOT org> - 0.9.1-7
Parag Nemade 5fe8c63
- Remove vendor tag from desktop file as per https://fedorahosted.org/fesco/ticket/1077
Parag Nemade 5fe8c63
- Cleanup spec as per recently changed packaging guidelines
Parag Nemade 5fe8c63
b90896c
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.1-6
b90896c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
b90896c
a07113b
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.1-5
a07113b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
a07113b
af35778
* Mon Nov 07 2011 Terje Rosten <terje.rosten@ntnu.no> - 0.9.1-4
af35778
- Rebuilt for new libpng
af35778
a496c9c
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.1-3
a496c9c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
a496c9c
88f6977
* Wed Feb 10 2010 Terje Rosten <terjeros@phys.ntnu.no> - 0.9.1-2
88f6977
- Add DSO patch
88f6977
f39f281
* Sat Dec 05 2009 Terje Rosten <terjeros@phys.ntnu.no> - 0.9.1-1
6cf6d52
- 0.9.1
6cf6d52
bad63f8
* Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-8
bad63f8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
bad63f8
327641b
* Mon May 18 2009 Hans de Goede <hdegoede@redhat.com> - 0.9-7
327641b
- Add an icon for the menu entry
327641b
- Make ChangeLog and NEWS UTF-8
327641b
87fdd27
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-6
87fdd27
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
87fdd27
3acce01
* Sat Jan 10 2009 Hans de Goede <hdegoede@redhat.com> - 0.9-5
3acce01
- Update to latest upstream svn (r41) fixing several crashes
3acce01
- Add a patch fixing thumbnail loading
3acce01
- Add a patch fixing thumbnail generation for pictures where
3acce01
  the width is not a multiple of 4
3acce01
- Add a patch fixing thumbnail generation for pictures which have an alpha
3acce01
  channel
3acce01
- Fix scriptlet error on uninstall (make it preun instead of postun)
3acce01
f39f281
* Sat Feb 09 2008 Terje Rosten <terjeros@phys.ntnu.no> - 0.9-4
a017f39
- rebuild
a017f39
f39f281
* Sun Jan 06 2008 Terje Rosten <terjeros@phys.ntnu.no> - 0.9-3
e1af759
- info file has moved, fix scripts
e1af759
f39f281
* Sat Jan 05 2008 Terje Rosten <terjeros@phys.ntnu.no> - 0.9-2
e1af759
- rebuild
9f1f8a5
f39f281
* Sat Jan 05 2008 Terje Rosten <terjeros@phys.ntnu.no> - 0.9-1
b3b35de
- 0.9
b3b35de
- add all patches upto svn r35 
b3b35de
  fixing install and some other simple stuff
b3b35de
- new upstream maintainer, src and url updated
b3b35de
- drop patch now upstream
b3b35de
- build with gtk2 (yeah!) -> update summary and desc
b3b35de
- remove icon line from desktop file (icon gone)
b3b35de
- add texinfo to buildreq
b3b35de
- add patch to fix install of man and info files
b3b35de
dcc3ebf
* Sun Aug 19 2007 Terje Rosten <terjeros@phys.ntnu.no> - 0.8-6
dcc3ebf
- Fix license tag
dcc3ebf
21244f7
* Wed Jul 04 2007 Terje Rosten <terjeros@phys.ntnu.no> - 0.8-5
21244f7
- importing, fix tag problem
21244f7
522d4ef
* Tue Jul 03 2007 Terje Rosten <terjeros@phys.ntnu.no> - 0.8-4
522d4ef
- add gnome-icon-theme to req
522d4ef
522d4ef
* Sun Jul 01 2007 Terje Rosten <terjeros@phys.ntnu.no> - 0.8-3
522d4ef
- really add AUTHORS and NEWS to %%doc
522d4ef
- use image-viewer.png from gnome-icon-theme as icon
522d4ef
- help system need xterm
522d4ef
522d4ef
* Wed Jun 20 2007 Terje Rosten <terjeros@phys.ntnu.no> - 0.8-2
522d4ef
- add AUTHORS and NEWS to %%doc
522d4ef
- fix scriplets
522d4ef
- add buildreq: desktop-file-utils
522d4ef
- add smp_mflags macro
522d4ef
- remove app categori from desktop file
522d4ef
- switch icon to eog
522d4ef
522d4ef
* Mon Jun 18 2007 Terje Rosten <terjeros@phys.ntnu.no> - 0.8-1
522d4ef
- 0.8
522d4ef
- add integer overflow patch
522d4ef
- cleanup description
522d4ef
- add correct buildrequires
522d4ef
- desktop file
522d4ef
- add req for post, preun
522d4ef
522d4ef
* Thu Jan  3 2002 Aleksey Nogin <ayn2@cornell.edu> - 0.7-3.rh
522d4ef
- Borrowed the SPEC from Mandrake
522d4ef
- Minor updates
522d4ef
- Added info files to the package
522d4ef
522d4ef
* Fri Nov 30 2001 Yves Duret <yduret@mandrakesoft.com> - 0.7-2mdk
522d4ef
- rebuild against libpng3
522d4ef
- really fix doc perm aka etienne sux
522d4ef
522d4ef
* Thu Aug 23 2001 Etienne Faure <etienne@mandrakesoft.com> - 0.7-1mdk
522d4ef
- 0.7
522d4ef
- fix doc permissions
522d4ef
522d4ef
* Sat Jan 06 2001 David BAUDENS <baudens@mandrakesoft.com> - 0.6-2mdk
522d4ef
- ExclusiveArch: %%ix86
522d4ef
- Fix group
522d4ef
- %%setup -q
522d4ef
- Fix %%postun
522d4ef
- Spec clean up
522d4ef
522d4ef
* Mon Nov 06 2000 Lenny Cartier <lenny@mandrakesoft.com> - 0.6-1mdk
522d4ef
- new in contribs
522d4ef
- add menu entry