| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163 |
- ##
- ## ghostscript-esp.spec -- OpenPKG RPM Specification
- ## Copyright (c) 2000-2004 The OpenPKG Project <http://www.openpkg.org/>
- ## Copyright (c) 2000-2004 Ralf S. Engelschall <rse@engelschall.com>
- ## Copyright (c) 2000-2004 Cable & Wireless <http://www.cw.com/>
- ##
- ## Permission to use, copy, modify, and distribute this software for
- ## any purpose with or without fee is hereby granted, provided that
- ## the above copyright notice and this permission notice appear in all
- ## copies.
- ##
- ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
- ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
- ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
- ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- ## SUCH DAMAGE.
- ##
- # package versions
- %define V_espgs 7.07.1
- %define V_fonts 6.0
- # package information
- Name: ghostscript-esp
- Summary: ESP Ghostscript, Postscript and PDF Rendering Engine
- URL: http://sourceforge.net/projects/espgs/
- Vendor: Easy Software Products
- Packager: The OpenPKG Project
- Distribution: OpenPKG
- Class: EVAL
- Group: Graphics
- License: GPL
- Version: %{V_espgs}
- Release: 20040715
- # package options
- %option with_cups no
- # list of sources
- Source0: http://osdn.dl.sourceforge.net/sourceforge/espgs/espgs-%{V_espgs}-source.tar.bz2
- Source1: ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/gnu/fonts/gnu-gs-fonts-std-%{V_fonts}.tar.gz
- Source2: ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/gnu/fonts/gnu-gs-fonts-other-%{V_fonts}.tar.gz
- Patch0: ghostscript-esp.patch
- # build information
- Prefix: %{l_prefix}
- BuildRoot: %{l_buildroot}
- BuildPreReq: OpenPKG, openpkg >= 20040130, X11, make, gcc
- BuildPreReq: glib, zlib, jpeg, png
- %if "%{with_cups}" == "yes"
- BuildPreReq: cups
- %endif
- PreReq: OpenPKG, openpkg >= 20040130, X11
- PreReq: glib, zlib, jpeg, png
- %if "%{with_cups}" == "yes"
- PreReq: cups
- %endif
- AutoReq: no
- AutoReqProv: no
- %description
- ESP Ghostscript is an enhanced version of GNU Ghostscript that
- includes new printer drivers and support for the Common Unix
- Printing System.
- %track
- prog ghostscript-esp = {
- version = %{version}
- url = http://prdownloads.sourceforge.net/espgs/
- regex = espgs-(\d+\.\d+\.\d+)-source\.tar\.bz2
- }
- prog ghostscript-esp:gnu-gs-fonts-other = {
- version = %{V_fonts}
- url = ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/gnu/fonts/
- regex = gnu-gs-fonts-other-(__VER__)\.tar\.gz
- }
- prog ghostscript-esp:gnu-gs-fonts-std = {
- version = %{V_fonts}
- url = ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/gnu/fonts/
- regex = gnu-gs-fonts-std-(__VER__)\.tar\.gz
- }
- %prep
- %setup -q -n espgs-%{V_espgs}
- %setup -q -n espgs-%{V_espgs} -T -D -a 1
- %setup -q -n espgs-%{V_espgs} -T -D -a 2
- %patch -p0
- %build
- CUPSCONFIG="%{l_prefix}/bin/cups-config" \
- GLIB_CONFIG="%{l_prefix}/bin/glib-config" \
- CC="%{l_cc}" \
- CXX="%{l_cxx}" \
- CFLAGS="%{l_cflags -O} %{l_cppflags}" \
- CXXFLAGS="%{l_cxxflags -O} %{l_cppflags}" \
- CPPFLAGS="%{l_cppflags}" \
- LDFLAGS="%{l_ldflags}" \
- ./configure \
- --prefix=%{l_prefix} \
- --with-x \
- --x-includes=`%{l_prefix}/etc/rc --query x11_incdir` \
- --x-libraries=`%{l_prefix}/etc/rc --query x11_libdir` \
- --with-fontpath=%{l_prefix}/share/ghostscript/fonts \
- %if "%{with_cups}" == "yes"
- --enable-cups \
- %else
- --disable-cups \
- %endif
- --without-gimp-print \
- --with-ijs
- %{l_make} %{l_mflags}
- %install
- rm -rf $RPM_BUILD_ROOT
- # adjust paths for installation
- %{l_shtool} subst -s \
- -e "s;^\(prefix =\) \(.*\)$;\1 $RPM_BUILD_ROOT\2;" \
- -e "s;^\(datadir =\) \(.*\)$;\1 $RPM_BUILD_ROOT\2;" \
- Makefile
- %{l_shtool} subst -s \
- -e "s;^\(CUPSSERVER=\)[ ]*\(.*\)$;\1$RPM_BUILD_ROOT\2;" \
- -e "s;^\(CUPSCONFIG=\)[ ]*\(.*\)$;\1$RPM_BUILD_ROOT\2;" \
- pstoraster/cups.mak
- # perform installation
- %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
- %{l_shtool} mkdir -f -p -m 755 \
- $RPM_BUILD_ROOT%{l_prefix}/share/ghostscript/fonts
- %{l_shtool} install -c -m 644 \
- fonts/* \
- $RPM_BUILD_ROOT%{l_prefix}/share/ghostscript/fonts/
- # strip installation
- rm -rf $RPM_BUILD_ROOT%{l_prefix}/man/de || true
- rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/pv.sh
- rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/fixmswrd.pl
- rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/unix-lpr.sh
- rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/pj-gs.sh
- rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/sysvlp.sh
- rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/lprsetup.sh
- strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
- # generate file list
- %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} \
- '%not %dir %{l_prefix}/libexec/cups/filter' \
- '%not %dir %{l_prefix}/libexec/cups' \
- '%not %dir %{l_prefix}/libexec'
- %files -f files
- %clean
- rm -rf $RPM_BUILD_ROOT
|