]>
Commit | Line | Data |
---|---|---|
0da936e5 TP |
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 | |
903f02ae | 8 | |
9 | %define urwfonts_ver 1.41 | |
10 | ||
0da936e5 TP |
11 | Summary: PostScript, PDF and XPS interpreter and renderer |
12 | Summary(pl.UTF-8): Interpreter i renderer PostScriptu, PDF oraz XPS | |
24f8364c | 13 | Name: ghostpcl |
2eaaf284 | 14 | Version: 1.52 |
7db87e8d | 15 | Release: 2 |
903f02ae | 16 | License: GPL |
24f8364c | 17 | Group: Applications/Graphics |
903f02ae | 18 | #Source0: http://mirror.cs.wisc.edu/pub/mirrors/ghost/GPL/ghostpdl/ghostpdl-%{version}.tar.bz2 |
2eaaf284 TP |
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: 7bc095bd6fd67e52a758608accb23bef | |
22 | #Source1: http://mirror.cs.wisc.edu/pub/mirrors/ghost/AFPL/GhostPCL/urwfonts-%{urwfonts_ver}.tar.bz2 | |
903f02ae | 23 | Source1: http://www.ctan.org/get/nonfree/support/ghostscript/AFPL/GhostPCL/urwfonts-%{urwfonts_ver}.tar.bz2 |
24 | # Source1-md5: 6d65230fa5e9783a0b5942b55dc5219f | |
24f8364c | 25 | Patch0: %{name}-fonts_locations.patch |
4e2d5f14 | 26 | Patch1: %{name}-make.patch |
24f8364c | 27 | URL: http://www.artifex.com/downloads/ |
903f02ae | 28 | #BuildRequires: XFree86-devel |
2eaaf284 TP |
29 | BuildRequires: expat-devel |
30 | BuildRequires: libjpeg-devel | |
31 | BuildRequires: libpng-devel | |
4e2d5f14 | 32 | BuildRequires: zlib-devel |
24f8364c | 33 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
34 | ||
35 | %description | |
4e2d5f14 JB |
36 | GhostPCL is Artifex Software's implementation of the PCL-5(TM) and |
37 | PCL-XL(TM) family of page description languages. For more information | |
24f8364c | 38 | please see the documentation included with the source package. |
39 | ||
1330c276 JR |
40 | %description -l pl.UTF-8 |
41 | GhostPCL jest implementacją języków z rodzin PCL-5(TM) i PCL-XL(TM) | |
42 | opisujących stronę. Więcej informacji znajduje się w dokumentacji | |
43 | załączonej do pakietu. | |
24f8364c | 44 | |
45 | %package urwfonts | |
4e2d5f14 | 46 | Summary: URW fonts in TTF format for GhostPCL |
49ec31e7 | 47 | Summary(pl.UTF-8): Fonty URW w formacie TTF dla GhostPCL-a |
903f02ae | 48 | License: Alladin Free Public License |
0da936e5 | 49 | Group: Fonts |
2eaaf284 | 50 | Requires(post,postun): fontpostinst |
24f8364c | 51 | |
52 | %description urwfonts | |
4e2d5f14 | 53 | URW fonts in TTF format for GhostPCL. |
24f8364c | 54 | |
1330c276 | 55 | %description urwfonts -l pl.UTF-8 |
4e2d5f14 | 56 | Fonty URW w formacie TTF dla GhostPCL-a. |
24f8364c | 57 | |
58 | %prep | |
903f02ae | 59 | %setup -q -n ghostpdl-%{version} -a1 |
4e2d5f14 JB |
60 | %patch0 -p1 |
61 | %patch1 -p1 | |
24f8364c | 62 | |
63 | %build | |
2eaaf284 TP |
64 | %{__make} -j1 \ |
65 | XCFLAGS="%{rpmcflags}" \ | |
66 | XLDFLAGS="--as-needed" \ | |
67 | SHARE_JPEG=1 | |
24f8364c | 68 | |
69 | %install | |
70 | rm -rf $RPM_BUILD_ROOT | |
2eaaf284 | 71 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/fonts/TTF} |
0da936e5 | 72 | install language_switch/obj/pspcl6 main/obj/pcl6 tools/pcl2pdfwr xps/obj/gxps $RPM_BUILD_ROOT%{_bindir} |
2eaaf284 | 73 | install urwfonts*/*.ttf $RPM_BUILD_ROOT%{_datadir}/fonts/TTF |
24f8364c | 74 | |
75 | %clean | |
76 | rm -rf $RPM_BUILD_ROOT | |
77 | ||
2eaaf284 TP |
78 | %post urwfonts |
79 | fontpostinst TTF | |
80 | ||
24f8364c | 81 | %files |
82 | %defattr(644,root,root,755) | |
903f02ae | 83 | %doc README.txt doc/* |
0da936e5 | 84 | %attr(755,root,root) %{_bindir}/* |
24f8364c | 85 | |
86 | %files urwfonts | |
87 | %defattr(644,root,root,755) | |
2eaaf284 | 88 | %{_datadir}/fonts/TTF |