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