]>
Commit | Line | Data |
---|---|---|
db128617 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without system_expat # build with included expat | |
4 | %bcond_without system_freetype # build with included freetype | |
5 | %bcond_without system_jbig2dec # build with included jbig2dec | |
6 | %bcond_without system_lcms2 # build with included lcms2 | |
7 | # | |
8 | Summary: PostScript, PDF and XPS interpreter and renderer | |
9 | Summary(pl.UTF-8): Interpreter i renderer PostScriptu, PDF oraz XPS | |
10 | Name: ghostpdl | |
6545ec5d | 11 | Version: 9.26 |
838207cc | 12 | Release: 1 |
db128617 JB |
13 | License: AGPL v3+ |
14 | Group: Applications/Graphics | |
15 | #Source0Download: https://github.com/ArtifexSoftware/ghostpdl-downloads/releases | |
6545ec5d AG |
16 | Source0: https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs926/%{name}-%{version}.tar.xz |
17 | # Source0-md5: 36c868d895f7d002062f45c12dda629f | |
db128617 JB |
18 | Patch0: %{name}-fonts_locations.patch |
19 | Patch1: %{name}-make.patch | |
20 | Patch2: %{name}-system-libs.patch | |
21 | URL: http://ghostscript.com/ | |
22 | BuildRequires: autoconf >= 2.63 | |
c9d89138 JB |
23 | BuildRequires: cups-devel >= 1.5 |
24 | %{?with_system_expat:BuildRequires: expat-devel >= 1:2.2.5} | |
db128617 JB |
25 | BuildRequires: fontconfig-devel |
26 | BuildRequires: libidn-devel | |
c9d89138 JB |
27 | %{?with_system_freetype:BuildRequires: freetype-devel >= 1:2.9.1} |
28 | %{?with_system_jbig2dec:BuildRequires: jbig2dec-devel >= 0.15} | |
db128617 JB |
29 | %{?with_system_lcms2:BuildRequires: lcms2-devel >= 2.6} |
30 | BuildRequires: libjpeg-devel | |
31 | BuildRequires: libpaper-devel | |
c9d89138 JB |
32 | BuildRequires: libpng-devel >= 2:1.6.34 |
33 | BuildRequires: libtiff-devel >= 4.0.9 | |
db128617 JB |
34 | BuildRequires: tar >= 1:1.22 |
35 | BuildRequires: xorg-lib-libX11-devel | |
36 | BuildRequires: xorg-lib-libXext-devel | |
37 | BuildRequires: xorg-lib-libXt-devel | |
38 | BuildRequires: xz | |
c9d89138 | 39 | BuildRequires: zlib-devel >= 1.2.11 |
db128617 JB |
40 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
41 | ||
42 | %description | |
43 | GhostPCL is Artifex Software's implementation of the PCL-5(TM) and | |
44 | PCL-XL(TM) family of page description languages. For more information | |
45 | please see the documentation included with the source package. | |
46 | ||
47 | %description -l pl.UTF-8 | |
48 | GhostPCL jest implementacją języków z rodzin PCL-5(TM) i PCL-XL(TM) | |
49 | opisujących stronę. Więcej informacji znajduje się w dokumentacji | |
50 | załączonej do pakietu. | |
51 | ||
52 | %package -n ghostpcl | |
53 | Summary: PCL-5 and PCL-XL implementation | |
54 | Summary(pl.UTF-8): Implementacja PCL-5 oraz PCL-XL | |
55 | Group: Applications/Graphics | |
56 | URL: http://ghostscript.com/GhostPCL.html | |
c9d89138 JB |
57 | Requires: cups-lib >= 1.5 |
58 | %{?with_system_expat:Requires: expat >= 1:2.2.5} | |
59 | %{?with_system_freetype:Requires: freetype >= 1:2.9.1} | |
db128617 | 60 | Requires: ghostscript = %{version} |
c9d89138 JB |
61 | %{?with_system_jbig2dec:Requires: jbig2dec >= 0.15} |
62 | Requires: libpng >= 2:1.6.34 | |
63 | Requires: libtiff >= 4.0.9 | |
64 | Requires: zlib >= 1.2.11 | |
db128617 JB |
65 | Suggests: fonts-TTF-urw |
66 | Conflicts: ghostpcl < 9 | |
67 | ||
68 | %description -n ghostpcl | |
69 | GhostPCL is Artifex Software's implementation of the PCL-5 and PCL-XL | |
70 | family of page description languages. | |
71 | ||
72 | %description -n ghostpcl -l pl.UTF-8 | |
73 | GhostPCL to rozwijana przez Artifex Software implementacja rodzin | |
74 | języków opisu strony PCL-5 oraz PCL-XL. | |
75 | ||
76 | %package -n ghostxps | |
77 | Summary: XPS document format implementation based on Ghostscript | |
78 | Summary(pl.UTF-8): Implementacja formatu dokumentów XPS oparta na Ghostscripcie | |
79 | Group: Applications/Graphics | |
80 | URL: http://ghostscript.com/GhostXPS.html | |
c9d89138 JB |
81 | Requires: cups-lib >= 1.5 |
82 | %{?with_system_expat:Requires: expat >= 1:2.2.5} | |
83 | %{?with_system_freetype:Requires: freetype >= 1:2.9.1} | |
db128617 | 84 | Requires: ghostscript = %{version} |
c9d89138 JB |
85 | %{?with_system_jbig2dec:Requires: jbig2dec >= 0.15} |
86 | Requires: libpng >= 2:1.6.34 | |
87 | Requires: libtiff >= 4.0.9 | |
88 | Requires: zlib >= 1.2.11 | |
db128617 JB |
89 | |
90 | %description -n ghostxps | |
91 | GhostXPS is an implementation of the Microsoft XPS document format | |
92 | built on top of Ghostscript. | |
93 | ||
94 | %description -n ghostxps -l pl.UTF-8 | |
95 | GhostXPS to implementacja formatu dokumentu XPS Microsoftu zbudowana w | |
96 | oparciu o Ghostscript. | |
97 | ||
98 | %prep | |
99 | %setup -q | |
100 | %patch0 -p1 | |
101 | %patch1 -p1 | |
102 | %patch2 -p1 | |
103 | ||
104 | %build | |
105 | # use system libs: | |
c9d89138 JB |
106 | # expat 2.2.5 |
107 | %{?with_system_expat:%{__rm} -r expat} | |
108 | # freetype 2.9.1 with minor post-release commits | |
db128617 | 109 | %{?with_system_freetype:%{__rm} -r freetype} |
c9d89138 | 110 | # jbig2dec 0.15 |
db128617 | 111 | %{?with_system_jbig2dec:%{__rm} -r jbig2dec} |
c9d89138 | 112 | # (unmodified) libpng 1.6.34 and zlib 1.2.11 |
db128617 | 113 | %{__rm} -r libpng zlib |
c9d89138 JB |
114 | # (unmodified) libjpeg 9c is built with different configuration (D_MAX_BLOCKS_IN_MCU=64) |
115 | # openjpeg is 2.3.0 + fixes; stick to bundled for now | |
116 | # lcms2mt is thread safe version of lcms2 | |
db128617 JB |
117 | %{__autoconf} |
118 | %configure \ | |
119 | --with-system-libtiff | |
120 | ||
121 | %{__make} | |
122 | ||
123 | %install | |
124 | rm -rf $RPM_BUILD_ROOT | |
125 | ||
126 | %{__make} install \ | |
127 | DESTDIR=$RPM_BUILD_ROOT | |
128 | ||
129 | install pcl/tools/{pcl2pdf,pcl2pdfwr,plot2pdf.sh} $RPM_BUILD_ROOT%{_bindir} | |
130 | ln -sf gpcl6 $RPM_BUILD_ROOT%{_bindir}/pcl6 | |
131 | ||
132 | # packaged in ghostscript.spec | |
5d6bc093 JR |
133 | %{__rm} $RPM_BUILD_ROOT%{_bindir}/{dvipdf,eps2eps,gs*,lprsetup.sh,pdf2*,pf2afm,pfbtopfa,pphs,printafm,ps2*,unix-lpr.sh} |
134 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/{dvipdf,eps2eps,gs*,pdf2*,pf2afm,pfbtopfa,printafm,ps2*}.1 | |
135 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/de/man1/{dvipdf,eps2eps,gsnd,pdf2*,printafm,ps2*}.1 | |
db128617 | 136 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/ghostscript |
c9d89138 | 137 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/ghostscript |
db128617 JB |
138 | |
139 | %clean | |
140 | rm -rf $RPM_BUILD_ROOT | |
141 | ||
142 | %files -n ghostpcl | |
143 | %defattr(644,root,root,755) | |
144 | %doc doc/pclxps/ghostpdl.pdf pcl/{LICENSE,NEWS,README.txt} pcl/pcl/Anomalies.txt pcl/pxl/{pxcet,pxdiff,pxfts,pxlib,pxspec}.txt | |
145 | %attr(755,root,root) %{_bindir}/gpcl6 | |
146 | %attr(755,root,root) %{_bindir}/pcl2pdf | |
147 | %attr(755,root,root) %{_bindir}/pcl2pdfwr | |
148 | %attr(755,root,root) %{_bindir}/pcl6 | |
149 | %attr(755,root,root) %{_bindir}/plot2pdf.sh | |
150 | ||
151 | %files -n ghostxps | |
152 | %defattr(644,root,root,755) | |
153 | %doc doc/pclxps/ghostpdl.pdf xps/TODO | |
154 | %attr(755,root,root) %{_bindir}/gxps |