]> git.pld-linux.org Git - packages/ghostpdl.git/blob - ghostpdl.spec
5172dcfec92dc89ef9c6fff5ea5dcc88920c8493
[packages/ghostpdl.git] / ghostpdl.spec
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
11 Version:        9.26
12 Release:        1
13 License:        AGPL v3+
14 Group:          Applications/Graphics
15 #Source0Download: https://github.com/ArtifexSoftware/ghostpdl-downloads/releases
16 Source0:        https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs926/%{name}-%{version}.tar.xz
17 # Source0-md5:  36c868d895f7d002062f45c12dda629f
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
23 BuildRequires:  cups-devel
24 %{!?with_system_expat:BuildRequires:    expat-devel >= 1.95}
25 BuildRequires:  fontconfig-devel
26 BuildRequires:  libidn-devel
27 %{!?with_system_freetype:BuildRequires: freetype-devel >= 1:2.6}
28 %{?with_system_jbig2dec:BuildRequires:  jbig2dec-devel >= 0.12}
29 %{?with_system_lcms2:BuildRequires:     lcms2-devel >= 2.6}
30 BuildRequires:  libjpeg-devel
31 BuildRequires:  libpaper-devel
32 BuildRequires:  libpng-devel >= 2:1.6.17
33 BuildRequires:  libtiff-devel >= 4.0.1
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
39 BuildRequires:  zlib-devel
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
57 Requires:       ghostscript = %{version}
58 Suggests:       fonts-TTF-urw
59 Conflicts:      ghostpcl < 9
60
61 %description -n ghostpcl
62 GhostPCL is Artifex Software's implementation of the PCL-5 and PCL-XL
63 family of page description languages.
64
65 %description -n ghostpcl -l pl.UTF-8
66 GhostPCL to rozwijana przez Artifex Software implementacja rodzin
67 języków opisu strony PCL-5 oraz PCL-XL.
68
69 %package -n ghostxps
70 Summary:        XPS document format implementation based on Ghostscript
71 Summary(pl.UTF-8):      Implementacja formatu dokumentów XPS oparta na Ghostscripcie
72 Group:          Applications/Graphics
73 URL:            http://ghostscript.com/GhostXPS.html
74 Requires:       ghostscript = %{version}
75
76 %description -n ghostxps
77 GhostXPS is an implementation of the Microsoft XPS document format
78 built on top of Ghostscript.
79
80 %description -n ghostxps -l pl.UTF-8
81 GhostXPS to implementacja formatu dokumentu XPS Microsoftu zbudowana w
82 oparciu o Ghostscript.
83
84 %prep
85 %setup -q
86 %patch0 -p1
87 %patch1 -p1
88 %patch2 -p1
89
90 %build
91 # use system libs:
92 # freetype 2.5.5 + few pre-2.6 fixes from git
93 %{?with_system_freetype:%{__rm} -r freetype}
94 # jbig2dec 0.13 + minor fix
95 %{?with_system_jbig2dec:%{__rm} -r jbig2dec}
96 # (unmodified) libpng 1.6.17 and zlib 1.2.8
97 %{__rm} -r libpng zlib
98 # (unmodified) libjpeg 9a is built with different configuration (D_MAX_BLOCKS_IN_MCU=64)
99 # openjpeg is 2.1.0 + fixes; stick to bundled for now
100 # lcms2 is 2.6 with some minor future changes (one already in 2.7, two post-2.7, extra_xform.h ???)
101 %{?with_system_expat:%{__rm} -r expat}
102 %{__autoconf}
103 %configure \
104         --with-system-libtiff
105
106 %{__make}
107
108 %install
109 rm -rf $RPM_BUILD_ROOT
110
111 %{__make} install \
112         DESTDIR=$RPM_BUILD_ROOT
113
114 install pcl/tools/{pcl2pdf,pcl2pdfwr,plot2pdf.sh} $RPM_BUILD_ROOT%{_bindir}
115 ln -sf gpcl6 $RPM_BUILD_ROOT%{_bindir}/pcl6
116
117 # packaged in ghostscript.spec
118 %{__rm} $RPM_BUILD_ROOT%{_bindir}/{dvipdf,eps2eps,gs*,lprsetup.sh,pdf2*,pf2afm,pfbtopfa,pphs,printafm,ps2*,unix-lpr.sh}
119 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/{dvipdf,eps2eps,gs*,pdf2*,pf2afm,pfbtopfa,printafm,ps2*}.1
120 %{__rm} $RPM_BUILD_ROOT%{_mandir}/de/man1/{dvipdf,eps2eps,gsnd,pdf2*,printafm,ps2*}.1
121 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/ghostscript
122
123 %clean
124 rm -rf $RPM_BUILD_ROOT
125
126 %files -n ghostpcl
127 %defattr(644,root,root,755)
128 %doc doc/pclxps/ghostpdl.pdf pcl/{LICENSE,NEWS,README.txt} pcl/pcl/Anomalies.txt pcl/pxl/{pxcet,pxdiff,pxfts,pxlib,pxspec}.txt
129 %attr(755,root,root) %{_bindir}/gpcl6
130 %attr(755,root,root) %{_bindir}/pcl2pdf
131 %attr(755,root,root) %{_bindir}/pcl2pdfwr
132 %attr(755,root,root) %{_bindir}/pcl6
133 %attr(755,root,root) %{_bindir}/plot2pdf.sh
134
135 %files -n ghostxps
136 %defattr(644,root,root,755)
137 %doc doc/pclxps/ghostpdl.pdf xps/TODO
138 %attr(755,root,root) %{_bindir}/gxps
This page took 0.063058 seconds and 2 git commands to generate.