]> git.pld-linux.org Git - packages/ghostpcl.git/blob - ghostpcl.spec
63bfd51fd02dfac495ed1db504ccb4d4e8f7cd29
[packages/ghostpcl.git] / ghostpcl.spec
1 # TODO:
2 #       - prevent linking pspcl6 and pcl6 with expat
3 #       - fix GS_LIB_DEFAULT path to gs_init.ps (pspcl6)
4 #         how about GS_DOT_VERSION?
5 #       - rename urwfonts subpackage to font-TTF-urw
6 #       - create alternate Type1 font subpackage:
7 #         http://mirror.cs.wisc.edu/pub/mirrors/ghost/AFPL/GhostPCL/urwfonts_t1-1.40.tar.bz2
8
9 %define urwfonts_ver    1.41
10
11 Summary:        PostScript, PDF and XPS interpreter and renderer
12 Summary(pl.UTF-8):      Interpreter i renderer PostScriptu, PDF oraz XPS
13 Name:           ghostpcl
14 Version:        1.54
15 Release:        6
16 License:        GPL v2
17 Group:          Applications/Graphics
18 #Source0:       http://mirror.cs.wisc.edu/pub/mirrors/ghost/GPL/ghostpdl/ghostpdl-%{version}.tar.bz2
19 #Source0:       http://www.ctan.org/get/support/ghostscript/GPL/ghostpdl/ghostpdl-%{version}.tar.bz2
20 Source0:        http://ghostscript.com/releases/ghostpdl-%{version}.tar.bz2
21 # Source0-md5:  228f96df51d192b95bc4d9340015aa9e
22 #Source1:       http://mirror.cs.wisc.edu/pub/mirrors/ghost/AFPL/GhostPCL/urwfonts-%{urwfonts_ver}.tar.bz2
23 Source1:        http://www.ctan.org/get/nonfree/support/ghostscript/AFPL/GhostPCL/urwfonts-%{urwfonts_ver}.tar.bz2
24 # Source1-md5:  6d65230fa5e9783a0b5942b55dc5219f
25 Patch0:         %{name}-fonts_locations.patch
26 Patch1:         %{name}-make.patch
27 URL:            http://www.artifex.com/downloads/
28 #BuildRequires: XFree86-devel
29 BuildRequires:  expat-devel
30 BuildRequires:  libjpeg-devel
31 BuildRequires:  libpng-devel
32 BuildRequires:  xorg-lib-libXext-devel
33 BuildRequires:  xorg-lib-libXt-devel
34 BuildRequires:  zlib-devel
35 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36
37 %description
38 GhostPCL is Artifex Software's implementation of the PCL-5(TM) and
39 PCL-XL(TM) family of page description languages. For more information
40 please see the documentation included with the source package.
41
42 %description -l pl.UTF-8
43 GhostPCL jest implementacją języków z rodzin PCL-5(TM) i PCL-XL(TM)
44 opisujących stronę. Więcej informacji znajduje się w dokumentacji
45 załączonej do pakietu.
46
47 %package urwfonts
48 Summary:        URW fonts in TTF format for GhostPCL
49 Summary(pl.UTF-8):      Fonty URW w formacie TTF dla GhostPCL-a
50 License:        Alladin Free Public License
51 Group:          Fonts
52 Requires(post,postun):  fontpostinst
53
54 %description urwfonts
55 URW fonts in TTF format for GhostPCL.
56
57 %description urwfonts -l pl.UTF-8
58 Fonty URW w formacie TTF dla GhostPCL-a.
59
60 %prep
61 %setup -q -n ghostpdl-%{version} -a1
62 %patch0 -p1
63 %patch1 -p1
64
65 %build
66 %{__make} -j1 \
67         CC="%{__cc}" \
68         XCFLAGS="%{rpmcflags}" \
69         XLDFLAGS="%{rpmldflags}" \
70         SHARE_JPEG=1
71
72 %install
73 rm -rf $RPM_BUILD_ROOT
74 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/fonts/TTF}
75 install language_switch/obj/pspcl6 main/obj/pcl6 tools/pcl2pdfwr xps/obj/gxps $RPM_BUILD_ROOT%{_bindir}
76 install urwfonts*/*.ttf $RPM_BUILD_ROOT%{_datadir}/fonts/TTF
77
78 %clean
79 rm -rf $RPM_BUILD_ROOT
80
81 %post urwfonts
82 fontpostinst TTF
83
84 %files
85 %defattr(644,root,root,755)
86 %doc README.txt doc/*
87 %attr(755,root,root) %{_bindir}/*
88
89 %files urwfonts
90 %defattr(644,root,root,755)
91 %{_datadir}/fonts/TTF
This page took 0.098752 seconds and 2 git commands to generate.