ea66ed1
Summary: A X front-end for the Ghostscript PostScript(TM) interpreter
ea66ed1
Name: gv
d8fef2a
Version: 3.7.1
f156906
Release: 1%{?dist}
f156906
License: GPLv3+
ea66ed1
Group: Applications/Publishing
ea66ed1
Requires: ghostscript
ea66ed1
URL: http://www.gnu.org/software/gv/
d8fef2a
Source0: ftp://ftp.gnu.org/gnu/gv/gv-%{version}.tar.gz
d8fef2a
#Source0: ftp://alpha.gnu.org/gnu/gv/gv-%{version}.tar.gz
f156906
Source1: gv.png
84549d5
BuildRequires: /usr/bin/makeinfo
f156906
BuildRequires: Xaw3d-devel, libXinerama-devel
f156906
BuildRequires: zlib-devel, bzip2-devel
f156906
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
f156906
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
ea66ed1
ea66ed1
ea66ed1
%build
d8fef2a
%configure --disable-international
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]
f156906
Name=GNU GV PostScript/PDF Viewer
ea66ed1
GenericName=PostScript/PDF Viewer
ea66ed1
Comment="View PostScript and PDF files"
ea66ed1
Type=Application
f156906
Icon=gv
ea66ed1
MimeType=application/postscript;application/pdf;
ea66ed1
StartupWMClass=GV
ea66ed1
Exec=gv
ea66ed1
EOF
ea66ed1
ea66ed1
desktop-file-install --vendor=fedora \
ea66ed1
       --add-category=Applications\
ea66ed1
       --add-category=Graphics \
ea66ed1
       --dir %{buildroot}%{_datadir}/applications/ \
ea66ed1
       gv.desktop
ea66ed1
f156906
#Icon
f156906
mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps
f156906
cp -p %SOURCE1 $RPM_BUILD_ROOT%{_datadir}/pixmaps
f156906
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
%defattr(-,root,root)
ea66ed1
%doc AUTHORS ChangeLog COPYING NEWS README
ea66ed1
%{_bindir}/ghostview
ea66ed1
%{_bindir}/gv
f156906
%{_bindir}/gv-update-userconfig
ea66ed1
%{_datadir}/gv/
ea66ed1
%{_datadir}/applications/fedora-gv.desktop
ea66ed1
%{_datadir}/info/gv.info.gz
f156906
%{_datadir}/pixmaps/gv.png
ea66ed1
%{_mandir}/man1/gv.*
f156906
%{_mandir}/man1/gv-update-userconfig.*
f156906
ea66ed1
ea66ed1
%changelog
d8fef2a
* Mon Jun 28 2010 Orion Poplawski <orion@cora.nwra.com> 3.7.1-1
d8fef2a
- Update to 3.7.1
d8fef2a
- Disable international support to avoid segfault on exit until
d8fef2a
  bug 587349 is fixed
d8fef2a
f156906
* Thu Jun 3 2010 Orion Poplawski <orion@cora.nwra.com> 3.6.91-1
f156906
- Update to 3.6.91 to fix CVE-2010-2055 and CVE-2010-2056
f156906
f156906
* Mon Apr 26 2010 Orion Poplawski <orion@cora.nwra.com> 3.6.9-1
f156906
- Update to 3.6.9
f156906
f156906
* Tue Mar 2 2010 Orion Poplawski <orion@cora.nwra.com> 3.6.8-2
f156906
- Ship icon, update desktop file
f156906
f156906
* Mon Dec 28 2009 Orion Poplawski <orion@cora.nwra.com> 3.6.8-1
f156906
- Update to 3.6.8
f156906
f156906
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.6.7-2
f156906
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
f156906
f156906
* Tue Mar 24 2009 Orion Poplawski <orion@cora.nwra.com> 3.6.7-1
f156906
- Update to 3.6.7
f156906
f156906
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.6.6-2
f156906
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
f156906
f156906
* Tue Oct 21 2008 Orion Poplawski <orion@cora.nwra.com> 3.6.6-1
f156906
- Update to 3.6.6
f156906
- Add extra neede BuildRequires
f156906
- Remove upstreamed patches
f156906
- Fix license - GPLv3+
f156906
f156906
* Wed Aug 6 2008 Orion Poplawski <orion@cora.nwra.com> 3.6.5-3
f156906
- Apply upstream patch to display more error messages
f156906
f156906
* Thu Jul 18 2008 Orion Poplawski <orion@cora.nwra.com> 3.6.5-2
f156906
- Change install dir patch to be more palatable for upstream
f156906
f156906
* Thu Jul 17 2008 Orion Poplawski <orion@cora.nwra.com> 3.6.5-1
f156906
- Update to 3.6.5
f156906
f156906
* Mon Jun 2 2008 Orion Poplawski <orion@cora.nwra.com> 3.6.4-1
f156906
- Update to 3.6.4
f156906
- Cleanup desktop file a little
f156906
f156906
* Sat Feb  9 2008 Orion Poplawski <orion@cora.nwra.com> 3.6.3-3
f156906
- Rebuild for gcc 3.4
f156906
f156906
* Tue Aug 21 2007 Orion Poplawski <orion@cora.nwra.com> 3.6.3-2
f156906
- Update license tag to GPLv2+
f156906
- Rebuild for ppc32
f156906
f156906
* Fri Jun 29 2007 Orion Poplawski <orion@cora.nwra.com> 3.6.3-1
f156906
- Update to 3.6.3
f156906
7090a58
* Tue Dec  5 2006 Orion Poplawski <orion@cora.nwra.com> 3.6.2-2
7090a58
- Apply patch from Mandriva to fix CVE-2006-5864/bug 215136
7090a58
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
ea66ed1
* Mon Jan 23 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
ea66ed1
* Wed Oct 21 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.