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