]> git.pld-linux.org Git - packages/ghostpcl.git/blobdiff - ghostpcl.spec
- rebuild with expat 2.1.0
[packages/ghostpcl.git] / ghostpcl.spec
index 9dce68e0b8a82dcc9732e34de19d310932c5c3c1..1c955d0e7224ded227d36b0b0a4fc873265233cb 100644 (file)
@@ -1,16 +1,36 @@
-Summary:       PostScript & PDF interpreter and renderer
-Summary(pl):   Interpreter i renderer PostScriptu i PDF
+# TODO:
+#      - prevent linking pspcl6 and pcl6 with expat
+#      - fix GS_LIB_DEFAULT path to gs_init.ps (pspcl6)
+#        how about GS_DOT_VERSION?
+#      - rename urwfonts subpackage to font-TTF-urw
+#      - create alternate Type1 font subpackage:
+#        http://mirror.cs.wisc.edu/pub/mirrors/ghost/AFPL/GhostPCL/urwfonts_t1-1.40.tar.bz2
+
+%define        urwfonts_ver    1.41
+
+Summary:       PostScript, PDF and XPS interpreter and renderer
+Summary(pl.UTF-8):     Interpreter i renderer PostScriptu, PDF oraz XPS
 Name:          ghostpcl
-Version:       1.38p1
-Release:       1
-License:       Alladin Free Public License (see Public.htm)
+Version:       1.54
+Release:       7
+License:       GPL v2
 Group:         Applications/Graphics
-Source0:       ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/AFPL/GhostPCL/%{name}_%{version}.tar.gz
-# Source0-md5: 5067678a6b3b682423f74c92b5c82013
+#Source0:      http://mirror.cs.wisc.edu/pub/mirrors/ghost/GPL/ghostpdl/ghostpdl-%{version}.tar.bz2
+#Source0:      http://www.ctan.org/get/support/ghostscript/GPL/ghostpdl/ghostpdl-%{version}.tar.bz2
+Source0:       http://ghostscript.com/releases/ghostpdl-%{version}.tar.bz2
+# Source0-md5: 228f96df51d192b95bc4d9340015aa9e
+#Source1:      http://mirror.cs.wisc.edu/pub/mirrors/ghost/AFPL/GhostPCL/urwfonts-%{urwfonts_ver}.tar.bz2
+Source1:       http://www.ctan.org/get/nonfree/support/ghostscript/AFPL/GhostPCL/urwfonts-%{urwfonts_ver}.tar.bz2
+# Source1-md5: 6d65230fa5e9783a0b5942b55dc5219f
 Patch0:                %{name}-fonts_locations.patch
 Patch1:                %{name}-make.patch
 URL:           http://www.artifex.com/downloads/
-BuildRequires: XFree86-devel
+#BuildRequires:        XFree86-devel
+BuildRequires: expat-devel
+BuildRequires: libjpeg-devel
+BuildRequires: libpng-devel
+BuildRequires: xorg-lib-libXext-devel
+BuildRequires: xorg-lib-libXt-devel
 BuildRequires: zlib-devel
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -19,47 +39,53 @@ GhostPCL is Artifex Software's implementation of the PCL-5(TM) and
 PCL-XL(TM) family of page description languages. For more information
 please see the documentation included with the source package.
 
-%description -l pl
-GhostPCL jest implementacj± jêzyków z rodzin PCL-5(TM) i PCL-XL(TM)
-opisuj±cych stronê. Wiêcej informacji znajduje siê w dokumentacji
-za³±czonej do pakietu.
+%description -l pl.UTF-8
+GhostPCL jest implementacją języków z rodzin PCL-5(TM) i PCL-XL(TM)
+opisujących stronę. Więcej informacji znajduje się w dokumentacji
+załączonej do pakietu.
 
 %package urwfonts
 Summary:       URW fonts in TTF format for GhostPCL
-Summary(pl):   Fonty URW w formacie TTF dla GhostPCL-a
-Group:         Applications/Graphics
-Requires:      %{name} = %{version}
+Summary(pl.UTF-8):     Fonty URW w formacie TTF dla GhostPCL-a
+License:       Alladin Free Public License
+Group:         Fonts
+Requires(post,postun): fontpostinst
 
 %description urwfonts
 URW fonts in TTF format for GhostPCL.
 
-%description urwfonts -l pl
+%description urwfonts -l pl.UTF-8
 Fonty URW w formacie TTF dla GhostPCL-a.
 
 %prep
-%setup -q -n %{name}_%{version}
+%setup -q -n ghostpdl-%{version} -a1
 %patch0 -p1
 %patch1 -p1
 
 %build
-%{__make} pcl6 \
-       OPTFLAGS="%{rpmcflags}"
+%{__make} -j1 \
+       CC="%{__cc}" \
+       XCFLAGS="%{rpmcflags}" \
+       XLDFLAGS="%{rpmldflags}" \
+       SHARE_JPEG=1
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{name}}
-
-install main/obj/pcl6 $RPM_BUILD_ROOT%{_bindir}
-install urwfonts/*.ttf $RPM_BUILD_ROOT%{_datadir}/%{name}
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/fonts/TTF}
+install language_switch/obj/pspcl6 main/obj/pcl6 tools/pcl2pdfwr xps/obj/gxps $RPM_BUILD_ROOT%{_bindir}
+install urwfonts*/*.ttf $RPM_BUILD_ROOT%{_datadir}/fonts/TTF
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post urwfonts
+fontpostinst TTF
+
 %files
 %defattr(644,root,root,755)
-%doc NEWS README doc/*
-%attr(755,root,root) %{_bindir}/pcl*
+%doc README.txt doc/*
+%attr(755,root,root) %{_bindir}/*
 
 %files urwfonts
 %defattr(644,root,root,755)
-%{_datadir}/%{name}
+%{_datadir}/fonts/TTF
This page took 0.063891 seconds and 4 git commands to generate.