ea66ed1
Summary: A X front-end for the Ghostscript PostScript(TM) interpreter
ea66ed1
Name: gv
8042891
Version: 3.7.4
8f88031
Release: 14%{?dist}
5404800
License: GPLv3+
ea66ed1
Group: Applications/Publishing
ea66ed1
Requires: ghostscript
ea66ed1
URL: http://www.gnu.org/software/gv/
8042891
Source0: ftp://ftp.gnu.org/gnu/gv/gv-%{version}.tar.gz
8042891
#Source0: ftp://alpha.gnu.org/gnu/gv/gv-%{version}.tar.gz
99dac9c
Source1: gv.png
Orion Poplawski 7b9492c
# Check for null pointers in resource requests
Orion Poplawski 7b9492c
# https://savannah.gnu.org/bugs/?38727
Orion Poplawski 7b9492c
Patch0:  gv-resource.patch
89cbf2b
# Change tab to space in gv_user_res.dat
89cbf2b
# http://savannah.gnu.org/patch/?7998
89cbf2b
Patch1:  gv-dat.patch
89cbf2b
# Support aarch64
89cbf2b
Patch2:  gv-aarch64.patch
aae0464
# Fix bounding box recognition
aae0464
Patch3:  gv-bounding-box.patch
7d45416
# Fix NULL access segfault
7d45416
# https://bugzilla.redhat.com/show_bug.cgi?id=1071238
7d45416
Patch4:  gv-bug1071238.patch
84549d5
BuildRequires: /usr/bin/makeinfo
3290f81
BuildRequires: Xaw3d-devel
3290f81
%if 0%{?rhel} != 04
3290f81
BuildRequires: libXinerama-devel
3290f81
%endif
c6d6aad
BuildRequires: zlib-devel, bzip2-devel
c6d6aad
BuildRequires: desktop-file-utils
ea66ed1
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
ea66ed1
Requires(post): /sbin/install-info, /usr/bin/update-mime-database
ea66ed1
Requires(post): /usr/bin/update-desktop-database
ea66ed1
Requires(preun): /sbin/install-info
ea66ed1
Requires(postun): /usr/bin/update-mime-database
ea66ed1
Requires(postun): /usr/bin/update-desktop-database
ea66ed1
ea66ed1
ea66ed1
%description
99dac9c
GNU gv is a user interface for the Ghostscript PostScript(TM) interpreter.
ea66ed1
Gv can display PostScript and PDF documents on an X Window System.
ea66ed1
ea66ed1
ea66ed1
%prep
ea66ed1
%setup -q
Orion Poplawski 7b9492c
%patch0 -p1 -b .resource
89cbf2b
%patch1 -p1 -b .resdat
89cbf2b
%patch2 -p1 -b .aarch64
aae0464
%patch3 -p2 -b .bounding-box
7d45416
%patch4 -p1 -b .bug1071238
ea66ed1
ea66ed1
ea66ed1
%build
Orion Poplawski 677825b
%configure
ea66ed1
make %{?_smp_mflags}
ea66ed1
ea66ed1
ea66ed1
%install
ea66ed1
rm -rf $RPM_BUILD_ROOT
ea66ed1
make install DESTDIR=$RPM_BUILD_ROOT
ea66ed1
ea66ed1
#Still provide link
ea66ed1
ln $RPM_BUILD_ROOT%{_bindir}/gv $RPM_BUILD_ROOT%{_bindir}/ghostview
ea66ed1
ea66ed1
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
ea66ed1
ea66ed1
cat > gv.desktop <
ea66ed1
[Desktop Entry]
99dac9c
Name=GNU GV PostScript/PDF Viewer
ea66ed1
GenericName=PostScript/PDF Viewer
ea66ed1
Comment="View PostScript and PDF files"
ea66ed1
Type=Application
99dac9c
Icon=gv
ea66ed1
MimeType=application/postscript;application/pdf;
ea66ed1
StartupWMClass=GV
Orion Poplawski 7ddee17
Exec=gv %f
ea66ed1
EOF
ea66ed1
017be8a
desktop-file-install \
ea66ed1
       --add-category=Applications\
ea66ed1
       --add-category=Graphics \
ea66ed1
       --dir %{buildroot}%{_datadir}/applications/ \
ea66ed1
       gv.desktop
ea66ed1
99dac9c
#Icon
99dac9c
mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps
99dac9c
cp -p %SOURCE1 $RPM_BUILD_ROOT%{_datadir}/pixmaps
99dac9c
ecbd017
# Remove info dir file
ecbd017
rm -f ${RPM_BUILD_ROOT}%{_infodir}/dir
ecbd017
ea66ed1
ea66ed1
%clean
ea66ed1
rm -rf $RPM_BUILD_ROOT
ea66ed1
ea66ed1
ea66ed1
%post
84549d5
/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || :
ea66ed1
/usr/bin/update-mime-database /usr/share/mime > /dev/null 2>&1 || :
ea66ed1
/usr/bin/update-desktop-database /usr/share/applications > /dev/null 2>&1 || :
ea66ed1
ea66ed1
ea66ed1
%preun
ea66ed1
if [ $1 = 0 ]; then
ea66ed1
    /sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || :
ea66ed1
fi
ea66ed1
ea66ed1
ea66ed1
%postun
ea66ed1
if [ $1 = 0 ]; then
ea66ed1
    /usr/bin/update-mime-database /usr/share/mime > /dev/null 2>&1 || :
ea66ed1
    /usr/bin/update-desktop-database /usr/share/applications > /dev/null 2>&1 || :
ea66ed1
fi
ea66ed1
ea66ed1
ea66ed1
%files
ea66ed1
%doc AUTHORS ChangeLog COPYING NEWS README
ea66ed1
%{_bindir}/ghostview
ea66ed1
%{_bindir}/gv
c6d6aad
%{_bindir}/gv-update-userconfig
ea66ed1
%{_datadir}/gv/
e57e960
%{_datadir}/applications/gv.desktop
ea66ed1
%{_datadir}/info/gv.info.gz
99dac9c
%{_datadir}/pixmaps/gv.png
ea66ed1
%{_mandir}/man1/gv.*
c6d6aad
%{_mandir}/man1/gv-update-userconfig.*
ea66ed1
15de0d3
ea66ed1
%changelog
8f88031
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.4-14
8f88031
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
8f88031
e0f52a7
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.4-13
e0f52a7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
e0f52a7
0bff08b
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.4-12
0bff08b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
0bff08b
3f4b41e
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.4-11
3f4b41e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
3f4b41e
a927d14
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.7.4-10
a927d14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
a927d14
bca1c63
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.7.4-9
bca1c63
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
bca1c63
8aa2c6b
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.7.4-8
8aa2c6b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
8aa2c6b
2ecbc09
* Mon Mar 3 2014 Orion Poplawski <orion@cora.nwra.com> - 3.7.4-7
2ecbc09
- Update to upstream's fix for zoom segfault (bug #1071238)
2ecbc09
7d45416
* Fri Feb 28 2014 Orion Poplawski <orion@cora.nwra.com> - 3.7.4-6
7d45416
- Fix NULL access segfault (bug #1071238)
7d45416
aae0464
* Thu Jan 23 2014 Orion Poplawski <orion@cora.nwra.com> - 3.7.4-5
aae0464
- Fix bounding box recognition with CR line terminators
aae0464
6c2527d
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.7.4-4
6c2527d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
6c2527d
89cbf2b
* Tue Apr 16 2013 Orion Poplawski <orion@cora.nwra.com> - 3.7.4-3
89cbf2b
- Add patch to change tab to space in gv_user_res.dat
89cbf2b
- Add patch to support aarch64 (bug #925536)
89cbf2b
Orion Poplawski 7b9492c
* Mon Apr 15 2013 Orion Poplawski <orion@cora.nwra.com> - 3.7.4-2
Orion Poplawski 7b9492c
- Add patch to fix segfault in cases of missing resources
Orion Poplawski 7b9492c
8042891
* Mon Mar 18 2013 Orion Poplawski <orion@cora.nwra.com> - 3.7.4-1
8042891
- Update to 3.7.4
8042891
8838829
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.7.3.90-5
8838829
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
8838829
017be8a
* Tue Feb 12 2013 Orion Poplawski <orion@cora.nwra.com> - 3.7.3.90-4
017be8a
- Drop vendor from desktop file
017be8a
Orion Poplawski 7ddee17
* Wed Jan 9 2013 Orion Poplawski <orion@cora.nwra.com> - 3.7.3.90-3
Orion Poplawski 7ddee17
- Add filename argument to desktop file exec option (bug #890851)
Orion Poplawski 7ddee17
5abbc78
* Fri Jul 27 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.7.3.90-2
5abbc78
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
5abbc78
Orion Poplawski 091b968
* Thu Apr 5 2012 Orion Poplawski <orion@cora.nwra.com> - 3.7.3.90-1
Orion Poplawski 091b968
- Update to 3.7.3.90
Orion Poplawski 091b968
- Drop Xaw3d patch applied upstream
Orion Poplawski 091b968
Orion Poplawski 46b7930
* Sun Feb 26 2012 Orion Poplawski <orion@cora.nwra.com> - 3.7.3-3
Orion Poplawski 46b7930
- Rebuild with Xaw3d 1.6.1
Orion Poplawski 50e1809
- Add patch from Gentoo for Xawd3d 1.6
Orion Poplawski 46b7930
2a2afff
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.7.3-2
2a2afff
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
2a2afff
Orion Poplawski f4bef6c
* Fri Dec 2 2011 Orion Poplawski <orion@cora.nwra.com> 3.7.3-1
Orion Poplawski f4bef6c
- Update to 3.7.3
Orion Poplawski f4bef6c
6792a78
* Wed Oct 26 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.7.2-2
6792a78
- Rebuilt for glibc bug#747377
6792a78
Orion Poplawski ce4f337
* Mon May 2 2011 Orion Poplawski <orion@cora.nwra.com> 3.7.2-1
Orion Poplawski ce4f337
- Update to 3.7.2
Orion Poplawski ce4f337
1ae5a68
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.7.1-3
1ae5a68
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
1ae5a68
Orion Poplawski 677825b
* Mon Nov 8 2010 Orion Poplawski <orion@cora.nwra.com> 3.7.1-2
Orion Poplawski 677825b
- Re-enable international support
Orion Poplawski 677825b
4837036
* Mon Jun 28 2010 Orion Poplawski <orion@cora.nwra.com> 3.7.1-1
4837036
- Update to 3.7.1
4837036
- Disable international support to avoid segfault on exit until
4837036
  bug 587349 is fixed
4837036
71579d2
* Thu Jun 3 2010 Orion Poplawski <orion@cora.nwra.com> 3.6.91-1
71579d2
- Update to 3.6.91 to fix CVE-2010-2055 and CVE-2010-2056
71579d2
15de0d3
* Mon Apr 26 2010 Orion Poplawski <orion@cora.nwra.com> 3.6.9-1
15de0d3
- Update to 3.6.9
15de0d3
99dac9c
* Tue Mar 2 2010 Orion Poplawski <orion@cora.nwra.com> 3.6.8-2
99dac9c
- Ship icon, update desktop file
99dac9c
b2e893d
* Mon Dec 28 2009 Orion Poplawski <orion@cora.nwra.com> 3.6.8-1
b2e893d
- Update to 3.6.8
b2e893d
223e3bf
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.6.7-2
223e3bf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
223e3bf
20c37f5
* Tue Mar 24 2009 Orion Poplawski <orion@cora.nwra.com> 3.6.7-1
20c37f5
- Update to 3.6.7
20c37f5
2e7ef30
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.6.6-2
2e7ef30
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
2e7ef30
c6d6aad
* Tue Oct 21 2008 Orion Poplawski <orion@cora.nwra.com> 3.6.6-1
c6d6aad
- Update to 3.6.6
c6d6aad
- Add extra neede BuildRequires
c6d6aad
- Remove upstreamed patches
5404800
- Fix license - GPLv3+
5404800
f44c031
* Wed Aug 6 2008 Orion Poplawski <orion@cora.nwra.com> 3.6.5-3
f44c031
- Apply upstream patch to display more error messages
f44c031
b0d6a2e
* Fri Jul 18 2008 Orion Poplawski <orion@cora.nwra.com> 3.6.5-2
b0fbb03
- Change install dir patch to be more palatable for upstream
b0fbb03
dc626d5
* Thu Jul 17 2008 Orion Poplawski <orion@cora.nwra.com> 3.6.5-1
dc626d5
- Update to 3.6.5
dc626d5
d87c2be
* Mon Jun 2 2008 Orion Poplawski <orion@cora.nwra.com> 3.6.4-1
d87c2be
- Update to 3.6.4
d87c2be
- Cleanup desktop file a little
d87c2be
ca79945
* Sat Feb  9 2008 Orion Poplawski <orion@cora.nwra.com> 3.6.3-3
ca79945
- Rebuild for gcc 3.4
ca79945
42dd673
* Tue Aug 21 2007 Orion Poplawski <orion@cora.nwra.com> 3.6.3-2
42dd673
- Update license tag to GPLv2+
42dd673
- Rebuild for ppc32
42dd673
7690e96
* Fri Jun 29 2007 Orion Poplawski <orion@cora.nwra.com> 3.6.3-1
7690e96
- Update to 3.6.3
7690e96
9792d1a
* Tue Dec  5 2006 Orion Poplawski <orion@cora.nwra.com> 3.6.2-2
9792d1a
- Apply patch from Mandriva to fix CVE-2006-5864/bug 215136
9792d1a
9d3c8ab
* Wed Oct 11 2006 Orion Poplawski <orion@cora.nwra.com> 3.6.2-1
9d3c8ab
- Update to 3.6.2
9d3c8ab
139f987
* Tue Aug 29 2006 Orion Poplawski <orion@cora.nwra.com> 3.6.1-8
139f987
- Rebuild for FC6
139f987
a039aa8
* Mon Feb 13 2006 Orion Poplawski <orion@cora.nwra.com> 3.6.1-7
8fde192
- Rebuild for gcc/glibc changes
8fde192
ecbd017
* Wed Feb  1 2006 Orion Poplawski <orion@cora.nwra.com> 3.6.1-6
ecbd017
- Remove info dir file
ecbd017
3205745
* Wed Dec 21 2005 Orion Poplawski <orion@cora.nwra.com> 3.6.1-5
3205745
- Rebuild
3205745
15fb89d
* Thu Oct 27 2005 Orion Poplawski <orion@cora.nwra.com> 3.6.1-4
84549d5
- Add patch find app defaults file (#171848)
84549d5
- Add BR: /usr/bin/makeinfo to properly build .info file (#171849)
84549d5
15fb89d
* Thu Oct 20 2005 Orion Poplawski <orion@cora.nwra.com> 3.6.1-3
ea66ed1
- Fixup .desktop file, add Comment and StartupWMClass
ea66ed1
15fb89d
* Thu Oct 20 2005 Orion Poplawski <orion@cora.nwra.com> 3.6.1-2
ea66ed1
- Trim install paragraph from Description
ea66ed1
- Add MimeType to desktop and update mime and desktop databases
ea66ed1
- Fix info file handling
ea66ed1
15fb89d
* Mon Oct 17 2005 Orion Poplawski <orion@cora.nwra.com> 3.6.1-1
ea66ed1
- Updated to 3.6.1
ea66ed1
- Fedora Extras version
ea66ed1
ea66ed1
* Sun Sep 19 2004 Dan Williams <dcbw@redhat.com> 3.5.8-29
ea66ed1
- Fix .desktop file (#125849)
ea66ed1
ea66ed1
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
ea66ed1
- rebuilt
ea66ed1
ea66ed1
* Fri May 14 2004 Dan Williams <dcbw@redhat.com> 3.5.8-27
ea66ed1
- display empty page when input file has size 0 (#100538)
ea66ed1
ea66ed1
* Fri May 14 2004 Dan Williams <dcbw@redhat.com> 3.5.8-26
ea66ed1
- fix argv array size (#80672)
ea66ed1
ea66ed1
* Tue May  4 2004 Bill Nottingham <notting@redhat.com> 3.5.8-25
ea66ed1
- fix desktop file (#120190)
ea66ed1
ea66ed1
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
ea66ed1
- rebuilt
ea66ed1
ea66ed1
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
ea66ed1
- rebuilt
ea66ed1
ea66ed1
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
ea66ed1
- rebuilt
ea66ed1
ea66ed1
* Thu Dec 12 2002 Tim Powers <timp@redhat.com> 3.5.8-21
ea66ed1
- rebuild on all arches
ea66ed1
ea66ed1
* Tue Nov 19 2002 Bill Nottingham <notting@redhat.com> 3.5.8-20
ea66ed1
- rebuild
ea66ed1
ea66ed1
* Tue Sep 24 2002 Bill Nottingham <notting@redhat.com>
ea66ed1
- fix handling of certain postscript/pdf headers
ea66ed1
- use mkstemp
ea66ed1
ea66ed1
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
ea66ed1
- automated rebuild
ea66ed1
ea66ed1
* Wed Jun 12 2002 Bill Nottingham <notting@redhat.com>
ea66ed1
- remove anti-aliasing change; it causes problems
ea66ed1
ea66ed1
* Thu May 23 2002 Tim Powers <timp@redhat.com>
ea66ed1
- automated rebuild
ea66ed1
ea66ed1
* Thu Feb 21 2002 Bill Nottingham <notting@redhat.com>
ea66ed1
- rebuild
ea66ed1
ea66ed1
* Fri Jan 25 2002 Bill Nottingham <notting@redhat.com>
ea66ed1
- fix anti-aliasing (#58686)
ea66ed1
ea66ed1
* Fri Jul 13 2001 Bill Nottingham <notting@redhat.com>
ea66ed1
- fix some build issues (#48983, #48984)
ea66ed1
ea66ed1
* Thu Jul 13 2000 Prospector <bugzilla@redhat.com>
ea66ed1
- automatic rebuild
ea66ed1
ea66ed1
* Fri Jun  9 2000 Bill Nottingham <notting@redhat.com>
ea66ed1
- add filename quoting patch from debian
ea66ed1
- rebuild in new build environment
ea66ed1
ea66ed1
* Mon May  8 2000 Bernhard Rosenkraenzer <bero@redhat.com>
ea66ed1
- rebuild with new libXaw3d
ea66ed1
ea66ed1
* Mon Feb 07 2000 Preston Brown <pbrown@redhat.com>
ea66ed1
- wmconfig -> desktop
ea66ed1
ea66ed1
* Thu Feb  3 2000 Bill Nottingham <notting@redhat.com>
ea66ed1
- handle compressed man pages
ea66ed1
ea66ed1
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> 
ea66ed1
- auto rebuild in the new build environment (release 7)
ea66ed1
b0d6a2e
* Mon Jan 25 1999 Michael Maher <mike@redhat.com>
ea66ed1
- fixed bug #272, changed group
ea66ed1
ea66ed1
* Thu Dec 17 1998 Michael Maher <mike@redhat.com>
ea66ed1
- built pacakge for 6.0
ea66ed1
ea66ed1
* Sat Aug 15 1998 Jeff Johnson <jbj@redhat.com>
ea66ed1
- build root
ea66ed1
ea66ed1
* Fri May 08 1998 Prospector System <bugs@redhat.com>
ea66ed1
- translations modified for de, fr, tr
ea66ed1
ea66ed1
* Fri Apr 10 1998 Cristian Gafton <gafton@redhat.com>
ea66ed1
- Manhattan build
ea66ed1
ea66ed1
* Thu Nov 06 1997 Cristian Gafton <gafton@redhat.com>
ea66ed1
- we are installin a symlink to ghostview
ea66ed1
b0d6a2e
* Wed Oct 22 1997 Cristian Gafton <gafton@redhat.com>
ea66ed1
- updated to 3.5.8
ea66ed1
ea66ed1
* Thu Jul 17 1997 Erik Troan <ewt@redhat.com>
ea66ed1
- built against glibc
ea66ed1
ea66ed1
* Tue Apr 15 1997 Erik Troan <ewt@redhat.com>
ea66ed1
- added ghostscript requirement, added errlist patch for glibc.