Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37722851
en ru br
ALT Linux repos
S:3.7.4-alt2.1
5.0: 3.6.5-alt1
4.1: 3.6.3-alt1
4.0: 3.6.1-alt4
3.0: 3.6.1-alt2

Other repositories
Upstream:3.6.3

Group :: Publishing
RPM: gv

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: gv
Version: 3.6.5
Release: alt1
Serial: 1

Packager: Stanislav Ievlev <inger at altlinux.org>

Summary: An enhanced front-end for the ghostscript PostScript(TM) interpreter
License: GPL
Group: Publishing
Url: http://www.gnu.org/software/gv/

Source: http://ftp.gnu.org/gnu/gv/%{name}-%{version}.tar.bz2

Source100: %name.png
Source101: gvcat

Patch: gv-3.6.3-alt-tmpdir.patch

Requires: ghostscript-module-X >= 7.05
Provides: ghostview = %version
Obsoletes: ghostview
Requires: file

# Automatically added by buildreq on Sat Feb 04 2006 (-bi)

BuildRequires: ImageMagick flex freetype2 imake libICE-devel libSM-devel libX11-devel libXaw3d-devel libXext-devel libXmu-devel libXpm-devel libXt-devel xorg-cf-files xorg-x11-proto-devel

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

Install the %name 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
%patch -p1

find -type f -print0 |
xargs -r0 %__grep -FZl 'gzip -d -c' |
xargs -r0 %__subst 's|gzip -d -c|%_datadir/%name/gvcat|g'

find -type f -print0 |
xargs -r0 %__grep -FZl 'gzipped, zipped or compressed' |
xargs -r0 %__subst 's/gzipped, zipped or compressed/gzipped, bzipped, zipped or compressed/g'

find -type f -print0|
xargs -r0 %__grep -FZl 'GraphicsAlphaBits' |
xargs -r0 %__subst 's/-dGraphicsAlphaBits=2/-dGraphicsAlphaBits=4/g'

%build
%configure --with-scratch-dir=~/tmp/
## --enable-scrollbar-code
%make

%install
%__mkdir_p %buildroot{%_miconsdir,%_liconsdir,%_datadir/%name,%_x11bindir,%_sysconfdir/X11/app-defaults/}
%makeinstall

install -m644 %SOURCE100 -D %buildroot%_liconsdir/gv.png
convert -geometry 32x32 %SOURCE100 %buildroot%_iconsdir/gv.png
convert -geometry 16x16 %SOURCE100 %buildroot%_miconsdir/gv.png

install -p -m755 %SOURCE101 %buildroot%_datadir/%name

%__ln_s -nf %name %buildroot%_x11bindir/ghostview

install -d %buildroot/%_desktopdir
cat > %buildroot/%_desktopdir/%name.desktop <<EOF
[Desktop Entry]
Type=Application
Icon=%name
Name=Ghostview
GenericName=PostScript/PDF Viewer
GenericName[ru]=Просмотр файлов PostScript/PDF
MimeType=application/postscript;application/pdf;
Categories=Application;Graphics;Viewer;
StartupWMClass=GV
Exec=gv
EOF

mv %buildroot/%_libdir/%name/GV %buildroot%_sysconfdir/X11/app-defaults/

%post
%update_menus
%install_info %name.info

%preun
%uninstall_info %name.info

%postun
%clean_menus

%files
%doc README
%config(noreplace) %_sysconfdir/X11/app-defaults/*
%_bindir/*
%_libdir/%name
%_man1dir/*
%_datadir/%name
%_desktopdir/*
%_infodir/*.info*
%_iconsdir/*.png
%_miconsdir/*.png
%_liconsdir/*.png

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin