auto-import ghostscript-6.52-7 from ghostscript-6.52-7.src.rpm
This commit is contained in:
parent
906e903109
commit
a2799d0a2c
12
.cvsignore
12
.cvsignore
@ -1,15 +1,17 @@
|
|||||||
acro4-cmaps-1999.tar.gz
|
acro4-cmaps-1999.tar.gz
|
||||||
adobe-cmaps-200103.tar.gz
|
adobe-cmaps-200109.tar.gz
|
||||||
eplaseren-1.0.2-550.tgz
|
eplaseren-1.0.2-550.tgz
|
||||||
epson740.tgz
|
epson740.tgz
|
||||||
gdevmd2k-0.2a.tar.gz
|
gdevmd2k-0.2a.tar.gz
|
||||||
ghostscript-6.51-cjk.tar.gz
|
ghostscript-6.51-cjk.tar.gz
|
||||||
ghostscript-6.51.tar.bz2
|
ghostscript-6.52.tar.bz2
|
||||||
|
gimp-print-4.2.0.tar.gz
|
||||||
|
gs-hp2200.tar.gz
|
||||||
gs550j1.tar.gz
|
gs550j1.tar.gz
|
||||||
gs6.51-cjk-M2-R1.tar.gz
|
gs6.51-cjk-M2-R3.tar.gz
|
||||||
gs650-j-vlib.zip
|
gs650-j-vlib.zip
|
||||||
hpdj-2.6.tar.gz
|
hpijs-1.0.2.tar.bz2
|
||||||
jpegsrc.v6b.tar.gz
|
jpegsrc.v6b.tar.gz
|
||||||
lexmarkgs990908.tar.gz
|
lexmarkgs990908.tar.gz
|
||||||
lxm3200-0.4.1-gs5.50-src.tar.gz
|
lxm3200-0.4.1-gs5.50-src.tar.gz
|
||||||
print-4.0.5.tar.gz
|
pcl3-3.3.tar.gz
|
||||||
|
311
ghostscript.spec
311
ghostscript.spec
@ -1,41 +1,53 @@
|
|||||||
|
%define gs_ver 6.52
|
||||||
Summary: A PostScript(TM) interpreter and renderer.
|
Summary: A PostScript(TM) interpreter and renderer.
|
||||||
Name: ghostscript
|
Name: ghostscript
|
||||||
Version: 6.51
|
Version: %{gs_ver}
|
||||||
Release: 17c
|
# Remember to change gimp_release and hpijs_release before building!
|
||||||
|
Release: 7
|
||||||
|
%define gimp_ver 4.2.0
|
||||||
|
%define gimp_release 8
|
||||||
|
%define hpijs 1.0.2
|
||||||
|
%define hpijs_release 7
|
||||||
License: GPL
|
License: GPL
|
||||||
URL: http://gnu-gs.sourceforge.net/
|
URL: http://gnu-gs.sourceforge.net/
|
||||||
Group: Applications/Publishing
|
Group: Applications/Publishing
|
||||||
Source0: ftp://ftp.cs.wisc.edu/pub/ghost/gnu/gs651/%{name}-%{version}.tar.bz2
|
Source0: ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/gnu/gs652/%{name}-%{gs_ver}.tar.bz2
|
||||||
%define jpeg_ver 6b
|
%define jpeg_ver 6b
|
||||||
Source1: ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v%{jpeg_ver}.tar.gz
|
Source1: ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v%{jpeg_ver}.tar.gz
|
||||||
%define hpdj_ver 2.6
|
%define pcl3_ver 3.3
|
||||||
Source2: ftp://ftp.sbs.de/pub/graphics/ghostscript/pcl3/hpdj-%{hpdj_ver}.tar.gz
|
Source2: http://home.t-online.de/home/Martin.Lottermoser/pcl3dist/pcl3-%{pcl3_ver}.tar.gz
|
||||||
%define md2k_ver 0.2a
|
%define md2k_ver 0.2a
|
||||||
Source3: http://plaza26.mbn.or.jp/~higamasa/gdevmd2k/gdevmd2k-%{md2k_ver}.tar.gz
|
Source3: http://plaza26.mbn.or.jp/~higamasa/gdevmd2k/gdevmd2k-%{md2k_ver}.tar.gz
|
||||||
Source4: http://lcewww.et.tudelft.nl/~haver/cgi-bin/download/linux/epson740.tgz
|
Source4: http://lcewww.et.tudelft.nl/~haver/cgi-bin/download/linux/epson740.tgz
|
||||||
%define gimp_ver 4.0.5
|
Source5: http://prdownloads.sourceforge.net/gimp-print/gimp-print-%{gimp_ver}.tar.gz
|
||||||
Source5: http://prdownloads.sourceforge.net/gimp-print/print-%{gimp_ver}.tar.gz
|
|
||||||
%define lxm_ver 0.4.1-gs5.50
|
%define lxm_ver 0.4.1-gs5.50
|
||||||
Source6: http://www.geocities.com/dgordini/lxm3200-%{lxm_ver}-src.tar.gz
|
Source6: http://www.geocities.com/dgordini/lxm3200-%{lxm_ver}-src.tar.gz
|
||||||
Source7: http://www.powerup.com.au/~pbwest/lexmark/gdevlx50.c
|
Source7: http://www.powerup.com.au/~pbwest/lexmark/gdevlx50.c
|
||||||
Source8: ftp://bimbo.fjfi.cvut.cz/users/paluch/lexmarkgs/lexmarkgs990908.tar.gz
|
Source8: ftp://bimbo.fjfi.cvut.cz/users/paluch/lexmarkgs/lexmarkgs990908.tar.gz
|
||||||
# Url for gs-cjk project, the source of Source9:
|
# Url for gs-cjk project, the source of Source9:
|
||||||
# http://www.gyve.org/gs-cjk/
|
# http://www.gyve.org/gs-cjk/
|
||||||
%define cjk_ver 6.51-cjk-M2-R1
|
%define cjk_ver 6.51-cjk-M2-R3
|
||||||
Source9: ftp://ftp.gyve.org/pub/gs-cjk/M2/gs%{cjk_ver}.tar.gz
|
Source9: ftp://ftp.gyve.org/pub/gs-cjk/M2/gs%{cjk_ver}.tar.gz
|
||||||
|
# HP Ink Jet Server
|
||||||
|
Source10: http://prdownloads.sf.net/hpinkjet/hpijs-%{hpijs}.tar.bz2
|
||||||
|
# The CJK patch is for an older version of ghostscript; some patches don't
|
||||||
|
# apply cleanly to the current one. Fixed versions here...
|
||||||
|
Source100: lib_gs_cidcm.ps.patch
|
||||||
|
Source101: lib_pdf_font.ps.patch
|
||||||
%define gsj_ver gs550j1
|
%define gsj_ver gs550j1
|
||||||
Source11: %{gsj_ver}.tar.gz
|
Source11: %{gsj_ver}.tar.gz
|
||||||
# Source12 is gs6.51 friendly contrib.mak-add for gsj
|
# Source12 is gs6.51 friendly contrib.mak-add for gsj
|
||||||
Source12: contrib.mak-gsj651.add
|
Source12: contrib.mak-gsj651.add
|
||||||
Source13: ftp://ftp.gyve.org/pub/gs-cjk/adobe-cmaps-200103.tar.gz
|
Source13: ftp://ftp.gyve.org/pub/gs-cjk/adobe-cmaps-200109.tar.gz
|
||||||
%define vflib_ver gs650
|
%define vflib_ver gs650
|
||||||
Source15: ftp://ftp.u-aizu.ac.jp/pub/tex/ptex-win32/WEB2C7.3/%{vflib_ver}-j-vlib.zip
|
Source15: ftp://ftp.u-aizu.ac.jp/pub/tex/ptex-win32/gs/%{vflib_ver}-j-vlib.zip
|
||||||
Source16: ftp://ftp.gyve.org/pub/gs-cjk/acro4-cmaps-1999.tar.gz
|
Source16: ftp://ftp.gyve.org/pub/gs-cjk/acro4-cmaps-1999.tar.gz
|
||||||
Source17: gdevgdi.c
|
Source17: gdevgdi.c
|
||||||
Source18: http://www.epkowa.on.arena.ne.jp/pips/data/2050/eplaseren-1.0.2-550.tgz
|
Source18: http://www.epkowa.on.arena.ne.jp/pips/data/2050/eplaseren-1.0.2-550.tgz
|
||||||
|
Source19: http://hp.sourceforge.net/gs-hp2200.tar.gz
|
||||||
Source20: ghostscript-6.51-cjk.tar.gz
|
Source20: ghostscript-6.51-cjk.tar.gz
|
||||||
Patch0: ghostscript-6.51-config.patch
|
Patch0: ghostscript-6.52-config.patch
|
||||||
Patch1: ghostscript-6.51-linuxtime.patch
|
Patch1: ghostscript-6.52-quoting.patch
|
||||||
Patch2: ghostscript-6.51-mkstemp.patch
|
Patch2: ghostscript-6.51-mkstemp.patch
|
||||||
Patch3: ghostscript-6.51-gcc296.patch
|
Patch3: ghostscript-6.51-gcc296.patch
|
||||||
# Patch5 is gs6.51 friendly patch for gsj
|
# Patch5 is gs6.51 friendly patch for gsj
|
||||||
@ -56,20 +68,24 @@ Patch20: ghostscript-6.51-PARANOIDSAFER.patch
|
|||||||
Patch21: ghostscript-6.51-Omni.090501.update.patch
|
Patch21: ghostscript-6.51-Omni.090501.update.patch
|
||||||
Patch22: ghostscript-6.51-Omni_path.patch
|
Patch22: ghostscript-6.51-Omni_path.patch
|
||||||
Patch23: ghostscript-6.51-Omni_quiet.patch
|
Patch23: ghostscript-6.51-Omni_quiet.patch
|
||||||
|
Patch24: ghostscript-6.53-scripts.patch
|
||||||
|
|
||||||
|
# Gimp-print patches
|
||||||
|
Patch100: gimp-print-4.2.0-sysconf.patch
|
||||||
|
|
||||||
# I dont think this patch is needed anymore, so it is not applied.
|
# I dont think this patch is needed anymore, so it is not applied.
|
||||||
# but I might be wrong, and dont really understand it, so it is still
|
# but I might be wrong, and dont really understand it, so it is still
|
||||||
# included. -Crutcher
|
# included. -Crutcher
|
||||||
Patch11: gs5.50-rth.patch
|
Patch11: gs5.50-rth.patch
|
||||||
|
|
||||||
# xtt-fonts -> ttfonts-ja
|
Requires: VFlib2, zlib, libpng, glib
|
||||||
Requires: VFlib2, ttfonts-ja, zlib, libpng, glib
|
|
||||||
Requires: urw-fonts >= 1.1, ghostscript-fonts
|
Requires: urw-fonts >= 1.1, ghostscript-fonts
|
||||||
Requires: Omni
|
Requires: Omni
|
||||||
BuildRequires: zlib, zlib-devel, libpng, libpng-devel
|
BuildRequires: zlib, zlib-devel, libpng, libpng-devel
|
||||||
BuildRequires: VFlib2-devel, glib-devel, XFree86-devel
|
BuildRequires: VFlib2-devel, glib-devel, XFree86-devel
|
||||||
|
BuildRequires: cups-devel >= 1.1.13
|
||||||
BuildPreReq: freetype-devel
|
BuildPreReq: freetype-devel
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
BuildRoot: %{_tmppath}/%{name}-%{gs_ver}-root
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Ghostscript is a set of software that provides a PostScript(TM)
|
Ghostscript is a set of software that provides a PostScript(TM)
|
||||||
@ -86,27 +102,55 @@ non-PostScript printers, you should install ghostscript. If you
|
|||||||
install ghostscript, you also need to install the ghostscript-fonts
|
install ghostscript, you also need to install the ghostscript-fonts
|
||||||
package.
|
package.
|
||||||
|
|
||||||
|
%package -n hpijs
|
||||||
|
Version: %{hpijs}
|
||||||
|
Release: %{hpijs_release}
|
||||||
|
Summary: HP Printer Drivers
|
||||||
|
Requires: %{name}
|
||||||
|
Group: Applications/Publishing
|
||||||
|
|
||||||
|
%description -n hpijs
|
||||||
|
hpijs is a collection of optimized drivers for HP printers.
|
||||||
|
hpijs supports the DeskJet 350C, 600C, 600C Photo, 630C, Apollo 2000,
|
||||||
|
Apollo 2100, Apollo 2560, DeskJet 800C, DeskJet 825, DeskJet 900,
|
||||||
|
PhotoSmart, DeskJet 990C and PhotoSmart 100 series.
|
||||||
|
|
||||||
|
%package -n gimp-print-cups
|
||||||
|
Version: %{gimp_ver}
|
||||||
|
Release: %{gimp_release}
|
||||||
|
Summary: CUPS drivers for Canon, Epson, HP and compatible printers
|
||||||
|
Requires: cups >= 1.1.12
|
||||||
|
Group: Applications/Publishing
|
||||||
|
|
||||||
|
%description -n gimp-print-cups
|
||||||
|
gimp-print-cups provides native CUPS support for a wide range of Canon,
|
||||||
|
Epson, HP and compatible printers.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q -a 10
|
||||||
|
|
||||||
# Set up the jpeg library
|
# Set up the jpeg library
|
||||||
tar xzf %{SOURCE1}
|
tar xzf %{SOURCE1}
|
||||||
ln -s jpeg-%{jpeg_ver} jpeg
|
ln -s jpeg-%{jpeg_ver} jpeg
|
||||||
|
|
||||||
|
|
||||||
# Setting linux as a platform that needs <time.h> AND <sys/time.h>
|
|
||||||
%patch1 -p1 -b .linuxtime
|
|
||||||
|
|
||||||
# Patch to use mkstemp for making temp files, for security
|
# Patch to use mkstemp for making temp files, for security
|
||||||
%patch2 -p1 -b .mkstemp
|
%patch2 -p1 -b .mkstemp
|
||||||
|
|
||||||
# Apply the gs-cjk patches
|
# Apply the gs-cjk patches
|
||||||
tar xzf %{SOURCE9}
|
tar xzf %{SOURCE9}
|
||||||
(cd gs%{cjk_ver}; rm src_time_.h.patch \
|
(cd gs%{cjk_ver}; cp -f %{SOURCE100} %{SOURCE101} .
|
||||||
|
rm src_time_.h.patch \
|
||||||
src_unix-gcc.mak.patch \
|
src_unix-gcc.mak.patch \
|
||||||
src_gp_unifs.c.patch
|
src_gp_unifs.c.patch \
|
||||||
|
lib_gs_res.ps.patch \
|
||||||
|
lib_pdf_ops.ps.patch \
|
||||||
|
src_zfont42.c.patch
|
||||||
)
|
)
|
||||||
cat gs%{cjk_ver}/*.patch | patch -p0 -b -V simple -z .cjk
|
a="0"
|
||||||
|
for i in gs%{cjk_ver}/*.patch; do
|
||||||
|
cat $i |patch -p0 -b -V simple -z .cjk$a
|
||||||
|
a=`expr $a + 1`
|
||||||
|
done
|
||||||
|
|
||||||
# Create a Resource directory
|
# Create a Resource directory
|
||||||
%patch13 -p1 -b .res_path
|
%patch13 -p1 -b .res_path
|
||||||
@ -141,6 +185,7 @@ package.
|
|||||||
# system, and so we have to actually change the file.
|
# system, and so we have to actually change the file.
|
||||||
#
|
#
|
||||||
%patch0 -p1 -b .config
|
%patch0 -p1 -b .config
|
||||||
|
%patch1 -p1 -b .quoting
|
||||||
# Includes japanese changes
|
# Includes japanese changes
|
||||||
%patch10 -p1 -b .config.kfvflib
|
%patch10 -p1 -b .config.kfvflib
|
||||||
|
|
||||||
@ -195,7 +240,7 @@ package.
|
|||||||
%patch5 -p1 -b .gsj
|
%patch5 -p1 -b .gsj
|
||||||
|
|
||||||
# Repair the gsj code
|
# Repair the gsj code
|
||||||
%patch6 -p1 -b ._ds
|
#%patch6 -p1 -b ._ds ## MOVED TO AFTER CHP2200
|
||||||
%patch7 -p1 -b .gx_device
|
%patch7 -p1 -b .gx_device
|
||||||
%patch8 -p1 -b .gsj_update
|
%patch8 -p1 -b .gsj_update
|
||||||
|
|
||||||
@ -231,33 +276,57 @@ package.
|
|||||||
# Turn off the debugging output from the gomni driver
|
# Turn off the debugging output from the gomni driver
|
||||||
%patch23 -p1 -b .Omni_quiet
|
%patch23 -p1 -b .Omni_quiet
|
||||||
|
|
||||||
|
# Fix some shell scripts
|
||||||
|
%patch24 -p1 -b .scripts
|
||||||
|
|
||||||
# Turn on HP's hpijs print driver interface
|
|
||||||
GS_DEVS=$GS_DEVS'$(DD)hpijs.dev $(DD)DJ630.dev $(DD)DJ6xx.dev '
|
|
||||||
GS_DEVS=$GS_DEVS'$(DD)DJ6xxP.dev $(DD)DJ8xx.dev $(DD)DJ9xx.dev '
|
|
||||||
GS_DEVS=$GS_DEVS'$(DD)DJ9xxVIP.dev $(DD)AP21xx.dev '
|
|
||||||
|
|
||||||
# the following hpijs device got missed in gs6.51
|
# Copy in and turn on HP's hpijs print driver interface
|
||||||
echo '
|
for i in gdevijs.c gdevijs.h ijs.c ijs.h ijs_client.c ijs_client.h \
|
||||||
### ----------------------- HP hpijs device ------------------ ###
|
ijs_exec_unix.c unistd_.h; do
|
||||||
|
ln -f hpijs-%{hpijs}/$i src
|
||||||
|
done
|
||||||
|
echo '
|
||||||
|
### ------------- IJS Interface -------------- ###
|
||||||
|
ijs_=$(GLOBJ)gdevijs.$(OBJ) $(GLOBJ)ijs_client.$(OBJ) $(GLOBJ)ijs_exec_unix.$(OBJ) $(GLOBJ)ijs.$(OBJ)
|
||||||
|
|
||||||
|
$(GLOBJ)ijs_client.$(OBJ) : $(GLSRC)ijs_client.c $(PDEVH)
|
||||||
|
$(GLCC) $(GLO_)ijs_client.$(OBJ) $(C_) $(GLSRC)ijs_client.c
|
||||||
|
|
||||||
|
$(GLOBJ)ijs_exec_unix.$(OBJ) : $(GLSRC)ijs_exec_unix.c $(PDEVH)
|
||||||
|
$(GLCC) $(GLO_)ijs_exec_unix.$(OBJ) $(C_) $(GLSRC)ijs_exec_unix.c
|
||||||
|
|
||||||
|
$(GLOBJ)ijs.$(OBJ) : $(GLSRC)ijs.c $(PDEVH)
|
||||||
|
$(GLCC) $(GLO_)ijs.$(OBJ) $(C_) $(GLSRC)ijs.c
|
||||||
|
|
||||||
|
$(GLOBJ)gdevijs.$(OBJ) : $(GLSRC)gdevijs.c $(PDEVH)
|
||||||
|
$(GLCC) $(GLO_)gdevijs.$(OBJ) $(C_) $(GLSRC)gdevijs.c
|
||||||
|
|
||||||
|
$(DD)ijs.dev : $(ijs_) $(DD)page.dev
|
||||||
|
$(SETPDEV) $(DD)ijs $(ijs_)
|
||||||
|
|
||||||
|
### ------------------ Old style HP hpijs device ------------- ###
|
||||||
$(DD)hpijs.dev : $(hpijs_) $(DD)page.dev
|
$(DD)hpijs.dev : $(hpijs_) $(DD)page.dev
|
||||||
$(SETPDEV) $(DD)hpijs $(hpijs_)
|
$(SETPDEV) $(DD)hpijs $(hpijs_)
|
||||||
|
' >>src/contrib.mak
|
||||||
|
|
||||||
' >> src/contrib.mak
|
GS_DEVS=$GS_DEVS'$(DD)ijs.dev $(DD)hpijs.dev $(DD)DJ630.dev '
|
||||||
|
GS_DEVS=$GS_DEVS'$(DD)DJ6xx.dev $(DD)DJ6xxP.dev $(DD)DJ8xx.dev '
|
||||||
|
GS_DEVS=$GS_DEVS'$(DD)DJ9xx.dev $(DD)DJ9xxVIP.dev $(DD)AP21xx.dev '
|
||||||
|
|
||||||
|
# the following hpijs device got missed in gs6.51
|
||||||
|
|
||||||
# update from hpijs 0.96 to 0.97
|
# update from hpijs 0.96 to 0.97
|
||||||
sed -e 's/DESKJET_MARGINS_LETTER 0.25, 0.44, -0.25, 0.33/DESKJET_MARGINS_LETTER 0.25, 0.44, -0.25, 0.167/' < src/gdevhpij.c > src/gdevhpij.c.tmp
|
sed -e 's/DESKJET_MARGINS_LETTER 0.25, 0.44, -0.25, 0.33/DESKJET_MARGINS_LETTER 0.25, 0.44, -0.25, 0.167/' < src/gdevhpij.c > src/gdevhpij.c.tmp
|
||||||
mv src/gdevhpij.c.tmp src/gdevhpij.c
|
mv src/gdevhpij.c.tmp src/gdevhpij.c
|
||||||
|
|
||||||
# Add hpdj driver support for some other HP printers
|
# Add pcl3 driver support for some other HP printers
|
||||||
mkdir hpdj
|
tar xzfO %{SOURCE2} pcl3-%{pcl3_ver}/pcl3.tar | tar xf -
|
||||||
tar xzfO %{SOURCE2} hpdj-%{hpdj_ver}/hpdj.tar | tar xf - -C hpdj
|
mv doc/*.1 man
|
||||||
mv hpdj/*.c hpdj/*.h src/
|
|
||||||
mv hpdj/*.1 man
|
|
||||||
|
|
||||||
# update the make files
|
# update the make files
|
||||||
GS_DEVS=$GS_DEVS'$(DD)hpdj.dev '
|
GS_DEVS=$GS_DEVS'$(DD)pcl3.dev '
|
||||||
cat hpdj/contrib.mak-5.94.add >> src/contrib.mak
|
ln -s . pcl3
|
||||||
|
cat src/contrib.mak-6.51.add >> src/contrib.mak
|
||||||
|
|
||||||
|
|
||||||
# Add support for ALPS printers
|
# Add support for ALPS printers
|
||||||
@ -276,11 +345,18 @@ $(DD)hpijs.dev : $(hpijs_) $(DD)page.dev
|
|||||||
|
|
||||||
# Add the gimp-print stp driver
|
# Add the gimp-print stp driver
|
||||||
tar xzf %{SOURCE5}
|
tar xzf %{SOURCE5}
|
||||||
mv print-%{gimp_ver}/Ghost/*.[ch] src/
|
cd gimp-print-%{gimp_ver}
|
||||||
|
%patch100 -p1 -b .sysconf
|
||||||
|
./configure --prefix=/usr --without-gimp --with-ghost
|
||||||
|
make
|
||||||
|
# Fix usage of undefined macros
|
||||||
|
perl -pi -e 's,VERSION,"4.2.0",g;s,RELEASE_DATE,"%{name}-%{gs_ver}-%{release}",g' src/ghost/gdevstp-ps.c src/ghost/gdevstp-util.c
|
||||||
|
ln src/ghost/*.[ch] include/gimp-print/*.h ../src/
|
||||||
|
|
||||||
# update the make files
|
# update the make files
|
||||||
GS_DEVS=$GS_DEVS'$(DD)stp.dev '
|
GS_DEVS=$GS_DEVS'$(DD)stp.dev '
|
||||||
cat print-%{gimp_ver}/Ghost/contrib.mak.addon >> src/contrib.mak
|
cat src/ghost/contrib.mak.addon.old >> ../src/contrib.mak
|
||||||
|
cd ..
|
||||||
|
|
||||||
|
|
||||||
# Add Daniel Gordini's lxm3200 driver
|
# Add Daniel Gordini's lxm3200 driver
|
||||||
@ -384,6 +460,21 @@ $(DD)gdi.dev: $(GDIMONO) $(DD)page.dev
|
|||||||
GS_DEVS=$GS_DEVS'$(DD)alc8500.dev $(DD)alc2000.dev '
|
GS_DEVS=$GS_DEVS'$(DD)alc8500.dev $(DD)alc2000.dev '
|
||||||
cat src/eplaser/*.mak >> src/contrib.mak
|
cat src/eplaser/*.mak >> src/contrib.mak
|
||||||
|
|
||||||
|
# Add CHP2200 driver (bug #57516).
|
||||||
|
mkdir chp2200
|
||||||
|
tar zxf %{SOURCE19} -C chp2200
|
||||||
|
cp chp2200/gdevcd8.c src/
|
||||||
|
GS_DEVS=$GS_DEVS'$(DD)chp2200.dev '
|
||||||
|
echo '
|
||||||
|
|
||||||
|
# CHP2200 driver (http://hp.sourceforge.net/gs-hp2200.php)
|
||||||
|
$(DD)chp2200.dev : $(cdeskjet8_) $(DD)page.dev
|
||||||
|
$(SETPDEV2) $(DD)chp2200 $(cdeskjet8_)
|
||||||
|
|
||||||
|
' >> src/contrib.mak
|
||||||
|
|
||||||
|
# Repair the gsj code
|
||||||
|
%patch6 -p1 -b ._ds
|
||||||
|
|
||||||
# Patch to make gcc296 happier
|
# Patch to make gcc296 happier
|
||||||
%patch3 -p1 -b .gcc296
|
%patch3 -p1 -b .gcc296
|
||||||
@ -404,17 +495,33 @@ $(DD)gdi.dev: $(GDIMONO) $(DD)page.dev
|
|||||||
sed -e "s/_XXX_RPM_GS_DEVICES_XXX_/$GS_DEVS/;" src/unix-gcc.mak > Makefile
|
sed -e "s/_XXX_RPM_GS_DEVICES_XXX_/$GS_DEVS/;" src/unix-gcc.mak > Makefile
|
||||||
|
|
||||||
%build
|
%build
|
||||||
make RPM_OPT_FLAGS="$RPM_OPT_FLAGS" prefix=/usr
|
make RPM_OPT_FLAGS="$RPM_OPT_FLAGS" prefix=%{_prefix}
|
||||||
|
|
||||||
|
# Build the IJS server
|
||||||
|
cd hpijs-%{hpijs}
|
||||||
|
%configure
|
||||||
|
make
|
||||||
|
cd ..
|
||||||
|
|
||||||
|
# Build gimp-print again to get native CUPS support
|
||||||
|
cd gimp-print-%{gimp_ver}
|
||||||
|
%configure --prefix=%{_prefix} --without-gimp --without-ghost --with-cups
|
||||||
|
make
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
mkdir -p $RPM_BUILD_ROOT
|
mkdir -p $RPM_BUILD_ROOT
|
||||||
mkdir -p $RPM_BUILD_ROOT/{%{_mandir},%{_bindir},%{_datadir},%{_docdir}}
|
mkdir -p $RPM_BUILD_ROOT/{%{_mandir},%{_bindir},%{_datadir},%{_docdir}}
|
||||||
make install prefix=$RPM_BUILD_ROOT/usr \
|
make install prefix=$RPM_BUILD_ROOT%{_prefix} \
|
||||||
mandir=$RPM_BUILD_ROOT/%{_mandir} \
|
mandir=$RPM_BUILD_ROOT%{_mandir} \
|
||||||
datadir=$RPM_BUILD_ROOT/%{_datadir} \
|
datadir=$RPM_BUILD_ROOT%{_datadir} \
|
||||||
bindir=$RPM_BUILD_ROOT/%{_bindir} \
|
bindir=$RPM_BUILD_ROOT%{_bindir} \
|
||||||
docdir=$RPM_BUILD_ROOT/%{_docdir}/%{name}-%{version}
|
docdir=$RPM_BUILD_ROOT%{_docdir}/%{name}-%{gs_ver}
|
||||||
|
cd hpijs-%{hpijs}
|
||||||
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
cd ../gimp-print-%{gimp_ver}
|
||||||
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
cd ..
|
||||||
|
|
||||||
ln -sf gs.1.gz $RPM_BUILD_ROOT/%{_mandir}/man1/ghostscript.1.gz
|
ln -sf gs.1.gz $RPM_BUILD_ROOT/%{_mandir}/man1/ghostscript.1.gz
|
||||||
ln -sf gs $RPM_BUILD_ROOT/usr/bin/ghostscript
|
ln -sf gs $RPM_BUILD_ROOT/usr/bin/ghostscript
|
||||||
@ -422,30 +529,112 @@ ln -sf gs $RPM_BUILD_ROOT/usr/bin/ghostscript
|
|||||||
cp -a Resource $RPM_BUILD_ROOT/usr/share/ghostscript/
|
cp -a Resource $RPM_BUILD_ROOT/usr/share/ghostscript/
|
||||||
|
|
||||||
MAIN_PWD=`pwd`
|
MAIN_PWD=`pwd`
|
||||||
(cd $RPM_BUILD_ROOT; find ./usr/share/ghostscript/%{version}/{lib,vflib,examples}/* | \
|
(cd $RPM_BUILD_ROOT; find ./usr/share/ghostscript/%{gs_ver}/lib/* | \
|
||||||
sed -e 's/\.//;' | grep -v lib/Fontmap* | grep -v gs_init.ps > $MAIN_PWD/rpm.sharelist)
|
sed -e 's/\.//;' | grep -v lib/Fontmap* | grep -v gs_init.ps > $MAIN_PWD/rpm.sharelist)
|
||||||
|
|
||||||
|
# Don't ship sysvlp.sh.
|
||||||
|
rm -f $RPM_BUILD_ROOT/usr/bin/sysvlp.sh
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
%post -n gimp-print-cups
|
||||||
|
/sbin/install-info /usr/share/info/gimpprint.info.gz /usr/share/info/dir
|
||||||
|
/sbin/ldconfig
|
||||||
|
|
||||||
|
%preun -n gimp-print-cups
|
||||||
|
if [ $1 = 0 ]; then
|
||||||
|
/sbin/install-info --delete /usr/share/info/gimpprint.info.gz /usr/share/info/dir
|
||||||
|
fi
|
||||||
|
|
||||||
|
%postun -n gimp-print-cups
|
||||||
|
if [ "$1" -ge "1" ]; then
|
||||||
|
/sbin/service cups condrestart >/dev/null 2>&1
|
||||||
|
fi
|
||||||
|
/sbin/ldconfig
|
||||||
|
|
||||||
%files -f rpm.sharelist
|
%files -f rpm.sharelist
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
/usr/bin/*
|
%{_bindir}/*
|
||||||
%dir /usr/share/ghostscript
|
%dir %{_datadir}/ghostscript
|
||||||
%dir /usr/share/ghostscript/Resource
|
%dir %{_datadir}/ghostscript/%{gs_ver}
|
||||||
%dir /usr/share/ghostscript/%{version}
|
%dir %{_datadir}/ghostscript/%{gs_ver}/lib
|
||||||
%dir /usr/share/ghostscript/%{version}/lib
|
%config %{_datadir}/ghostscript/%{gs_ver}/lib/gs_init.ps
|
||||||
%dir /usr/share/ghostscript/%{version}/vflib
|
%config %{_datadir}/ghostscript/%{gs_ver}/lib/Fontmap*
|
||||||
%dir /usr/share/ghostscript/%{version}/examples
|
%{_datadir}/ghostscript/Resource/
|
||||||
%config /usr/share/ghostscript/%{version}/lib/gs_init.ps
|
%{_datadir}/ghostscript/%{gs_ver}/vflib
|
||||||
%config /usr/share/ghostscript/%{version}/lib/Fontmap*
|
%{_datadir}/ghostscript/%{gs_ver}/examples
|
||||||
/usr/share/ghostscript/Resource/*
|
|
||||||
%{_mandir}/*/*
|
%{_mandir}/*/*
|
||||||
|
%doc %{_docdir}/%{name}-%{gs_ver}
|
||||||
|
|
||||||
|
%files -n hpijs
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{_bindir}/hpijs
|
||||||
|
%{_docdir}/hpijs-%{hpijs}
|
||||||
|
|
||||||
|
%files -n gimp-print-cups
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{_includedir}/gimp-print
|
||||||
|
%{_mandir}/man1/gimpprint-config.1*
|
||||||
|
%{_mandir}/man3/gimpprint.3*
|
||||||
|
%{_mandir}/man8/cups-calibrate.8*
|
||||||
|
%{_libdir}/libgimpprint*
|
||||||
|
%{_libdir}/cups/backend/*
|
||||||
|
%{_libdir}/cups/filter/*
|
||||||
|
%{_bindir}/gimpprint-config
|
||||||
|
%{_bindir}/escputil
|
||||||
|
%{_bindir}/cups-calibrate
|
||||||
|
%{_datadir}/aclocal/gimpprint.m4
|
||||||
|
%{_datadir}/cups/calibrate.ppm
|
||||||
|
%{_datadir}/cups/model/*/*
|
||||||
|
%{_datadir}/gimp-print
|
||||||
|
%{_infodir}/gimpprint*
|
||||||
|
%config %{_sysconfdir}/cups/*
|
||||||
|
%lang(en_GB) %{_datadir}/locale/en_GB/LC_MESSAGES/gimp-print.mo
|
||||||
|
%lang(sv) %{_datadir}/locale/sv/LC_MESSAGES/gimp-print.mo
|
||||||
|
%lang(no) %{_datadir}/locale/no/LC_MESSAGES/gimp-print.mo
|
||||||
|
%lang(fr) %{_datadir}/locale/fr/LC_MESSAGES/gimp-print.mo
|
||||||
|
%lang(da) %{_datadir}/locale/da/LC_MESSAGES/gimp-print.mo
|
||||||
|
%lang(pl) %{_datadir}/locale/pl/LC_MESSAGES/gimp-print.mo
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Thu Nov 29 2001 Leon Ho <llch@redhat.com> 6.51-17c
|
* Wed Apr 3 2002 Tim Waugh <twaugh@redhat.com> 6.52-7
|
||||||
- Reapply-
|
- Fix release numbers of sub packages.
|
||||||
- added new CIDFonts for zh_TW, zh_CN
|
- Handle info files, use ldconfig (bug #62574).
|
||||||
|
|
||||||
|
* Tue Mar 19 2002 Tim Waugh <twaugh@redhat.com> 6.52-6
|
||||||
|
- Fix config patch so that gs --help displays the right thing.
|
||||||
|
- Don't ship sysvlp.sh.
|
||||||
|
- Fix some shell scripts.
|
||||||
|
- Ship escputil man page (bug #58919).
|
||||||
|
|
||||||
|
* Mon Feb 11 2002 Tim Waugh <twaugh@redhat.com> 6.52-5
|
||||||
|
- Add CHP2200 driver (bug #57516).
|
||||||
|
- Fix gimp-print-4.2.0 so that it builds without cups-config.
|
||||||
|
|
||||||
|
* Sat Feb 2 2002 Bill Nottingham <notting@redhat.com> 6.52-4
|
||||||
|
- do condrestart in %postun, not %post
|
||||||
|
|
||||||
|
* Fri Feb 1 2002 Bernhard Rosenkraenzer <bero@redhat.com> 6.52-3
|
||||||
|
- Restart service cups after installing gimp-print-cups
|
||||||
|
|
||||||
|
* Sun Jan 27 2002 Bernhard Rosenkraenzer <bero@redhat.com> 6.52-2
|
||||||
|
- hpijs is finally free - support it.
|
||||||
|
- Add extra package for CUPS support
|
||||||
|
|
||||||
|
* Mon Jan 21 2002 Bernhard Rosenkraenzer <bero@redhat.com> 6.52-1
|
||||||
|
- Updates:
|
||||||
|
- ghostscript 6.52
|
||||||
|
- hpdj 2.6 -> pcl3 3.3
|
||||||
|
- CJK Patchlevel 3, adobe-cmaps 200109
|
||||||
|
- gimp-print 4.2.0
|
||||||
|
- Adapt patches
|
||||||
|
- Fix various URLs
|
||||||
|
- Begin cleaning up spec file
|
||||||
|
- Fix bugs #21879 and #50923
|
||||||
|
|
||||||
|
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
|
||||||
|
- automated rebuild
|
||||||
|
|
||||||
* Thu Oct 18 2001 Crutcher Dunnavant <crutcher@redhat.com> 6.51-16
|
* Thu Oct 18 2001 Crutcher Dunnavant <crutcher@redhat.com> 6.51-16
|
||||||
- update the Omni driver, and patch it to seek in /usr/lib/Omni/ first
|
- update the Omni driver, and patch it to seek in /usr/lib/Omni/ first
|
||||||
|
14
sources
14
sources
@ -1,15 +1,17 @@
|
|||||||
2919cf239c2d090cf4c21c890aed860e acro4-cmaps-1999.tar.gz
|
2919cf239c2d090cf4c21c890aed860e acro4-cmaps-1999.tar.gz
|
||||||
3ff23ba3f0b820fdb47eb925af35f798 adobe-cmaps-200103.tar.gz
|
95ced0f35e107899ce11e8689e9cbdff adobe-cmaps-200109.tar.gz
|
||||||
911c7865a83a69135417989dee53f8fc eplaseren-1.0.2-550.tgz
|
911c7865a83a69135417989dee53f8fc eplaseren-1.0.2-550.tgz
|
||||||
2c6ebfe51cab34ee61e3dd524c8640cc epson740.tgz
|
2c6ebfe51cab34ee61e3dd524c8640cc epson740.tgz
|
||||||
5ed2b4218b8f77cb411f3d2e4509ed24 gdevmd2k-0.2a.tar.gz
|
5ed2b4218b8f77cb411f3d2e4509ed24 gdevmd2k-0.2a.tar.gz
|
||||||
20852f4ebe022c831550674391ff3a1c ghostscript-6.51-cjk.tar.gz
|
ce48f1be1c9a0b8e468b258bc61a98db ghostscript-6.51-cjk.tar.gz
|
||||||
6b6d2123daaa1d217aadcbba7f2d6179 ghostscript-6.51.tar.bz2
|
5a1b698b8fbece1e23e4d8d9ff552762 ghostscript-6.52.tar.bz2
|
||||||
|
4350e2ac1f27eccad0d7ce2aab90cdf6 gimp-print-4.2.0.tar.gz
|
||||||
|
cafe60c0003abe370579f9bfb1d27caa gs-hp2200.tar.gz
|
||||||
d202cd105c496b7f0eb5221316fb7b7f gs550j1.tar.gz
|
d202cd105c496b7f0eb5221316fb7b7f gs550j1.tar.gz
|
||||||
78d6761aab82e70f9c7ee3a1afd72aba gs6.51-cjk-M2-R1.tar.gz
|
6f8e90effe12527a4c3b36ea4ce47b3c gs6.51-cjk-M2-R3.tar.gz
|
||||||
57e2ef257be06ea370f1b28b7c383c94 gs650-j-vlib.zip
|
57e2ef257be06ea370f1b28b7c383c94 gs650-j-vlib.zip
|
||||||
dcc402281f36afd2041144e0e97917be hpdj-2.6.tar.gz
|
153a27cd7b40fec2fc93a90c0381b4d1 hpijs-1.0.2.tar.bz2
|
||||||
dbd5f3b47ed13132f04c685d608a7547 jpegsrc.v6b.tar.gz
|
dbd5f3b47ed13132f04c685d608a7547 jpegsrc.v6b.tar.gz
|
||||||
aea08da4e37ab68ed6f1dc451f24b30b lexmarkgs990908.tar.gz
|
aea08da4e37ab68ed6f1dc451f24b30b lexmarkgs990908.tar.gz
|
||||||
ec11b9ef72ecaabb61eeba27e93f9f2b lxm3200-0.4.1-gs5.50-src.tar.gz
|
ec11b9ef72ecaabb61eeba27e93f9f2b lxm3200-0.4.1-gs5.50-src.tar.gz
|
||||||
2eae88b9285d47036d31974fd2b0abc2 print-4.0.5.tar.gz
|
34e664c2a98b847598f8441f8cac7ab6 pcl3-3.3.tar.gz
|
||||||
|
Loading…
Reference in New Issue
Block a user