/[packages]/cauldron/ghostscript/current/SPECS/ghostscript.spec
ViewVC logotype

Annotation of /cauldron/ghostscript/current/SPECS/ghostscript.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 186097 - (hide annotations) (download)
Thu Dec 22 18:15:27 2011 UTC (12 years, 3 months ago) by fwang
File size: 19302 byte(s)
rebuild for new libtiff
1 blino 19330 ##### VERSION NUMBERS
2    
3 fwang 143159 %define gsversion 9.04
4 blino 19330 %define gsextraversion %{nil}
5 fwang 186097 %define gsreleaseno 4
6 blino 19330 %define gsrelease %mkrel %gsreleaseno
7     %define gssvnrevision -rev183
8     %define ijsver 0.35
9 fwang 143161 %define ijsreloffset 80
10 blino 19330 %define ijsrelno %(echo $((%{gsreleaseno} + %{ijsreloffset})))
11     %define ijsrel %mkrel %ijsrelno
12     %define ijsmajor 1
13     %define libijs %mklibname ijs %{ijsmajor}
14     %define libijs_devel %mklibname -d ijs %{ijsmajor}
15     %define gsmajor 9
16     %define libgs %mklibname gs %{gsmajor}
17     %define libgs_devel %mklibname -d gs %{gsmajor}
18    
19     %define _disable_ld_no_undefined 1
20    
21     ##### BUILD OPTIONS
22    
23     %define GSx11SVGAmodule 1
24     %define withsvgalib 0
25     %define withcupsfilters 1
26     %define withstaticgs 0
27     %define debug 0
28    
29     %define bootstrap 0
30     %{?_without_bootstrap: %global bootstrap 0}
31     %{?_with_bootstrap: %global bootstrap 1}
32    
33     %if %{bootstrap}
34     %global withcupsfilters 0
35     %endif
36    
37     ##### GENERAL DEFINITIONS
38    
39     Summary: PostScript/PDF interpreter and renderer (Main executable)
40     Name: ghostscript
41     Version: %{gsversion}%{gsextraversion}
42     Release: %{gsrelease}
43     License: GPLv2+
44     Group: Publishing
45     Requires: ghostscript-common
46     Requires: update-alternatives
47     Obsoletes: ghostscript-PrintOnly
48     Provides: ghostscript-PrintOnly
49     %if !%{GSx11SVGAmodule}
50     Obsoletes: ghostscript-module-X ghostscript-module-SVGALIB
51     Provides: ghostscript-module-X ghostscript-module-SVGALIB
52     %endif
53     %if !%{withstaticgs}
54     Obsoletes: ghostscript-static
55     Provides: ghostscript-static
56     %endif
57     Conflicts: omni < 0.4 cups <= 1.1.14
58     Conflicts: printer-filters <= 10.1
59     URL: http://www.ghostscript.com/awki/Index
60    
61     ##### BUILDREQUIRES
62    
63     BuildRequires: autoconf2.5
64     BuildRequires: bison
65     BuildRequires: flex
66     BuildRequires: freetype2-devel
67     BuildRequires: gettext-devel
68     BuildRequires: glibc-devel
69     %if !%{bootstrap}
70     BuildRequires: gtk+2-devel
71 blino 19361 BuildRequires: libcups-devel
72 blino 19330 BuildRequires: libfontconfig-devel
73     %endif
74     BuildRequires: fontconfig-devel
75     BuildRequires: jbig2dec-devel
76     BuildRequires: libice-devel
77     BuildRequires: libidn-devel
78     BuildRequires: libjasper-devel
79     BuildRequires: libjpeg-devel
80     BuildRequires: libnetpbm-devel
81     BuildRequires: libpaper-devel
82     BuildRequires: libpng-devel
83     BuildRequires: libsm-devel
84     BuildRequires: libtiff-devel
85     BuildRequires: libx11-devel
86     BuildRequires: libxext-devel
87 ahmad 115035 BuildRequires: libxml2-devel
88 blino 19330 BuildRequires: libxt-devel
89     BuildRequires: pkgconfig
90     BuildRequires: unzip
91     BuildRequires: zlib-devel
92    
93     %ifarch %ix86
94     %if %{withsvgalib}
95     BuildRequires: svgalib-devel
96     %endif
97     %endif
98    
99     ##### GHOSTSCRIPT SOURCES
100    
101 lmenut 87327 Source0: http://downloads.ghostscript.com/public/ghostscript-%{gsversion}%{gsextraversion}.tar.bz2
102 blino 19330 Source2: ps2pdfpress.bz2
103     Source3: http://www.linuxprinting.org/download/printing/sipixa6.upp.bz2
104    
105     ##### GHOSTSCRIPT PATCHES
106 fwang 143159 Patch3: ghostscript-9.04-x11_shared.patch
107 blino 19330
108     # Fedora patches
109     Patch102: ghostscript-scripts.patch
110     Patch105: ghostscript-runlibfileifexists.patch
111     Patch107: ghostscript-pksmraw.patch
112 anaselli 164568 Patch108: ghostscript-cups-rgbw.patch
113     Patch109: ghostscript-pxl-landscape.patch
114     Patch110: ghostscript-glyph-crash.patch
115 blino 19330
116 anaselli 164568
117 blino 19330 ##### LIBIJS PATCHES
118    
119     # Fortunately none currently
120    
121     ##### BUILD ROOT
122    
123     BuildRoot: %_tmppath/%name-%gsversion-%gsrelease-root
124    
125     ##### PACKAGE DESCRIPTIONS
126    
127     ##### GHOSTSCRIPT
128    
129     %package dvipdf
130     Summary: PostScript/PDF interpreter and renderer (DVI-to-PDF converter)
131     Group: Publishing
132     Requires: ghostscript, coreutils
133 boklm 64147 Requires: dvips
134 boklm 64166 Provides: dvipdf = %{version}-%{release}
135 blino 19330
136     %package common
137     Summary: PostScript/PDF interpreter and renderer (Common files)
138     Group: Publishing
139     Requires: urw-fonts >= 1.1, ghostscript-fonts, perl
140    
141     %package X
142     Summary: PostScript/PDF interpreter and renderer (Executable with GTK-based screen display)
143     Group: Publishing
144     Requires: ghostscript-common
145     Requires: update-alternatives
146     # This one is buggy, so do not let it get automatically installed by
147     # the "Provides: ghostscript"
148     #Provides: ghostscript = %{version}-%{release}
149    
150     %if %withstaticgs
151     %package static
152     Summary: PostScript/PDF interpreter and renderer (Static executable)
153     Group: Publishing
154     Requires: ghostscript-common
155     Requires: update-alternatives
156     Provides: ghostscript = %{version}-%{release}
157     %endif
158    
159     %if %{GSx11SVGAmodule}
160     %package module-X
161     Summary: PostScript/PDF interpreter and renderer (Additional support for X)
162     Group: Publishing
163     Requires: ghostscript-common
164     Conflicts: ghostscript-X < 8.15
165     Obsoletes: ghostscript-Both
166     Provides: ghostscript-Both
167    
168     %ifarch %ix86
169     %if %{withsvgalib}
170     %package module-SVGALIB
171     Summary: PostScript/PDF interpreter and renderer (Additional support for SVGALIB)
172     Group: Publishing
173     Requires: ghostscript, coreutils
174     Obsoletes: ghostscript-SVGALIB, ghostscript-Both
175     Provides: ghostscript-SVGALIB, ghostscript-Both
176     %endif
177     %endif
178     %endif
179    
180     %package -n %libgs
181     Summary: PostScript/PDF interpreter and renderer (GhostScript shared library)
182     Group: Publishing
183    
184     %package -n %libgs_devel
185     Summary: Headers and links to compile against the "%{libgs}" library
186     Group: Development/C
187     Requires: %libgs = %version
188     Provides: libgs-devel
189    
190     ##### IJS
191    
192     %package -n %{libijs}
193     Version: %{ijsver}
194     Release: %{ijsrel}
195     Summary: Dynamic library for the IJS printer driver plug-in interface
196     Group: Publishing
197     URL: http://www.linuxprinting.org/ijs/
198     Provides: libijs = %{ijsver}-%{ijsrel}
199    
200     %package -n %{libijs_devel}
201     Version: %{ijsver}
202     Release: %{ijsrel}
203     Summary: Headers and links for compiling against the "%{libijs}" library
204     Group: Development/C
205     URL: http://www.linuxprinting.org/ijs/
206     Requires: %{libijs} = %{ijsver} multiarch-utils
207     Provides: libijs-devel = %{ijsver}-%{ijsrel}
208     Provides: ijs-devel = %{ijsver}-%{ijsrel}
209    
210     %package doc
211     Summary: Documentation for GhostScript
212     Group: Publishing
213    
214     ##### DESCRIPTION TEXTS
215    
216     %description
217     Ghostscript is a set of software tools that provide a PostScript(TM)
218     interpreter, a set of C procedures (the Ghostscript library, which
219     implements the graphics capabilities in the PostScript language) and
220     an interpreter for Portable Document Format (PDF) files. Ghostscript
221     translates PostScript code into many common, bitmapped and vector
222     formats, like those understood by your printer or screen. Ghostscript
223     is normally used to display PostScript files and to print PostScript
224     files to non-PostScript printers.
225    
226     You should install ghostscript if you need to display PostScript or
227     PDF files, or if you have a non-PostScript printer.
228    
229     %description dvipdf
230     Tool to convert the DVI format of TeX into the PDF format. There are
231 boklm 64147 more such tools (for different quality levels) in the dvipdfm
232 blino 19330 package. All these tools use dvips of TeX to convert the DVI file to
233     PostScript, then they use GhostScript to generate the PDF file.
234    
235     %description common
236     Ghostscript is a PostScript/PDF interpreter. It can render both
237     PostScript and PDF files to devices which include X window, many
238     printer formats, and popular graphics file formats.
239    
240     This package contains the common data files needed by GhostScript.
241    
242     %description X
243     Ghostscript is a PostScript/PDF interpreter. It can render both
244     PostScript and PDF files to devices which include X window, many
245     printer formats, and popular graphics file formats.
246    
247     This package contains a GhostScript executable with GTK-based X
248     display support ("display" device, default, so it displays files by
249     simply entering "gs <file>" on the command line). It makes use of the
250     GhostScript shared library.
251    
252     %if %withstaticgs
253     %description static
254     Ghostscript is a PostScript/PDF interpreter. It can render both
255     PostScript and PDF files to devices which include X window, many
256     printer formats, and popular graphics file formats.
257    
258     This package contains a GhostScript executable which does not need the
259     GhostScript shared library. To get simple X display support, the
260     ghostscript-module-X package must be installed in addition.
261     %endif
262    
263     %if %{GSx11SVGAmodule}
264     %description module-X
265     Ghostscript is a PostScript/PDF interpreter. It can render both
266     PostScript and PDF files to devices which include X window, many
267     printer formats, and popular graphics file formats.
268    
269     This package enhances Ghostscript with X window support
270    
271     %ifarch %ix86
272     %if %{withsvgalib}
273     %description module-SVGALIB
274     Ghostscript is a PostScript/PDF interpreter. It can render both
275     PostScript and PDF files to devices which include X window, many
276     printer formats, and popular graphics file formats.
277    
278     This package enhances Ghostscript with console output using SVGALIB.
279     %endif
280     %endif
281     %endif
282    
283     %description -n %libgs
284     This is the API library for programs which use the PostScript and/or
285     PDF interpreters of GhostScript.
286    
287     %description -n %libgs-devel
288     This package contains the static library and the header files needed
289     to compile applications using the GhostScript shared library.
290    
291     %description -n %{libijs}
292     This is the API library for programs using the IJS printer driver
293     plug-in interface. Printer drivers using this interface can be added
294     to GhostScript (6.53 or newer) without needing to rebuild
295     GhostScript. Application programs providing an IJS interface can make
296     use of IJS printer drivers directly, without needing GhostScript.
297    
298     %description -n %{libijs_devel}
299     This package contains the static library and the header files needed
300     to compile applications using the IJS library.
301    
302     %description doc
303     This package contains documentation for GhostScript.
304    
305     %prep
306     ##### GHOSTSCRIPT
307     %setup -q
308    
309     # prevent building and using bundled libs
310     rm -rf jasper jbig2dec libpng jpeg tiff
311     # rm -rf lcms <- don't work due to internal changes in the bundled lcms code
312     # rm -rf freetype <- don't work for unknown reasons
313     # rm -rf zlib <- don't work for unknown reasons
314    
315     %patch3 -p0 -b .shared
316    
317     # Fedora patches
318     # Fix some shell scripts
319     %patch102 -p1 -b .scripts
320    
321     # Define .runlibfileifexists.
322     %patch105 -p1
323    
324     # Fix pksmraw output (RH bug #308211). Still needed in 8.63.
325     %patch107 -p1 -b .pksmraw
326    
327 anaselli 164568 # Applied upstream fix for gdevcups handling of RGBW (Ghostscript
328     # bug #691922).
329     %patch108 -p1 -b .cups-rgbw
330    
331     # pxl: match landscape page sizes (fedora bug #692165).
332     %patch109 -p1 -b .pxl-landscape
333    
334     # Applied upstream fix for skipping "cached" outline glyphs (fedora bug #742349).
335     %patch110 -p1 -b .glyph-crash
336    
337    
338 blino 19330 # Convert manual pages to UTF-8
339     from8859_1() {
340     iconv -f iso-8859-1 -t utf-8 < "$1" > "${1}_"
341     mv "${1}_" "$1"
342     }
343     for i in man/de/*.1; do from8859_1 "$i"; done
344    
345    
346     # Stuff for shared library support to ghostscript.
347     %if %{GSx11SVGAmodule}
348    
349     # build a small README describing the features available.
350 blino 19364 cat <<EOF >README.shared.%{_vendor}
351 blino 19330 This version of ghostscript support shared modules dynamically loaded
352     at run time.
353    
354 blino 19365 There are currently two modules compiled with the %{distribution} version of
355 blino 19330 ghostscript, one to support all X11 devices (typically used by gv) and
356     another to support the svgalib devices. Look at the
357     ghostscript-module-??? packages.
358    
359     There is no configuration needed, just can add (or remove) the package
360     to add (or remove) the devices concerned in ghostscript.
361     EOF
362    
363     %endif
364    
365     # ps2pdfpress
366     bzcat %{SOURCE2} > ps2pdfpress
367    
368     # UPP file for SiPix Pocket Printer A6
369     bzcat %{SOURCE3} > sipixa6.upp
370    
371     %build
372    
373     # Change compiler flags for debugging when in debug mode
374     %if %debug
375     export DONT_STRIP=1
376     export CFLAGS="`echo %optflags |sed -e 's/-O3/-g/' |sed -e 's/-O2/-g/'`"
377     export CXXFLAGS="`echo %optflags |sed -e 's/-O3/-g/' |sed -e 's/-O2/-g/'`"
378     export RPM_OPT_FLAGS="`echo %optflags |sed -e 's/-O3/-g/' |sed -e 's/-O2/-g/'`"
379     %endif
380    
381     ##### IJS
382    
383     cd ijs*
384     # Rebuild broken build infrastructure
385     # Needed by patch4.
386     ./autogen.sh
387 lmenut 87327 %configure2_5x \
388     %ifarch %{ix86}
389     --disable-sse2 \
390     %endif
391     --enable-shared
392 blino 19330 %make
393     cd ..
394    
395     ##### GHOSTSCRIPT
396    
397     # We have a Subversion version, so we must re-generate "configure"
398     ./autogen.sh
399    
400     %configure2_5x \
401     --enable-dynamic \
402     %if !%{bootstrap}
403     --enable-fontconfig \
404     %endif
405 lmenut 87327 %ifarch %{ix86}
406     --disable-sse2 \
407     %endif
408 blino 19330 --with-drivers=ALL,opvp \
409     --with-fontpath="/usr/share/fonts/default/ghostscript:/usr/share/fonts/default/type1:/usr/share/ghostscript/fonts:/usr/share/ghostscript/%{gsversion}/Resource:/usr/share/ghostscript/Resource:/usr/share/ghostscript/CIDFont:/usr/share/fonts/ttf:/usr/share/fonts/type1:/usr/share/fonts/default/Type1" \
410     --with-ijs \
411     --with-omni \
412     --with-x
413    
414     # Drivers which do not compile:
415     # Needs newsiop/lbp.h: nwp533
416     # Needs sys/ioccom.h: sparc
417     # Needs unbdev/lpviio.h: sparc
418    
419     # Set documentation dir
420     perl -p -i -e 's|^(docdir=).*$|$1\$\(datadir\)/doc/%{name}-doc-%{gsversion}|' Makefile
421    
422     # Fix references to X11 libraries
423     perl -p -i -e "s|(/usr/X11R6)/lib\b|\1/%{_lib}|g" Makefile base/*.mak
424    
425     # Correct paths for CJK fonts
426     perl -p -i -e "s:/usr/share/ghostscript/:/usr/share/ghostscript/Resource/:g" Resource/Init/gs_res.ps
427     perl -p -i -e "s:ghostscript/Resource/fonts:ghostscript/Resource/Font:g" Resource/Init/gs_res.ps
428    
429     # Do not use "-ansi" in gcc calls
430     perl -p -i -e "s:-ansi::g" Makefile
431    
432     # The RPM macro for make is not used here, as parallelization of the build
433     # process does not work.
434     %if %withstaticgs
435     make
436     %else
437     %if %GSx11SVGAmodule
438 fwang 150964 make soobj/X11.so BUILDDIRPREFIX=so
439 fwang 150967 make obj/X11.so
440 blino 19330 %endif
441     %endif
442     make so
443     #make pcl3opts
444    
445     %install
446     rm -rf %{buildroot}
447    
448     # Change compiler flags for debugging when in debug mode
449     %if %debug
450     export DONT_STRIP=1
451     export CFLAGS="`echo %optflags |sed -e 's/-O3/-g/' |sed -e 's/-O2/-g/'`"
452     export CXXFLAGS="`echo %optflags |sed -e 's/-O3/-g/' |sed -e 's/-O2/-g/'`"
453     export RPM_OPT_FLAGS="`echo %optflags |sed -e 's/-O3/-g/' |sed -e 's/-O2/-g/'`"
454     %endif
455    
456     # Make directories
457     install -d %{buildroot}%{_bindir}
458     install -d %{buildroot}%{_libdir}
459     install -d %{buildroot}%{_includedir}
460     install -d %{buildroot}%{_sysconfdir}
461     install -d %{buildroot}%{_mandir}/man1
462     %if !%{bootstrap}
463     install -d %{buildroot}%{_prefix}/lib/cups
464     install -d %{buildroot}%{_datadir}/cups/model
465     install -d %{buildroot}%{_sysconfdir}/cups
466     %endif
467    
468     ##### IJS
469     cd ijs*
470     %configure2_5x --enable-shared --prefix=%buildroot%{_prefix} --libdir=%buildroot%{_libdir}
471     # Work around bug in "configure" script
472     perl -p -i -e 's/\@OBJEXT\@/o/g' Makefile
473     perl -p -i -e 's/\@EXEEXT\@//g' Makefile
474     %makeinstall
475     # Fix prefixes in scripts
476     perl -p -i -e "s:%buildroot::g" %buildroot%{_bindir}/ijs-config
477     perl -p -i -e "s:%buildroot::g" %buildroot%{_libdir}/pkgconfig/ijs.pc
478     cd ..
479    
480     ##### GHOSTSCRIPT
481     mkdir -p %{buildroot}%{_docdir}/ghostscript-doc-%{gsversion}
482    
483     %if %withstaticgs
484     make \
485     prefix=%{buildroot}/usr \
486     DESTDIR=%{buildroot} \
487     gssharedir=%{buildroot}%{_libdir}/ghostscript/%{gsversion} \
488     docdir=%{_docdir}/ghostscript-doc-%{gsversion} \
489     bindir=%{buildroot}%{_bindir} \
490     mandir=%{buildroot}%{_mandir} \
491     install
492     %else
493     %if !%{bootstrap}
494     make \
495     prefix=%{_prefix} \
496     DESTDIR=%{buildroot} \
497     gssharedir=%{_libdir}/ghostscript/%{gsversion} \
498     docdir=%{_docdir}/ghostscript-doc-%{gsversion} \
499     bindir=%{_bindir} \
500     mandir=%{_mandir} \
501     install-cups
502     %endif
503    
504     %if %GSx11SVGAmodule
505     make \
506     prefix=%{_prefix} \
507     DESTDIR=%{buildroot} \
508     gssharedir=%{_libdir}/ghostscript/%{gsversion} \
509     docdir=%{_docdir}/ghostscript-doc-%{gsversion} \
510     bindir=%{_bindir} \
511     mandir=%{_mandir} \
512     install-shared
513     %endif
514     %endif
515    
516     %if 0
517     make \
518     prefix=%{_prefix} \
519     DESTDIR=%{buildroot} \
520     gssharedir=%{_libdir}/ghostscript/%{gsversion} \
521     docdir=%{_docdir}/ghostscript-doc-%{gsversion} \
522     bindir=%{_bindir} \
523     mandir=%{_mandir} \
524     man1dir=%{_mandir}/man1 \
525     pcl3-install
526     %endif
527    
528     make \
529     prefix=%{_prefix} \
530     DESTDIR=%{buildroot} \
531     gssharedir=%{_libdir}/ghostscript/%{gsversion} \
532     docdir=%{_docdir}/ghostscript-doc-%{gsversion} \
533     bindir=%{_bindir} \
534     libdir=%{_libdir} \
535     mandir=%{_mandir} \
536     soinstall
537    
538     ln -sf gs.1.bz2 %{buildroot}%{_mandir}/man1/ghostscript.1.bz2
539    
540     %if %withstaticgs
541     mv %{buildroot}%{_bindir}/gs %{buildroot}%{_bindir}/gs-static
542     %endif
543    
544     # ps2pdfpress
545     install -m 755 ps2pdfpress %{buildroot}%{_bindir}
546    
547     # UPP file for SiPix Pocket Printer A6
548     install -m 644 sipixa6.upp %{buildroot}%{_datadir}/ghostscript/%{gsversion}/lib/
549    
550     %if %{withcupsfilters}
551     %if 0
552     # "pstoraster" wrapper script to make GhostScript being used as the
553     # cups-internal RIP
554     install -d %{buildroot}%{_libdir}/cups/filter
555     install -m 755 pstoraster/pstoraster %{buildroot}%{_libdir}/cups/filter
556     install -m 755 pstoraster/pstopxl %{buildroot}%{_libdir}/cups/filter
557     install -d %{buildroot}%{_datadir}/cups/model
558     install -m 755 pstoraster/*.ppd %{buildroot}%{_datadir}/cups/model
559     install -d %{buildroot}%{_sysconfdir}/cups
560     install -m 644 pstoraster/pstoraster.convs %{buildroot}%{_sysconfdir}/cups
561     %endif
562     %endif
563    
564     ##### GENERAL STUFF
565    
566     # Correct permissions for all documentation files
567     chmod -R a+rX %{buildroot}%{_docdir}
568     chmod -R go-w %{buildroot}%{_docdir}
569     chmod -R u+w %{buildroot}%{_docdir}
570    
571     ##### FILES
572    
573     %files
574     %defattr(-,root,root)
575     %{_bindir}/gsc
576    
577     %files X
578     %defattr(-,root,root)
579     %{_bindir}/gsx
580    
581     %if %withstaticgs
582     %files static
583     %defattr(-,root,root)
584     %{_bindir}/gs-static
585     %endif
586    
587     %files common
588     %defattr(-,root,root)
589     %dir %{_datadir}/ghostscript
590     %{_datadir}/ghostscript/%{gsversion}
591     #%{_datadir}/ghostscript/Resource
592     #%{_datadir}/ghostscript/CIDFont
593     %{_mandir}/man1/*
594     %lang(de) %{_mandir}/de/man1/*
595 fwang 143159 #%{_bindir}/[a-c]*
596 blino 19330 %{_bindir}/dumphint
597     %{_bindir}/[e-f]*
598     #{_bindir}/gs-common
599     %{_bindir}/gs[a-b]*
600     %{_bindir}/gs[d-n]*
601     %{_bindir}/[j-l]*
602     %{_bindir}/[n-z]*
603     %if %{withcupsfilters}
604     # "pstoraster" wrapper script to make GhostScript being used as the
605     # cups-internal RIP
606     %attr(0755,root,root) %{_prefix}/lib*/cups/filter/*
607     %{_datadir}/cups/model/*
608 lmenut 87327 %config(noreplace) %{_sysconfdir}/cups/gstoraster.convs
609 blino 19330 %endif
610    
611     %files doc
612     %defattr(-,root,root)
613     %doc %{_docdir}/ghostscript-doc-%{gsversion}
614    
615     %files dvipdf
616     %defattr(-,root,root)
617     %{_bindir}/dvipdf
618    
619     %if %{GSx11SVGAmodule}
620     %files module-X
621     %defattr(-,root,root)
622 blino 19364 %doc README.shared.%{_vendor}
623 blino 19330 %dir %{_libdir}/ghostscript/%{gsversion}
624     %{_libdir}/ghostscript/%{gsversion}/X11.so
625    
626     %ifarch %ix86
627     %if %{withsvgalib}
628     %files module-SVGALIB
629     %defattr(-,root,root)
630 blino 19364 %doc README.shared.%{_vendor}
631 blino 19330 %dir %{_libdir}/ghostscript/%{gsversion}
632     %{_libdir}/ghostscript/%{gsversion}/lvga256.so
633     %{_libdir}/ghostscript/%{gsversion}/vgalib.so
634     %endif
635     %endif
636     %endif
637    
638     %files -n %{libgs}
639     %defattr(-,root,root)
640     %{_libdir}/libgs.so.*%{gsmajor}*
641    
642     %files -n %{libgs_devel}
643     %defattr(-,root,root)
644     %{_libdir}/libgs.so
645     %{_includedir}/ghostscript
646    
647     %files -n %{libijs}
648     %defattr(-,root,root)
649 fwang 150967 %{_libdir}/libijs-%{ijsver}.so
650 blino 19330
651     %files -n %{libijs_devel}
652     %defattr(-,root,root)
653     %doc ijs/README
654     %{_libdir}/libijs.a
655     %{_libdir}/libijs.la
656     %{_libdir}/libijs.so
657     %{_libdir}/pkgconfig/ijs.pc
658     %{_includedir}/ijs
659     %{_bindir}/ijs_client_example
660     %{_bindir}/ijs_server_example
661     %{_bindir}/ijs-config
662    
663    
664     ##### PRE/POSTINSTALL SCRIPTS
665    
666     %post
667     # Set up update-alternatives entries
668     %{_sbindir}/update-alternatives --install %{_bindir}/gs gs %{_bindir}/gsc 200
669    
670     %post X
671     # Set up update-alternatives entries
672     %{_sbindir}/update-alternatives --install %{_bindir}/gs gs %{_bindir}/gsx 100
673    
674     %if %withstaticgs
675     %post static
676     # Set up update-alternatives entries
677     %{_sbindir}/update-alternatives --install %{_bindir}/gs gs %{_bindir}/gs-static 10
678     %endif
679    
680     %post common
681     # Initialize japanese fonts
682     if test -f /usr/share/fonts/ttf/japanese/cidinst; then
683     sh /usr/share/fonts/ttf/japanese/cidinst
684     fi
685    
686     %preun
687     if [ "$1" = 0 ]; then
688     # Remove update-alternatives entry
689     %{_sbindir}/update-alternatives --remove gs %{_bindir}/gsc
690     fi
691    
692     %preun X
693     if [ "$1" = 0 ]; then
694     # Remove update-alternatives entry
695     %{_sbindir}/update-alternatives --remove gs %{_bindir}/gsx
696     fi
697    
698     %if %withstaticgs
699     %preun static
700     if [ "$1" = 0 ]; then
701     # Remove update-alternatives entry
702     %{_sbindir}/update-alternatives --remove gs %{_bindir}/gs-static
703     fi
704     %endif
705    
706     %clean
707     rm -rf %{buildroot}
708    
709    

  ViewVC Help
Powered by ViewVC 1.1.30