Re: Ghostscript 8?

"Giulio Orsero" <[email protected]> Wed, 23 May 2007 18:17:13 +0200
Newsgroups gmane.linux.redhat.release.taroon.general
Message-ID <[email protected]>
On 5/23/07, Domenico Viggiani <[email protected]> wrote:
> Hi,
> is there some chance to upgrade Ghostscript shipped with RH3 (v.7.xx) to
> version 8 by RPMs?

If it's just for HylaFAX, you can build your own rpm with just vanilla
ghostscript, without the mess of patches used in the official RH rpms
(which are needed for printing to various esotic printers).

==== example spec file
Summary:   ghostscript gs interpreter
Name:      ghostscript
Version:   8.15
Release:   1.gol
Source0:   ghostscript-%{version}.tar.bz2
License:   GPL
Group:     Applications/Publishing
Buildroot: %{_tmppath}/%{name}-%{version}-root

%description
ghostscript gs interpreter

%prep
%setup -q

%build

%configure --without-x --with-ijs
perl -pi -e 's|^(GS_LIB_DEFAULT.*)$|$1:%{_datadir}/fonts/default/ghostscript:%{_
datadir}/fonts/default/Type1|' Makefile

make

%install
rm -rf   $RPM_BUILD_ROOT
make \
        datadir=$RPM_BUILD_ROOT%{_datadir} \
        gsdir=$RPM_BUILD_ROOT%{_datadir}/ghostscript \
        gsdatadir=$RPM_BUILD_ROOT%{_datadir}/ghostscript/%{version} \
        bindir=$RPM_BUILD_ROOT%{_bindir} \
        scriptdir=$RPM_BUILD_ROOT%{_bindir} \
        mandir=$RPM_BUILD_ROOT%{_mandir} \
        install

rm -rf $RPM_BUILD_ROOT%{_datadir}/ghostscript/%{version}/doc
#(
#cd $RPM_BUILD_ROOT%{_datadir}/ghostscript
#ln -s 8.15rc1 8.15
#)

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc doc/*
%{_bindir}/*
%{_datadir}/ghostscript/*/*/*
%{_mandir}/*/*

%changelog
* something
====

-- 
[email protected]

--
Taroon-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/taroon-list