]> git.pld-linux.org Git - packages/ghostpdl.git/blame - ghostpdl.spec
- updated to 9.53.1; use local libtiff (system libtiff is incompatible with local...
[packages/ghostpdl.git] / ghostpdl.spec
CommitLineData
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#
10Summary: PostScript, PDF and XPS interpreter and renderer
11Summary(pl.UTF-8): Interpreter i renderer PostScriptu, PDF oraz XPS
12Name: ghostpdl
18012a4d 13Version: 9.53.1
838207cc 14Release: 1
db128617
JB
15License: AGPL v3+
16Group: Applications/Graphics
17#Source0Download: https://github.com/ArtifexSoftware/ghostpdl-downloads/releases
18012a4d
JB
18Source0: https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs9531/%{name}-%{version}.tar.xz
19# Source0-md5: 83ad48101127af4b2a4ce33fdd047ae2
db128617
JB
20Patch0: %{name}-fonts_locations.patch
21Patch1: %{name}-make.patch
22Patch2: %{name}-system-libs.patch
b0de3d30 23URL: https://ghostscript.com/
db128617 24BuildRequires: autoconf >= 2.63
c9d89138 25BuildRequires: cups-devel >= 1.5
b0de3d30 26%{?with_system_expat:BuildRequires: expat-devel >= 1:2.2.9}
db128617
JB
27BuildRequires: fontconfig-devel
28BuildRequires: 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 33BuildRequires: libpaper-devel
b0de3d30 34BuildRequires: libpng-devel >= 2:1.6.37
18012a4d 35%{?with_system_libtiff:BuildRequires: libtiff-devel >= 4.1.0}
db128617
JB
36BuildRequires: tar >= 1:1.22
37BuildRequires: xorg-lib-libX11-devel
38BuildRequires: xorg-lib-libXext-devel
39BuildRequires: xorg-lib-libXt-devel
40BuildRequires: xz
c9d89138 41BuildRequires: zlib-devel >= 1.2.11
db128617
JB
42BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
43
44%description
45GhostPCL is Artifex Software's implementation of the PCL-5(TM) and
46PCL-XL(TM) family of page description languages. For more information
47please see the documentation included with the source package.
48
49%description -l pl.UTF-8
50GhostPCL jest implementacją języków z rodzin PCL-5(TM) i PCL-XL(TM)
51opisujących stronę. Więcej informacji znajduje się w dokumentacji
52załączonej do pakietu.
53
54%package -n ghostpcl
55Summary: PCL-5 and PCL-XL implementation
56Summary(pl.UTF-8): Implementacja PCL-5 oraz PCL-XL
57Group: Applications/Graphics
58URL: http://ghostscript.com/GhostPCL.html
c9d89138 59Requires: 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 62Requires: ghostscript = %{version}
18012a4d
JB
63%{?with_system_jbig2dec:Requires: jbig2dec >= 0.19}
64%{?with_system_libjpeg:Requires: libjpeg >= 9c}
b0de3d30 65Requires: libpng >= 2:1.6.37
18012a4d 66%{?with_system_libtiff:Requires: libtiff >= 4.1.0}
c9d89138 67Requires: zlib >= 1.2.11
db128617
JB
68Suggests: fonts-TTF-urw
69Conflicts: ghostpcl < 9
70
71%description -n ghostpcl
72GhostPCL is Artifex Software's implementation of the PCL-5 and PCL-XL
73family of page description languages.
74
75%description -n ghostpcl -l pl.UTF-8
76GhostPCL to rozwijana przez Artifex Software implementacja rodzin
77języków opisu strony PCL-5 oraz PCL-XL.
78
79%package -n ghostxps
80Summary: XPS document format implementation based on Ghostscript
81Summary(pl.UTF-8): Implementacja formatu dokumentów XPS oparta na Ghostscripcie
82Group: Applications/Graphics
83URL: http://ghostscript.com/GhostXPS.html
c9d89138 84Requires: 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 87Requires: ghostscript = %{version}
18012a4d
JB
88%{?with_system_jbig2dec:Requires: jbig2dec >= 0.19}
89%{?with_system_libjpeg:Requires: libjpeg >= 9c}
b0de3d30 90Requires: libpng >= 2:1.6.37
18012a4d 91%{?with_system_libtiff:Requires: libtiff >= 4.1.0}
c9d89138 92Requires: zlib >= 1.2.11
db128617
JB
93
94%description -n ghostxps
95GhostXPS is an implementation of the Microsoft XPS document format
96built on top of Ghostscript.
97
98%description -n ghostxps -l pl.UTF-8
99GhostXPS to implementacja formatu dokumentu XPS Microsoftu zbudowana w
100oparciu 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
130rm -rf $RPM_BUILD_ROOT
131
132%{__make} install \
133 DESTDIR=$RPM_BUILD_ROOT
134
135install pcl/tools/{pcl2pdf,pcl2pdfwr,plot2pdf.sh} $RPM_BUILD_ROOT%{_bindir}
136ln -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
146rm -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.179881 seconds and 4 git commands to generate.