auto-import ghostscript-6.51-5 from ghostscript-6.51-5.src.rpm

This commit is contained in:
cvsdist 2004-09-09 05:09:52 +00:00
parent c7670ff698
commit 10c1736729
3 changed files with 364 additions and 163 deletions

View File

@ -1,11 +1,14 @@
acro4-cmaps-1999.tar.gz
adobe-cmaps-200103.tar.gz
epson740.tgz epson740.tgz
gdevmd2k-0.2a.tar.gz gdevmd2k-0.2a.tar.gz
ghostscript-5.50gnu.tar.gz ghostscript-6.51-cjk.tar.gz
gnu-gs-5.50.tar.gz ghostscript-6.51.tar.bz2
gnu-gs-5.50jpeg.tar.gz
gs5.50-vflib-1.0.tar.gz
gs550j1.tar.gz gs550j1.tar.gz
hp8xxs13.zip gs6.51-cjk-M2-R1.tar.gz
gs650-j-vlib.zip
hpdj-2.6.tar.gz hpdj-2.6.tar.gz
jpegsrc.v6b.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.0a3.tar.gz print-4.0.5.tar.gz

View File

@ -1,209 +1,404 @@
%define enable_japanese 1
%define vflib gs5.50-vflib-1.0
%define gsj gs550j1
Summary: A PostScript(TM) interpreter and renderer. Summary: A PostScript(TM) interpreter and renderer.
Name: ghostscript Name: ghostscript
%define hpdjver 2.6 Version: 6.51
%define md2kver 0.2a Release: 5
Version: 5.50
Release: 19.rh7.1
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/gs550/gnu-gs-%{version}.tar.gz Source0: ftp://ftp.cs.wisc.edu/pub/ghost/gnu/gs651/%{name}-%{version}.tar.bz2
Source1: ftp://ftp.cs.wisc.edu/pub/ghost/gnu/gs550/gnu-gs-%{version}jpeg.tar.gz %define jpeg_ver 6b
Source2: http://www.erdw.ethz.ch/~bonk/ftp/gs-driver-distrib/hp8xxs13.zip Source1: ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v%{jpeg_ver}.tar.gz
Source3: ftp://ftp.sbs.de/pub/graphics/ghostscript/pcl3/hpdj-%{hpdjver}.tar.gz %define hpdj_ver 2.6
Source4: ftp://ftp.cs.wisc.edu/pub/ghost/aladdin/gs550/ghostscript-%{version}gnu.tar.gz Source2: ftp://ftp.sbs.de/pub/graphics/ghostscript/pcl3/hpdj-%{hpdj_ver}.tar.gz
Source5: http://plaza26.mbn.or.jp/~higamasa/gdevmd2k/gdevmd2k-%{md2kver}.tar.gz %define md2k_ver 0.2a
Source6: http://lcewww.et.tudelft.nl/~haver/cgi-bin/download/linux/epson740.tgz Source3: http://plaza26.mbn.or.jp/~higamasa/gdevmd2k/gdevmd2k-%{md2k_ver}.tar.gz
Source10: http://www.ldl.jaist.ac.jp/~akr/nonresearch/free-software/ghostscript/%{vflib}.tar.gz Source4: http://lcewww.et.tudelft.nl/~haver/cgi-bin/download/linux/epson740.tgz
Source11: %{gsj}.tar.gz %define gimp_ver 4.0.5
Source12: http://download.sourceforge.net/gimp-print/print-4.0a3.tar.gz Source5: http://prdownloads.sourceforge.net/gimp-print/print-%{gimp_ver}.tar.gz
Source13: http://www.geocities.com/dgordini/lxm3200-0.4.1-gs5.50-src.tar.gz %define lxm_ver 0.4.1-gs5.50
Patch0: ghostscript-5.50-config.patch Source6: http://www.geocities.com/dgordini/lxm3200-%{lxm_ver}-src.tar.gz
Patch1: gs5.50-rth.patch Source7: http://www.powerup.com.au/~pbwest/lexmark/gdevlx50.c
Patch3: gs5.50-hp8xx.patch Source8: ftp://bimbo.fjfi.cvut.cz/users/paluch/lexmarkgs/lexmarkgs990908.tar.gz
Patch4: gs5.50-hpdj.patch # Url for gs-cjk project, the source of Source9:
# Location of files used to generate patch 5: # http://www.gyve.org/gs-cjk/
# http://www.ultranet.com/~setaylor/papers.htm %define cjk_ver 6.51-cjk-M2-R1
Patch5: gs5.50-lexmark5700.patch Source9: ftp://ftp.gyve.org/pub/gs-cjk/M2/gs%{cjk_ver}.tar.gz
# Location of files used to generate patch 6: %define gsj_ver gs550j1
# http://bimbo.fjfi.cvut.cz/~paluch/l7kdriver/ Source11: %{gsj_ver}.tar.gz
Patch6: gs5.50-lexmark7000.patch # Source12 is gs6.51 friendly contrib.mak-add for gsj
# Same as Patch0, but patched against vflib changes Source12: contrib.mak-gsj651.add
Patch10: ghostscript-5.50-configj.patch Source13: ftp://ftp.gyve.org/pub/gs-cjk/adobe-cmaps-200103.tar.gz
Patch11: ghostscript-5.50-cdj880.patch %define vflib_ver gs650
Patch12: ghostscript-5.50-bmp16m.patch Source15: ftp://ftp.u-aizu.ac.jp/pub/tex/ptex-win32/WEB2C7.3/%{vflib_ver}-j-vlib.zip
Patch13: ghostscript-5.50-gcc296.patch Source16: ftp://ftp.gyve.org/pub/gs-cjk/acro4-cmaps-1999.tar.gz
Patch14: ghostscript-5.50-bug19212.patch Source20: ghostscript-6.51-cjk.tar.gz
Patch15: ghostscript-5.50-mkstemp-LD_RUN_PATH.patch # Patch5 is gs6.51 friendly patch for gsj
Patch16: gs5.50-time.patch Patch5: ghostscript-6.51-gsj.patch
Patch17: ghostscript-5.50-PARANOIDSAFER.patch Patch0: ghostscript-6.51-config.patch
%if %{enable_japanese} Patch1: ghostscript-6.51-linuxtime.patch
Patch20: ghostscript-5.50-jisb.patch Patch2: ghostscript-6.51-mkstemp.patch
%endif Patch3: ghostscript-6.51-gcc296.patch
Patch21: ghostscript-5.50-ps.patch Patch6: ghostscript-6.51-_ds.patch
Patch7: ghostscript-6.51-gx_device.patch
Patch8: ghostscript-6.51-gsj_update.patch
Patch10: ghostscript-6.51-config.kfvflib.patch
Patch12: ghostscript-6.51-vflib.fixup.patch
Patch13: ghostscript-6.51-res_path.patch
Patch14: ghostscript-6.51-ps2epsi.patch
# 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
# included. -Crutcher
Patch11: gs5.50-rth.patch
Requires: urw-fonts >= 1.1, ghostscript-fonts Requires: urw-fonts >= 1.1, ghostscript-fonts
BuildRequires: zlib, zlib-devel, libpng, libpng-devel
BuildRequires: VFlib2-devel
# xtt-fonts -> ttfonts-ja
Requires: VFlib2, ttfonts-ja, zlib, libpng
BuildPreReq: freetype-devel BuildPreReq: freetype-devel
%if %{enable_japanese} BuildRoot: %{_tmppath}/%{name}-%{version}-root
BuildPreReq: VFlib2-devel
Requires: VFlib2
Requires: xtt-fonts
%endif
BuildRoot: /var/tmp/ghostscript-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)
interpreter, a set of C procedures (the Ghostscript library, which interpreter, a set of C procedures (the Ghostscript library, which
implements the graphics capabilities in the PostScript language) and implements the graphics capabilities in the PostScript language) and
an interpreter for Portable Document Format (PDF) files. Ghostscript an interpreter for Portable Document Format (PDF) files. Ghostscript
translates PostScript code into many common, bitmapped formats, like translates PostScript code into many common, bitmapped formats, like
those understood by your printer or screen. Ghostscript is normally those understood by your printer or screen. Ghostscript is normally
used to display PostScript files and to print PostScript files to used to display PostScript files and to print PostScript files to
non-PostScript printers. non-PostScript printers.
If you need to display PostScript files or print them to If you need to display PostScript files or print them to
non-PostScript printers, you should install ghostscript. If you 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.
%prep %prep
%setup -q -n gs%{version} %setup -q
%setup -q -T -D -a 1 -a 5 -b 4 -a 10 -a 11 -n gs%{version}
ln -s jpeg-6b jpeg
%if %{enable_japanese} # Set up the jpeg library
patch -s -p1 < %{vflib}/%{vflib}.diff tar xzf %{SOURCE1}
%patch10 -p1 -b .config ln -s jpeg-%{jpeg_ver} jpeg
patch -s -p1 -b --suffix .gsj < %{gsj}.diff
cat jdevs.add >>contrib.mak
%else # Setting linux as a platform that needs <time.h> AND <sys/time.h>
%patch0 -p1 -b .config %patch1 -p1 -b .linuxtime
%endif
%patch1 -p1 -b .rth
# Add support for HP 8xx printers # Patch to use mkstemp for making temp files, for security
%patch3 -p1 -b .hp8xx %patch2 -p1 -b .mkstemp
mkdir tmp
cd tmp # Apply the gs-cjk patches
unzip -a -L %{SOURCE2} tar xzf %{SOURCE9}
mv *.c *.h .. (cd gs%{cjk_ver}; rm src_time_.h.patch \
rm -f * src_unix-gcc.mak.patch \
# Add upp files for epson 740 src_gp_unifs.c.patch
tar xzvf %{SOURCE6} )
mv epson740/*.upp .. cat gs%{cjk_ver}/*.patch | patch -p0 -b -V simple -z .cjk
# Add support for some other HP printers
tar xzfO %{SOURCE3} hpdj-%{hpdjver}/hpdj.tar | tar xf - # Create a Resource directory
mv *.c *.h *.1 .. %patch13 -p1 -b .res_path
cd .. mkdir Resource
%patch11 -p1 -b .cdj880 mkdir Resource/Font
cat tmp/contrib.mak-%{version}.add >>contrib.mak mkdir Resource/CIDFont
tar xzf %{SOURCE13} -C Resource
tar xzf %{SOURCE16} -C Resource
tar xzf gs%{cjk_ver}/install-cid.tar.gz -C Resource
tar xzf %{SOURCE20} -C Resource/CIDFont
# Add the VFlib/jpdf patch
# The unix-gcc.mak portions of this patch are in the config patch below
mkdir vflib-source
unzip %{SOURCE15} -d vflib-source
%patch12 -p1 -b .vflib.fixup
patch -p1 -b -V simple -z .vflib < vflib-source/%{vflib_ver}-j-vlib.diff
# RPM configuration changes to the makefile
# The config patch sets up the use of a symbol, _XXX_RPM_GS_DEVICES_XXX_ which
# gets replaced by sed with the contents of the variable GS_DEVS. This
# allows devices to be added to the Makefile by adding them to the
# GS_DEVS string in this spec file. New devices in this spec file
# should be added with the line:
# GS_DEVS=$GS_DEVS'$(DD)foo.dev ' <-- note the space
# Those paying attention will wonder why it works this way, the reason is that
# the DEVICE_DEVS? are NOT treated as real variables by ghostscript's build
# system, and so we have to actually change the file.
#
%patch0 -p1 -b .config
# Includes japanese changes
%patch10 -p1 -b .config.kfvflib
# Turn on every possibly pertinent builtin device
#? dmprt.dev cdj880.dev
GS_DEVS=$GS_DEVS'$(DD)ap3250.dev $(DD)appledmp.dev $(DD)atx23.dev '
GS_DEVS=$GS_DEVS'$(DD)atx24.dev $(DD)atx38.dev $(DD)bmpa16.dev '
GS_DEVS=$GS_DEVS'$(DD)bmpa16m.dev $(DD)bmpa256.dev $(DD)bmpa32b.dev '
GS_DEVS=$GS_DEVS'$(DD)bmpamono.dev $(DD)bmpasep1.dev $(DD)bmpasep8.dev '
GS_DEVS=$GS_DEVS'$(DD)ccr.dev $(DD)cdj1600.dev $(DD)cdj500.dev '
GS_DEVS=$GS_DEVS'$(DD)cdj670.dev $(DD)cdj850.dev '
GS_DEVS=$GS_DEVS'$(DD)cdj890.dev $(DD)cdj970.dev $(DD)cfax.dev '
GS_DEVS=$GS_DEVS'$(DD)cgm24.dev $(DD)cgm8.dev $(DD)cgmmono.dev '
GS_DEVS=$GS_DEVS'$(DD)cljet5pr.dev $(DD)coslw2p.dev $(DD)coslwxl.dev '
GS_DEVS=$GS_DEVS'$(DD)cp50.dev $(DD)declj250.dev $(DD)dfaxlow.dev '
GS_DEVS=$GS_DEVS'$(DD)dfaxhigh.dev $(DD)djet500c.dev $(DD)dl2100.dev '
GS_DEVS=$GS_DEVS'$(DD)dnj650c.dev $(DD)eps9high.dev '
GS_DEVS=$GS_DEVS'$(DD)eps9mid.dev $(DD)epson.dev $(DD)epsonc.dev '
GS_DEVS=$GS_DEVS'$(DD)escp.dev $(DD)fax.dev $(DD)fs600.dev '
GS_DEVS=$GS_DEVS'$(DD)hl1250.dev $(DD)hl7x0.dev $(DD)ibmpro.dev '
GS_DEVS=$GS_DEVS'$(DD)imagen.dev $(DD)inferno.dev $(DD)iwhi.dev '
GS_DEVS=$GS_DEVS'$(DD)iwlo.dev $(DD)iwlq.dev $(DD)jetp3852.dev '
GS_DEVS=$GS_DEVS'$(DD)la50.dev $(DD)la70.dev $(DD)la75.dev '
GS_DEVS=$GS_DEVS'$(DD)la75plus.dev $(DD)lbp8.dev $(DD)lj250.dev '
GS_DEVS=$GS_DEVS'$(DD)lj3100sw.dev $(DD)lj4dith.dev $(DD)ln03.dev '
GS_DEVS=$GS_DEVS'$(DD)lp2563.dev $(DD)lp8000.dev $(DD)lq850.dev '
GS_DEVS=$GS_DEVS'$(DD)lxm5700m.dev $(DD)m8510.dev $(DD)mgr4.dev '
GS_DEVS=$GS_DEVS'$(DD)mgr8.dev $(DD)mgrgray2.dev $(DD)mgrgray4.dev '
GS_DEVS=$GS_DEVS'$(DD)mgrgray8.dev $(DD)mgrmono.dev $(DD)miff24.dev '
GS_DEVS=$GS_DEVS'$(DD)necp6.dev $(DD)oce9050.dev '
GS_DEVS=$GS_DEVS'$(DD)oki182.dev $(DD)okiibm.dev $(DD)paintjet.dev '
GS_DEVS=$GS_DEVS'$(DD)photoex.dev $(DD)pjetxl.dev $(DD)plan9bm.dev '
GS_DEVS=$GS_DEVS'$(DD)psdf.dev $(DD)sgirgb.dev $(DD)r4081.dev '
GS_DEVS=$GS_DEVS'$(DD)sj48.dev $(DD)st800.dev '
GS_DEVS=$GS_DEVS'$(DD)stcolor.dev $(DD)sunhmono.dev $(DD)t4693d2.dev '
GS_DEVS=$GS_DEVS'$(DD)t4693d4.dev $(DD)t4693d8.dev $(DD)tek4696.dev '
GS_DEVS=$GS_DEVS'$(DD)tfax.dev $(DD)tiffs.dev $(DD)xes.dev '
GS_DEVS=$GS_DEVS'$(DD)x11_.dev $(DD)x11alt_.dev $(DD)x11cmyk2.dev '
GS_DEVS=$GS_DEVS'$(DD)x11cmyk4.dev $(DD)x11cmyk8.dev $(DD)x11rg16x.dev '
GS_DEVS=$GS_DEVS'$(DD)x11rg32x.dev '
## Add a monkey-load of Japanese Printers
mkdir gsj
tar xzf %{SOURCE11} -C gsj
# Zap the older version of the okidata driver
rm gsj/gdevop4w.*
cp gsj/*.[ch] src/
cp gsj/*.{ps,src} lib/
%patch5 -p1 -b .gsj
# Repair the gsj code
%patch6 -p1 -b ._ds
%patch7 -p1 -b .gx_device
%patch8 -p1 -b .gsj_update
# update the make files
GS_DEVS=$GS_DEVS'$(DD)ljet4pjl.dev $(DD)lj4dithp.dev $(DD)dj505j.dev '
GS_DEVS=$GS_DEVS'$(DD)picty180.dev $(DD)pr201.dev $(DD)pr150.dev '
GS_DEVS=$GS_DEVS'$(DD)pr1000.dev $(DD)pr1000_4.dev $(DD)jj100.dev '
GS_DEVS=$GS_DEVS'$(DD)bj10v.dev $(DD)bj10vh.dev $(DD)mag16.dev '
GS_DEVS=$GS_DEVS'$(DD)mag256.dev $(DD)mj700v2c.dev $(DD)mj500c.dev '
GS_DEVS=$GS_DEVS'$(DD)mj6000c.dev $(DD)mj8000c.dev $(DD)fmpr.dev '
GS_DEVS=$GS_DEVS'$(DD)fmlbp.dev $(DD)ml600.dev '
GS_DEVS=$GS_DEVS'$(DD)lbp310.dev $(DD)lbp320.dev $(DD)lips2p.dev '
GS_DEVS=$GS_DEVS'$(DD)bjc880j.dev $(DD)lips4.dev '
GS_DEVS=$GS_DEVS'$(DD)lips4v.dev $(DD)escpage.dev $(DD)lp2000.dev '
GS_DEVS=$GS_DEVS'$(DD)npdl.dev $(DD)md50Mono.dev $(DD)md50Eco.dev '
GS_DEVS=$GS_DEVS'$(DD)md1xMono.dev '
cat %{SOURCE12} >> src/contrib.mak
# Turn on IBM's Omni print driver interface
GS_DEVS=$GS_DEVS'$(DD)omni.dev '
# Turn on HP's hpijs print driver interface
GS_DEVS=$GS_DEVS'$(DD)DJ630.dev $(DD)DJ6xx.dev $(DD)DJ6xxP.dev '
GS_DEVS=$GS_DEVS'$(DD)DJ8xx.dev $(DD)DJ9xx.dev $(DD)DJ9xxVIP.dev '
GS_DEVS=$GS_DEVS'$(DD)AP21xx.dev '
# Add hpdj driver support for some other HP printers
mkdir hpdj
tar xzfO %{SOURCE2} hpdj-%{hpdj_ver}/hpdj.tar | tar xf - -C hpdj
mv hpdj/*.c hpdj/*.h src/
mv hpdj/*.1 man
# update the make files
GS_DEVS=$GS_DEVS'$(DD)hpdj.dev '
cat hpdj/contrib.mak-5.94.add >> src/contrib.mak
patch -p0 -z .hpdjauto < tmp/zmedia2.c-%{version}.diff
%patch4 -p1 -b .hpdj
%patch5 -p1 -b .lxm
# Add support for ALPS printers # Add support for ALPS printers
mv gdevmd2k-%{md2kver}/*.[ch] . tar xzf %{SOURCE3}
cat gdevmd2k-%{md2kver}/gdevmd2k.mak-5.50 >>contrib.mak mv gdevmd2k-%{md2k_ver}/*.[ch] src/
perl -pi -e "s/^DEVICE_DEVS6=/DEVICE_DEVS6=md2k.dev md5k.dev /g" unix-gcc.mak
%patch6 -p1 -b .lx7000 # update the make files
GS_DEVS=$GS_DEVS'$(DD)md2k.dev $(DD)md5k.dev '
cat gdevmd2k-%{md2k_ver}/gdevmd2k.mak-5.8x >> src/contrib.mak
# Add the stp driver from the gimp-print project
tar xzvf %{SOURCE12}
cd $(basename %{SOURCE12} | sed -e 's/.tar.gz//')/Ghost
mv *.{c,h} ../..
cat contrib.mak.addon >> ../../contrib.mak
cd ../../
perl -pi -e 's/^DEVICE_DEVS6=/DEVICE_DEVS6=stp.dev /g' unix-gcc.mak
# add the lxm3270 driver # Add *.upp files for Epson 740
tar xzvf %{SOURCE13} tar xzf %{SOURCE4}
cd $(basename %{SOURCE13} | sed -e 's/.tar.gz//') mv epson740/*.upp lib/
mv *.c ../
cd ..
perl -pi -e 's/^DEVICE_DEVS6=/DEVICE_DEVS6=lxm3200.dev /g' unix-gcc.mak # Add the gimp-print stp driver
echo ' tar xzf %{SOURCE5}
mv print-%{gimp_ver}/Ghost/*.[ch] src/
# update the make files
GS_DEVS=$GS_DEVS'$(DD)stp.dev '
cat print-%{gimp_ver}/Ghost/contrib.mak.addon >> src/contrib.mak
# Add Daniel Gordini's lxm3200 driver
tar xzf %{SOURCE6}
mv lxm3200-%{lxm_ver}-src/*.[ch] src/
# update the make files
GS_DEVS=$GS_DEVS'$(DD)lxm3200.dev '
echo '
### ---------------- Lexmark 3200 device ----------------- ### ### ---------------- Lexmark 3200 device ----------------- ###
lxm3200_=$(GLOBJ)gdevlx32.$(OBJ) lxm3200_=$(GLOBJ)gdevlx32.$(OBJ)
$(GLOBJ)gdevlx32.$(OBJ): gdevlx32.c $(PDEVH) $(gsparam_h) $(GLOBJ)gdevlx32.$(OBJ): $(GLSRC)gdevlx32.c $(PDEVH) $(gsparam_h)
$(GLCC) $(GLO_)gdevlx32.$(OBJ) $(C_) $(GLSRC)gdevlx32.c $(GLCC) $(GLO_)gdevlx32.$(OBJ) $(C_) $(GLSRC)gdevlx32.c
lxm3200.dev: $(lxm3200_) page.dev $(DD)lxm3200.dev: $(lxm3200_) $(DD)page.dev
$(SETPDEV) lxm3200 $(lxm3200_) $(SETPDEV) $(DD)lxm3200 $(lxm3200_)
' >> contrib.mak ' >> src/contrib.mak
%patch12 -p1 -b .bmp16m
%patch13 -p1 -b .gcc296
%patch14 -p1 -b .bug19212
%patch15 -p1
%patch16 -p1 -b .time
%if %{enable_japanese}
%patch20 -p0
%endif
%patch21 -p0
# Add -dPARANOIDSAFER option, so that we can breathe a little easier # Add the lx5000 driver
# in the print spooler. cp %{SOURCE7} src/
%patch17 -p1 -b .PARANOIDSAFER
rm -rf tmp GS_DEVS=$GS_DEVS'$(DD)lx5000.dev '
ln -s unix-gcc.mak Makefile echo '
### ----------------- Lexmark 5000 printer ----------------------------- ###
### Note: this driver was contributed by users. Please contact: ###
### Peter B. West <pbwest@netscape.net> ###
### Reported to work with Z51. May work with 5700 & 7000 ###
### Provides colour and black-only, unidirectional 300/600x600dpi. ###
lx5000_=$(GLOBJ)gdevlx50.$(OBJ)
$(GLOBJ)gdevlx50.$(OBJ) : $(GLSRC)gdevlx50.c $(PDEVH)
$(GLCC) $(GLO_)gdevlx50.$(OBJ) $(C_) $(GLSRC)gdevlx50.c
$(DD)lx5000.dev: $(lx5000_) $(DD)page.dev
$(SETPDEV) $(DD)lx5000 $(lx5000_)
' >> src/contrib.mak
# Add a Henryk Paluch's additional lexmark drivers
tar xzf %{SOURCE8}
cp lexmarkgs/gdevlx7.c src/
# update the make files
GS_DEVS=$GS_DEVS'$(DD)lex7000.dev $(DD)lex5700.dev '
GS_DEVS=$GS_DEVS'$(DD)lex3200.dev $(DD)lex2050.dev '
echo '
### ------ Lexmark 2050, 3200, 5700 and 7000 devices ------- ###
lex7000_=$(GLOBJ)gdevlx7.$(OBJ)
$(GLOBJ)gdevlx7.$(OBJ): $(GLSRC)gdevlx7.c $(PDEVH) $(gsparam_h)
$(GLCC) $(GLO_)gdevlx7.$(OBJ) $(C_) $(GLSRC)gdevlx7.c
$(DD)lex7000.dev: $(lex7000_) $(DD)page.dev
$(SETPDEV) $(DD)lex7000 $(lex7000_)
$(DD)lex5700.dev: $(lex7000_) $(DD)page.dev
$(SETPDEV) $(DD)lex5700 $(lex7000_)
$(DD)lex3200.dev: $(lex7000_) $(DD)page.dev
$(SETPDEV) $(DD)lex3200 $(lex7000_)
$(DD)lex2050.dev: $(lex7000_) $(DD)page.dev
$(SETPDEV) $(DD)lex2050 $(lex7000_)
' >> src/contrib.mak
# Patch to make gcc296 happier
%patch3 -p1 -b .gcc296
# Patch to make ps2espi better/work
%patch14 -p1 -b .ps2epsi
# Set up for a unix os, gcc compiler build, and replace our insertion string
sed -e "s/_XXX_RPM_GS_DEVICES_XXX_/$GS_DEVS/;" src/unix-gcc.mak > Makefile
%build %build
# Ugly workaround for a bug in the dj850 driver...
mkdir obj
make obj/arch.h
ln -s obj/arch.h .
make RPM_OPT_FLAGS="$RPM_OPT_FLAGS" gdevcd8.o
mv gdevcd8.o obj
%ifarch alpha
make RPM_OPT_FLAGS="" prefix=/usr
%else
make RPM_OPT_FLAGS="$RPM_OPT_FLAGS" prefix=/usr make RPM_OPT_FLAGS="$RPM_OPT_FLAGS" prefix=/usr
%endif
%install %install
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/usr/{bin,man,doc} mkdir -p $RPM_BUILD_ROOT
make install prefix=$RPM_BUILD_ROOT/usr mandir=$RPM_BUILD_ROOT/%{_mandir} mkdir -p $RPM_BUILD_ROOT/{%{_mandir},%{_bindir},%{_datadir},%{_docdir}}
make install prefix=$RPM_BUILD_ROOT/usr \
mandir=$RPM_BUILD_ROOT/%{_mandir} \
datadir=$RPM_BUILD_ROOT/%{_datadir} \
bindir=$RPM_BUILD_ROOT/%{_bindir} \
docdir=$RPM_BUILD_ROOT/%{_docdir}/%{name}-%{version}
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
strip -R .comment $RPM_BUILD_ROOT/usr/bin/gs
mkdir ourdocs cp -a Resource $RPM_BUILD_ROOT/usr/share/ghostscript/
cp -a $RPM_BUILD_ROOT/usr/doc/ghostscript-%{PACKAGE_VERSION}/* ourdocs/
MAIN_PWD=`pwd`
(cd $RPM_BUILD_ROOT; find ./usr/share/ghostscript/%{version}/{lib,vflib,examples}/* | \
sed -e 's/\.//;' | grep -v lib/Fontmap* | grep -v gs_init.ps > $MAIN_PWD/rpm.sharelist)
%clean %clean
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
%files %files -f rpm.sharelist
%defattr(-,root,root) %defattr(-,root,root)
%doc ourdocs/*
/usr/bin/* /usr/bin/*
%dir /usr/share/ghostscript %dir /usr/share/ghostscript
%dir /usr/share/ghostscript/%{PACKAGE_VERSION} %dir /usr/share/ghostscript/Resource
/usr/share/ghostscript/%{PACKAGE_VERSION}/*ps %dir /usr/share/ghostscript/%{version}
/usr/share/ghostscript/%{PACKAGE_VERSION}/*upp %dir /usr/share/ghostscript/%{version}/lib
%config /usr/share/ghostscript/%{version}/Fontmap %dir /usr/share/ghostscript/%{version}/vflib
/usr/share/ghostscript/%{PACKAGE_VERSION}/examples %dir /usr/share/ghostscript/%{version}/examples
%config /usr/share/ghostscript/%{version}/lib/gs_init.ps
%config /usr/share/ghostscript/%{version}/lib/Fontmap*
/usr/share/ghostscript/Resource/*
%{_mandir}/*/* %{_mandir}/*/*
%if %{enable_japanese}
/usr/share/ghostscript/5.50/vflib/
%endif
%changelog %changelog
* Mon Oct 01 2001 Crutcher Dunnavant <crutcher@redhat.com> 5.50-19 * Thu Aug 9 2001 Yukihiro Nakai <ynakai@redhat.com> 6.51-5
- change -dPARANOIDSAFER to punch a hole for OutputFile - Add cjk resources
* Mon Sep 17 2001 Crutcher Dunnavant <crutcher@redhat.com> 5.50-18 * Thu Aug 1 2001 Crutcher Dunnavant <crutcher@redhat.com> 6.51-4
- add -dPARANOIDSAFER option so that we can breathe a little easier - applied drepper@redhat.com's patch for #50300
- in the print spooler. - fixed build deps on zlib-devel and libpng-devel, #49853
- made gs_init.ps a config file; #25096
- O\^/nZ the daTa directorieZ now; #50693
* Tue Jul 24 2001 Crutcher Dunnavant <crutcher@redhat.com> 6.51-3
- wired up the Resource dir and the Font and CIDFont maps.
* Mon Jul 23 2001 Crutcher Dunnavant <crutcher@redhat.com> 6.51-2
- luckily, I had a spare chicken. Thanks to some work by Nakai, and one last
- desperate search through google, everything /seems/ to be working. I know
- that there are going to be problems in the japanese code, and I need to turn
- on the cjk font map from adobe, but it /works/ at the moment.
* Thu Jun 21 2001 Crutcher Dunnavant <crutcher@redhat.com>
- upgraded to 6.51, a major version upgrade
- rewrote spec file, threw out some patches
- turned on IBM's Omni print drivers interface
- turned on HP's hpijs print drivers interface
- turned on every driver that looked usable from linux
- sacrificed a chicken to integrate the old Japanese drivers
This didn't work. The japanese patches are turned off, pending review.
I can do loops with C, but the bugs are in Postscript init files
* Wed Apr 11 2001 Crutcher Dunnavant <crutcher@redhat.com>
- added P. B. West's lx5000 driver
* Tue Feb 27 2001 Crutcher Dunnavant <crutcher@redhat.com> * Tue Feb 27 2001 Crutcher Dunnavant <crutcher@redhat.com>
- added xtt-fonts requirement (for VFlib) - added xtt-fonts requirement (for VFlib)

15
sources
View File

@ -1,11 +1,14 @@
2919cf239c2d090cf4c21c890aed860e acro4-cmaps-1999.tar.gz
3ff23ba3f0b820fdb47eb925af35f798 adobe-cmaps-200103.tar.gz
2c6ebfe51cab34ee61e3dd524c8640cc epson740.tgz 2c6ebfe51cab34ee61e3dd524c8640cc epson740.tgz
5ed2b4218b8f77cb411f3d2e4509ed24 gdevmd2k-0.2a.tar.gz 5ed2b4218b8f77cb411f3d2e4509ed24 gdevmd2k-0.2a.tar.gz
4930c9d2feea3294904fc683bf8b8beb ghostscript-5.50gnu.tar.gz f04509c73ddc247e6b94e7dc1835d143 ghostscript-6.51-cjk.tar.gz
14d4e72ee395c60a18a918c2d7d733d2 gnu-gs-5.50.tar.gz 6b6d2123daaa1d217aadcbba7f2d6179 ghostscript-6.51.tar.bz2
dbd5f3b47ed13132f04c685d608a7547 gnu-gs-5.50jpeg.tar.gz
e934d1bd3a48a1c151e2a15af0640c97 gs5.50-vflib-1.0.tar.gz
d202cd105c496b7f0eb5221316fb7b7f gs550j1.tar.gz d202cd105c496b7f0eb5221316fb7b7f gs550j1.tar.gz
e46bcac0aed0c511c8cc88a1093cc586 hp8xxs13.zip 78d6761aab82e70f9c7ee3a1afd72aba gs6.51-cjk-M2-R1.tar.gz
57e2ef257be06ea370f1b28b7c383c94 gs650-j-vlib.zip
dcc402281f36afd2041144e0e97917be hpdj-2.6.tar.gz dcc402281f36afd2041144e0e97917be hpdj-2.6.tar.gz
dbd5f3b47ed13132f04c685d608a7547 jpegsrc.v6b.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
05af32e5c29d3a5657d2974352bc4286 print-4.0a3.tar.gz 2eae88b9285d47036d31974fd2b0abc2 print-4.0.5.tar.gz