Blame SPECS/gv.spec

10f897
Summary: A X front-end for the Ghostscript PostScript(TM) interpreter
10f897
Name: gv
10f897
Version: 3.7.4
10f897
Release: 27%{?dist}
10f897
License: GPLv3+
10f897
%if 0%{?fedora} || 0%{?rhel} >= 8
10f897
Requires: ghostscript-x11
10f897
%else
10f897
Requires: ghostscript
10f897
%endif
10f897
URL: http://www.gnu.org/software/gv/
10f897
Source0: ftp://ftp.gnu.org/gnu/gv/gv-%{version}.tar.gz
10f897
#Source0: ftp://alpha.gnu.org/gnu/gv/gv-%{version}.tar.gz
10f897
Source1: gv.png
10f897
# Check for null pointers in resource requests
10f897
# https://savannah.gnu.org/bugs/?38727
10f897
Patch0:  gv-resource.patch
10f897
# Change tab to space in gv_user_res.dat
10f897
# http://savannah.gnu.org/patch/?7998
10f897
Patch1:  gv-dat.patch
10f897
# Support aarch64
10f897
Patch2:  gv-aarch64.patch
10f897
# Fix bounding box recognition
10f897
Patch3:  gv-bounding-box.patch
10f897
# Fix NULL access segfault
10f897
# https://bugzilla.redhat.com/show_bug.cgi?id=1071238
10f897
Patch4:  gv-bug1071238.patch
10f897
# Fix PDF printing
10f897
# https://bugzilla.redhat.com/show_bug.cgi?id=1536211
10f897
Patch5:  gv-bz1536211.patch
10f897
# Fix buffer overflows in resource.c
10f897
# https://savannah.gnu.org/patch/?10096
10f897
Patch6:  gv-overflow.patch
10f897
BuildRequires:  gcc
10f897
BuildRequires: /usr/bin/makeinfo
10f897
BuildRequires: Xaw3d-devel
10f897
BuildRequires: libXinerama-devel
10f897
BuildRequires: zlib-devel, bzip2-devel
10f897
BuildRequires: desktop-file-utils
10f897
BuildRequires: make
10f897
10f897
%description
10f897
GNU gv is a user interface for the Ghostscript PostScript(TM) interpreter.
10f897
Gv can display PostScript and PDF documents on an X Window System.
10f897
10f897
10f897
%prep
10f897
%setup -q
10f897
%patch0 -p1 -b .resource
10f897
%patch1 -p1 -b .resdat
10f897
%patch2 -p1 -b .aarch64
10f897
%patch3 -p2 -b .bounding-box
10f897
%patch4 -p1 -b .bug1071238
10f897
%patch5 -p1 -b .bz1536211
10f897
%patch6 -p2 -b .overflow
10f897
10f897
10f897
%build
10f897
%configure
10f897
%make_build
10f897
10f897
10f897
%install
10f897
%make_install
10f897
10f897
#Still provide link
10f897
ln $RPM_BUILD_ROOT%{_bindir}/gv $RPM_BUILD_ROOT%{_bindir}/ghostview
10f897
10f897
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
10f897
10f897
cat > gv.desktop <
10f897
[Desktop Entry]
10f897
Name=GNU GV PostScript/PDF Viewer
10f897
GenericName=PostScript/PDF Viewer
10f897
Comment="View PostScript and PDF files"
10f897
Type=Application
10f897
Icon=gv
10f897
MimeType=application/postscript;application/pdf;
10f897
StartupWMClass=GV
10f897
Exec=gv %f
10f897
EOF
10f897
10f897
desktop-file-install \
10f897
       --add-category=Applications\
10f897
       --add-category=Graphics \
10f897
       --dir %{buildroot}%{_datadir}/applications/ \
10f897
       gv.desktop
10f897
10f897
#Icon
10f897
mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps
10f897
cp -p %SOURCE1 $RPM_BUILD_ROOT%{_datadir}/pixmaps
10f897
10f897
# Remove info dir file
10f897
rm -f ${RPM_BUILD_ROOT}%{_infodir}/dir
10f897
10f897
%files
10f897
%license COPYING
10f897
%doc AUTHORS ChangeLog NEWS README
10f897
%{_bindir}/ghostview
10f897
%{_bindir}/gv
10f897
%{_bindir}/gv-update-userconfig
10f897
%{_datadir}/gv/
10f897
%{_datadir}/applications/gv.desktop
10f897
%{_datadir}/info/gv.info.gz
10f897
%{_datadir}/pixmaps/gv.png
10f897
%{_mandir}/man1/gv.*
10f897
%{_mandir}/man1/gv-update-userconfig.*
10f897
10f897
10f897
%changelog
10f897
* Thu Sep 16 2021 Orion Poplawski <orion@nwra.com> - 3.7.4-27
10f897
- Add patch to fix buffer overflows
10f897
10f897
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.4-26
10f897
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
10f897
10f897
* Sat Jan 30 2021 Orion Poplawski <orion@nwra.com> - 3.7.4-25
10f897
- Require ghostscript-x11 on EL8 (bz#1918041)
10f897
10f897
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.4-24
10f897
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
10f897
10f897
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.4-23
10f897
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
10f897
10f897
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.4-22
10f897
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
10f897
10f897
* Mon Nov 18 2019 Orion Poplawski <orion@nwra.com> - 3.7.4-21
10f897
- Add patch properly to fix PDF printing (bz#1536211)
10f897
10f897
* Thu Nov 14 2019 Orion Poplawski <orion@nwra.com> - 3.7.4-20
10f897
- Add patch to fix PDF printing (bz#1536211)
10f897
- Modernize spec
10f897
10f897
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.4-19
10f897
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
10f897
10f897
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.4-18
10f897
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
10f897
10f897
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.4-17
10f897
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
10f897
10f897
* Thu Jun 14 2018 Jason L Tibbitts III <tibbs@math.uh.edu> - 3.7.4-16
10f897
- Change dependency from ghostscript to ghostscript-x11 to match the
10f897
  reorganized ghostscript package.
10f897
10f897
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.4-15
10f897
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
10f897
10f897
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.4-14
10f897
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
10f897
10f897
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.4-13
10f897
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
10f897
10f897
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.4-12
10f897
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
10f897
10f897
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.4-11
10f897
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
10f897
10f897
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.7.4-10
10f897
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
10f897
10f897
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.7.4-9
10f897
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
10f897
10f897
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.7.4-8
10f897
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
10f897
10f897
* Mon Mar 3 2014 Orion Poplawski <orion@cora.nwra.com> - 3.7.4-7
10f897
- Update to upstream's fix for zoom segfault (bug #1071238)
10f897
10f897
* Fri Feb 28 2014 Orion Poplawski <orion@cora.nwra.com> - 3.7.4-6
10f897
- Fix NULL access segfault (bug #1071238)
10f897
10f897
* Thu Jan 23 2014 Orion Poplawski <orion@cora.nwra.com> - 3.7.4-5
10f897
- Fix bounding box recognition with CR line terminators
10f897
10f897
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.7.4-4
10f897
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
10f897
10f897
* Tue Apr 16 2013 Orion Poplawski <orion@cora.nwra.com> - 3.7.4-3
10f897
- Add patch to change tab to space in gv_user_res.dat
10f897
- Add patch to support aarch64 (bug #925536)
10f897
10f897
* Mon Apr 15 2013 Orion Poplawski <orion@cora.nwra.com> - 3.7.4-2
10f897
- Add patch to fix segfault in cases of missing resources
10f897
10f897
* Mon Mar 18 2013 Orion Poplawski <orion@cora.nwra.com> - 3.7.4-1
10f897
- Update to 3.7.4
10f897
10f897
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.7.3.90-5
10f897
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
10f897
10f897
* Tue Feb 12 2013 Orion Poplawski <orion@cora.nwra.com> - 3.7.3.90-4
10f897
- Drop vendor from desktop file
10f897
10f897
* Wed Jan 9 2013 Orion Poplawski <orion@cora.nwra.com> - 3.7.3.90-3
10f897
- Add filename argument to desktop file exec option (bug #890851)
10f897
10f897
* Fri Jul 27 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.7.3.90-2
10f897
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
10f897
10f897
* Thu Apr 5 2012 Orion Poplawski <orion@cora.nwra.com> - 3.7.3.90-1
10f897
- Update to 3.7.3.90
10f897
- Drop Xaw3d patch applied upstream
10f897
10f897
* Sun Feb 26 2012 Orion Poplawski <orion@cora.nwra.com> - 3.7.3-3
10f897
- Rebuild with Xaw3d 1.6.1
10f897
- Add patch from Gentoo for Xawd3d 1.6
10f897
10f897
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.7.3-2
10f897
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
10f897
10f897
* Fri Dec 2 2011 Orion Poplawski <orion@cora.nwra.com> 3.7.3-1
10f897
- Update to 3.7.3
10f897
10f897
* Wed Oct 26 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.7.2-2
10f897
- Rebuilt for glibc bug#747377
10f897
10f897
* Mon May 2 2011 Orion Poplawski <orion@cora.nwra.com> 3.7.2-1
10f897
- Update to 3.7.2
10f897
10f897
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.7.1-3
10f897
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
10f897
10f897
* Mon Nov 8 2010 Orion Poplawski <orion@cora.nwra.com> 3.7.1-2
10f897
- Re-enable international support
10f897
10f897
* Mon Jun 28 2010 Orion Poplawski <orion@cora.nwra.com> 3.7.1-1
10f897
- Update to 3.7.1
10f897
- Disable international support to avoid segfault on exit until
10f897
  bug 587349 is fixed
10f897
10f897
* Thu Jun 3 2010 Orion Poplawski <orion@cora.nwra.com> 3.6.91-1
10f897
- Update to 3.6.91 to fix CVE-2010-2055 and CVE-2010-2056
10f897
10f897
* Mon Apr 26 2010 Orion Poplawski <orion@cora.nwra.com> 3.6.9-1
10f897
- Update to 3.6.9
10f897
10f897
* Tue Mar 2 2010 Orion Poplawski <orion@cora.nwra.com> 3.6.8-2
10f897
- Ship icon, update desktop file
10f897
10f897
* Mon Dec 28 2009 Orion Poplawski <orion@cora.nwra.com> 3.6.8-1
10f897
- Update to 3.6.8
10f897
10f897
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.6.7-2
10f897
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
10f897
10f897
* Tue Mar 24 2009 Orion Poplawski <orion@cora.nwra.com> 3.6.7-1
10f897
- Update to 3.6.7
10f897
10f897
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.6.6-2
10f897
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
10f897
10f897
* Tue Oct 21 2008 Orion Poplawski <orion@cora.nwra.com> 3.6.6-1
10f897
- Update to 3.6.6
10f897
- Add extra neede BuildRequires
10f897
- Remove upstreamed patches
10f897
- Fix license - GPLv3+
10f897
10f897
* Wed Aug 6 2008 Orion Poplawski <orion@cora.nwra.com> 3.6.5-3
10f897
- Apply upstream patch to display more error messages
10f897
10f897
* Fri Jul 18 2008 Orion Poplawski <orion@cora.nwra.com> 3.6.5-2
10f897
- Change install dir patch to be more palatable for upstream
10f897
10f897
* Thu Jul 17 2008 Orion Poplawski <orion@cora.nwra.com> 3.6.5-1
10f897
- Update to 3.6.5
10f897
10f897
* Mon Jun 2 2008 Orion Poplawski <orion@cora.nwra.com> 3.6.4-1
10f897
- Update to 3.6.4
10f897
- Cleanup desktop file a little
10f897
10f897
* Sat Feb  9 2008 Orion Poplawski <orion@cora.nwra.com> 3.6.3-3
10f897
- Rebuild for gcc 3.4
10f897
10f897
* Tue Aug 21 2007 Orion Poplawski <orion@cora.nwra.com> 3.6.3-2
10f897
- Update license tag to GPLv2+
10f897
- Rebuild for ppc32
10f897
10f897
* Fri Jun 29 2007 Orion Poplawski <orion@cora.nwra.com> 3.6.3-1
10f897
- Update to 3.6.3
10f897
10f897
* Tue Dec  5 2006 Orion Poplawski <orion@cora.nwra.com> 3.6.2-2
10f897
- Apply patch from Mandriva to fix CVE-2006-5864/bug 215136
10f897
10f897
* Wed Oct 11 2006 Orion Poplawski <orion@cora.nwra.com> 3.6.2-1
10f897
- Update to 3.6.2
10f897
10f897
* Tue Aug 29 2006 Orion Poplawski <orion@cora.nwra.com> 3.6.1-8
10f897
- Rebuild for FC6
10f897
10f897
* Mon Feb 13 2006 Orion Poplawski <orion@cora.nwra.com> 3.6.1-7
10f897
- Rebuild for gcc/glibc changes
10f897
10f897
* Wed Feb  1 2006 Orion Poplawski <orion@cora.nwra.com> 3.6.1-6
10f897
- Remove info dir file
10f897
10f897
* Wed Dec 21 2005 Orion Poplawski <orion@cora.nwra.com> 3.6.1-5
10f897
- Rebuild
10f897
10f897
* Thu Oct 27 2005 Orion Poplawski <orion@cora.nwra.com> 3.6.1-4
10f897
- Add patch find app defaults file (#171848)
10f897
- Add BR: /usr/bin/makeinfo to properly build .info file (#171849)
10f897
10f897
* Thu Oct 20 2005 Orion Poplawski <orion@cora.nwra.com> 3.6.1-3
10f897
- Fixup .desktop file, add Comment and StartupWMClass
10f897
10f897
* Thu Oct 20 2005 Orion Poplawski <orion@cora.nwra.com> 3.6.1-2
10f897
- Trim install paragraph from Description
10f897
- Add MimeType to desktop and update mime and desktop databases
10f897
- Fix info file handling
10f897
10f897
* Mon Oct 17 2005 Orion Poplawski <orion@cora.nwra.com> 3.6.1-1
10f897
- Updated to 3.6.1
10f897
- Fedora Extras version
10f897
10f897
* Sun Sep 19 2004 Dan Williams <dcbw@redhat.com> 3.5.8-29
10f897
- Fix .desktop file (#125849)
10f897
10f897
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
10f897
- rebuilt
10f897
10f897
* Fri May 14 2004 Dan Williams <dcbw@redhat.com> 3.5.8-27
10f897
- display empty page when input file has size 0 (#100538)
10f897
10f897
* Fri May 14 2004 Dan Williams <dcbw@redhat.com> 3.5.8-26
10f897
- fix argv array size (#80672)
10f897
10f897
* Tue May  4 2004 Bill Nottingham <notting@redhat.com> 3.5.8-25
10f897
- fix desktop file (#120190)
10f897
10f897
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
10f897
- rebuilt
10f897
10f897
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
10f897
- rebuilt
10f897
10f897
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
10f897
- rebuilt
10f897
10f897
* Thu Dec 12 2002 Tim Powers <timp@redhat.com> 3.5.8-21
10f897
- rebuild on all arches
10f897
10f897
* Tue Nov 19 2002 Bill Nottingham <notting@redhat.com> 3.5.8-20
10f897
- rebuild
10f897
10f897
* Tue Sep 24 2002 Bill Nottingham <notting@redhat.com>
10f897
- fix handling of certain postscript/pdf headers
10f897
- use mkstemp
10f897
10f897
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
10f897
- automated rebuild
10f897
10f897
* Wed Jun 12 2002 Bill Nottingham <notting@redhat.com>
10f897
- remove anti-aliasing change; it causes problems
10f897
10f897
* Thu May 23 2002 Tim Powers <timp@redhat.com>
10f897
- automated rebuild
10f897
10f897
* Thu Feb 21 2002 Bill Nottingham <notting@redhat.com>
10f897
- rebuild
10f897
10f897
* Fri Jan 25 2002 Bill Nottingham <notting@redhat.com>
10f897
- fix anti-aliasing (#58686)
10f897
10f897
* Fri Jul 13 2001 Bill Nottingham <notting@redhat.com>
10f897
- fix some build issues (#48983, #48984)
10f897
10f897
* Thu Jul 13 2000 Prospector <bugzilla@redhat.com>
10f897
- automatic rebuild
10f897
10f897
* Fri Jun  9 2000 Bill Nottingham <notting@redhat.com>
10f897
- add filename quoting patch from debian
10f897
- rebuild in new build environment
10f897
10f897
* Mon May  8 2000 Bernhard Rosenkraenzer <bero@redhat.com>
10f897
- rebuild with new libXaw3d
10f897
10f897
* Mon Feb 07 2000 Preston Brown <pbrown@redhat.com>
10f897
- wmconfig -> desktop
10f897
10f897
* Thu Feb  3 2000 Bill Nottingham <notting@redhat.com>
10f897
- handle compressed man pages
10f897
10f897
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> 
10f897
- auto rebuild in the new build environment (release 7)
10f897
10f897
* Mon Jan 25 1999 Michael Maher <mike@redhat.com>
10f897
- fixed bug #272, changed group
10f897
10f897
* Thu Dec 17 1998 Michael Maher <mike@redhat.com>
10f897
- built pacakge for 6.0
10f897
10f897
* Sat Aug 15 1998 Jeff Johnson <jbj@redhat.com>
10f897
- build root
10f897
10f897
* Fri May 08 1998 Prospector System <bugs@redhat.com>
10f897
- translations modified for de, fr, tr
10f897
10f897
* Fri Apr 10 1998 Cristian Gafton <gafton@redhat.com>
10f897
- Manhattan build
10f897
10f897
* Thu Nov 06 1997 Cristian Gafton <gafton@redhat.com>
10f897
- we are installin a symlink to ghostview
10f897
10f897
* Wed Oct 22 1997 Cristian Gafton <gafton@redhat.com>
10f897
- updated to 3.5.8
10f897
10f897
* Thu Jul 17 1997 Erik Troan <ewt@redhat.com>
10f897
- built against glibc
10f897
10f897
* Tue Apr 15 1997 Erik Troan <ewt@redhat.com>
10f897
- added ghostscript requirement, added errlist patch for glibc.