]> git.pld-linux.org Git - packages/ghostpdl.git/blob - ghostpdl.spec
- updated to 9.53.1; use local libtiff (system libtiff is incompatible with local...
[packages/ghostpdl.git] / ghostpdl.spec
1 #
2 # Conditional build:
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)
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
13 Version:        9.53.1
14 Release:        1
15 License:        AGPL v3+
16 Group:          Applications/Graphics
17 #Source0Download: https://github.com/ArtifexSoftware/ghostpdl-downloads/releases
18 Source0:        https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs9531/%{name}-%{version}.tar.xz
19 # Source0-md5:  83ad48101127af4b2a4ce33fdd047ae2
20 Patch0:         %{name}-fonts_locations.patch
21 Patch1:         %{name}-make.patch
22 Patch2:         %{name}-system-libs.patch
23 URL:            https://ghostscript.com/
24 BuildRequires:  autoconf >= 2.63
25 BuildRequires:  cups-devel >= 1.5
26 %{?with_system_expat:BuildRequires:     expat-devel >= 1:2.2.9}
27 BuildRequires:  fontconfig-devel
28 BuildRequires:  libidn-devel
29 %{?with_system_freetype:BuildRequires:  freetype-devel >= 1:2.10.1}
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}
33 BuildRequires:  libpaper-devel
34 BuildRequires:  libpng-devel >= 2:1.6.37
35 %{?with_system_libtiff:BuildRequires:   libtiff-devel >= 4.1.0}
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
41 BuildRequires:  zlib-devel >= 1.2.11
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
59 Requires:       cups-lib >= 1.5
60 %{?with_system_expat:Requires:  expat >= 1:2.2.9}
61 %{?with_system_freetype:Requires:       freetype >= 1:2.10.1}
62 Requires:       ghostscript = %{version}
63 %{?with_system_jbig2dec:Requires:       jbig2dec >= 0.19}
64 %{?with_system_libjpeg:Requires:        libjpeg >= 9c}
65 Requires:       libpng >= 2:1.6.37
66 %{?with_system_libtiff:Requires:        libtiff >= 4.1.0}
67 Requires:       zlib >= 1.2.11
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
84 Requires:       cups-lib >= 1.5
85 %{?with_system_expat:Requires:  expat >= 1:2.2.9}
86 %{?with_system_freetype:Requires:       freetype >= 1:2.10.1}
87 Requires:       ghostscript = %{version}
88 %{?with_system_jbig2dec:Requires:       jbig2dec >= 0.19}
89 %{?with_system_libjpeg:Requires:        libjpeg >= 9c}
90 Requires:       libpng >= 2:1.6.37
91 %{?with_system_libtiff:Requires:        libtiff >= 4.1.0}
92 Requires:       zlib >= 1.2.11
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:
110 # expat 2.2.9
111 %{?with_system_expat:%{__rm} -r expat}
112 # freetype 2.10.1
113 %{?with_system_freetype:%{__rm} -r freetype}
114 # jbig2dec 0.19
115 %{?with_system_jbig2dec:%{__rm} -r jbig2dec}
116 # (unmodified) libpng 1.6.37 and zlib 1.2.11
117 %{__rm} -r libpng zlib
118 # (unmodified) libjpeg 9c is built with different configuration (D_MAX_BLOCKS_IN_MCU=64)
119 %{?with_system_libjpeg:%{__rm} -r jpeg}
120 # openjpeg is 2.3.1 + fixes; stick to bundled for now
121 # lcms2mt is thread safe version of lcms2
122 %{?with_system_lcms:%{__rm} -r lcms2mt}
123 %{__autoconf}
124 %configure \
125         %{?with_system_libtiff:--with-system-libtiff}
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
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
142 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/ghostscript
143 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/ghostscript
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
This page took 0.075779 seconds and 3 git commands to generate.