Sophie

Sophie

distrib > Mandriva > 2008.0 > x86_64 > by-pkgid > 62aac3d7bd9068a43e120f8e9522c207 > files > 6

gv-3.6.3-2mdv2008.0.src.rpm

Name:		gv
Version:	3.6.3
Release:	%mkrel 2
Summary:	An enhanced front-end for the ghostscript PostScript(TM) interpreter
License:	GPL
Group:		Publishing
URL:		http://www.gnu.org/software/gv/
# old source: ftp://thep.physik.uni-mainz.de/pub/gv/unix/%{name}-%{version}.tar.bz2
Source0:	ftp://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.gz
Source1:	ftp://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.gz.sig
Source11:	%{name}.png
Patch6:		gv-3.6.3-gvuncompress.patch
Patch8:		gv-3.6.1-align.patch
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildRequires:	ImageMagick
BuildRequires:	X11-devel
BuildRequires:	glibc-devel
BuildRequires:	Xaw3d-devel
BuildRequires:	libice-devel
BuildRequires:	libsm-devel
BuildRequires:	libx11-devel
BuildRequires:	libxext-devel
BuildRequires:	libxmu-devel
BuildRequires:	libxpm-devel
BuildRequires:	libxt-devel
BuildRequires:	xpm-devel
BuildRequires:	texinfo
Obsoletes:	ghostview
Provides:	ghostview
Requires:	ghostscript-module-X

%description
Gv provides a user interface for the ghostscript PostScript(TM)
interpreter.  Derived from the ghostview program, gv can display
PostScript and PDF documents using the X Window System.  

Install the gv package if you'd like to view PostScript and PDF documents
on your system.  You'll also need to have the ghostscript package
installed, as well as the X Window System.

%prep
%setup -q
%patch6 -p1 -b .gvuncompress
%patch8 -p1 -b .align

%build
# force regeneration of file
rm -f src/gv_intern_res_unix.dat

%configure2_5x \
	--with-scratch-dir=~/tmp/ \
	--enable-scrollbar-code
%make

%install
rm -rf %{buildroot}
%makeinstall_std
install -m 0755 gvuncompress %{buildroot}%{_bindir}/gvuncompress

# icons
mkdir -p %{buildroot}%{_iconsdir} %{buildroot}%{_miconsdir}
install -m644 %{SOURCE11} -D %{buildroot}%{_liconsdir}/gv.png
convert -geometry 32x32 %{SOURCE11} %{buildroot}%{_iconsdir}/gv.png
convert -geometry 16x16 %{SOURCE11} %{buildroot}%{_miconsdir}/gv.png

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=gv
Comment=Viewer for Postscript and PDF files
Exec=%{_bindir}/gv %f
Icon=gv
Terminal=false
Type=Application
Categories=Office;Viewer;
Encoding=UTF-8
EOF

%clean
rm -rf %{buildroot}

%post
%{update_menus}
%_install_info gv.info

%preun
%_remove_install_info gv.info

%postun
%{clean_menus}

%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog NEWS README
%{_bindir}/*
%{_libdir}/%{name}
%{_mandir}/man1/*
%{_infodir}/*
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_datadir}/applications/*


%changelog
* Sun Aug 19 2007 Funda Wang <fundawang@mandriva.org> 3.6.3-2mdv2008.0
+ Revision: 66742
- BR xaw3d
- BR texinfo to generate info file

* Sun Aug 19 2007 Funda Wang <fundawang@mandriva.org> 3.6.3-1mdv2008.0
+ Revision: 66588
- New version 3.6.3
- rediff patch6
- CVE patch not needed anymore


* Sat Mar 10 2007 David Walluck <walluck@mandriva.org> 3.6.2-1mdv2007.1
+ Revision: 140427
- 3.6.2
  bunzip2 patches
  remove gv-3.6.1-scrollbar.patch (fixed upstream)
  remove automake requirement (needed by removed gv-3.6.1-scrollbar.patch)

* Thu Dec 07 2006 Marcelo Ricardo Leitner <mrl@mandriva.com> 3.6.1-10mdv2007.1
+ Revision: 91967
- Bumped release.
- Added security patch for CVE-2006-5864. Closes: #27209
- Moved autoreconf to build section.
- Removed some old stuff commented.

* Tue Nov 21 2006 Marcelo Ricardo Leitner <mrl@mandriva.com> 3.6.1-9mdv2007.1
+ Revision: 85793
- rebuilt

* Fri Nov 17 2006 Marcelo Ricardo Leitner <mrl@mandriva.com> 3.6.1-8mdv2007.1
+ Revision: 85155
- Bumped release.

* Fri Nov 17 2006 Marcelo Ricardo Leitner <mrl@mandriva.com> 3.6.1-7mdv2007.1
+ Revision: 85150
- Added missing BuildRequires to desktop-file-utils.
- Unversioned buildrequires.
- Filtered BuildRequires.
- Better version of scrollbar patch: do not alter ./configure directly
- Use of buildroot macro.
- Import gv

* Thu Sep 07 2006 Giuseppe Ghibò <ghibo@mandriva.com> 3.6.1-7mdv2007.0
- added dAlignToPixels=0 to workaround a ghostscript font aliasing problem
  (http://bugs.ghostscript.com/show_bug.cgi?id=687376), Patch8.
- xdg menus.

* Fri Feb 10 2006 Thierry Vignaud <tvignaud@mandriva.com> 3.6.1-6mdk
- fix build on x86_64

* Fri Jan 20 2006 Till Kamppeter <till@mandriva.com> 3.6.1-5mdk
- Really fixed bug 20200.

* Fri Jan 20 2006 Till Kamppeter <till@mandriva.com> 3.6.1-4mdk
- Fixed misbehaviour of the vertical scrollbar (patch 7, bug 20200,
  thanks to Juergen Holm, holm at theorie dot physik dot uni-goettingen 
  dot de).
- Rebuilt for X.org.
- Introduced %%mkrel.

* Sat Dec 31 2005 Mandriva Linux Team <http://www.mandrivaexpert.com/> 3.6.1-3mdk
- Rebuild

* Sat Jan 15 2005 Abel Cheung <deaddog@mandrake.org> 3.6.1-2mdk
- rebuild

* Mon Dec 27 2004 Abel Cheung <deaddog@mandrake.org> 3.6.1-1mdk
- gv is now a GNU project
- New version
- Drop P1,3,7 (upstream), P2 (outdated), Rediff P6 (open compressed files)
- Integrate P5 later, I'm lazy
- Redo installation procedure since it uses autotools now
- Replace ugly icon with the one in GNOME high contrast theme, that's
  much better

* Sat Dec 25 2004 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 3.5.8-33mdk
- fix buildrequires
- do parallell build
- fix summary-ended-with-dot

* Fri Jun 04 2004 Laurent Montel <lmontel@mandrakesoft.com> 3.5.8-32mdk
- Rebuild