[packages/ghostpcl] - see ghostpdl.spec

qboosh qboosh at pld-linux.org
Tue Feb 7 21:00:49 CET 2017


commit f1d7f9b19fa7a61021c23883a46a42f1212c71d6
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Feb 7 21:02:30 2017 +0100

    - see ghostpdl.spec

 ghostpcl-fonts_locations.patch | 11 -------
 ghostpcl-format-security.patch | 40 -------------------------
 ghostpcl-make.patch            | 47 -----------------------------
 ghostpcl.spec                  | 68 ------------------------------------------
 4 files changed, 166 deletions(-)
---
diff --git a/ghostpcl.spec b/ghostpcl.spec
deleted file mode 100644
index 00968d6..0000000
--- a/ghostpcl.spec
+++ /dev/null
@@ -1,68 +0,0 @@
-# TODO:
-#	- prevent linking pspcl6 and pcl6 with expat
-#	- fix GS_LIB_DEFAULT path to gs_init.ps (pspcl6)
-#	  how about GS_DOT_VERSION?
-
-Summary:	PostScript, PDF and XPS interpreter and renderer
-Summary(pl.UTF-8):	Interpreter i renderer PostScriptu, PDF oraz XPS
-Name:		ghostpcl
-Version:	1.54
-Release:	9
-License:	GPL v2
-Group:		Applications/Graphics
-#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
-Patch0:		%{name}-fonts_locations.patch
-Patch1:		%{name}-make.patch
-Patch2:		%{name}-format-security.patch
-URL:		http://www.artifex.com/downloads/
-#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
-Suggests:	fonts-TTF-urw
-BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%description
-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.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.
-
-%prep
-%setup -q -n ghostpdl-%{version}
-%patch0 -p1
-%patch1 -p1
-%patch2 -p1
-
-%build
-%{__make} -j1 \
-	CC="%{__cc}" \
-	XCFLAGS="%{rpmcflags}" \
-	XLDFLAGS="%{rpmldflags}" \
-	SHARE_JPEG=1
-
-%install
-rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_bindir}
-install language_switch/obj/pspcl6 main/obj/pcl6 tools/pcl2pdfwr xps/obj/gxps $RPM_BUILD_ROOT%{_bindir}
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%files
-%defattr(644,root,root,755)
-%doc README.txt doc/ghostpdl.pdf
-%attr(755,root,root) %{_bindir}/gxps
-%attr(755,root,root) %{_bindir}/pcl2pdfwr
-%attr(755,root,root) %{_bindir}/pcl6
-%attr(755,root,root) %{_bindir}/pspcl6
diff --git a/ghostpcl-fonts_locations.patch b/ghostpcl-fonts_locations.patch
deleted file mode 100644
index 35b0328..0000000
--- a/ghostpcl-fonts_locations.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- ghostpcl_1.38p1/pl/pjparse.c.orig	2002-10-17 01:28:22.000000000 +0200
-+++ ghostpcl_1.38p1/pl/pjparse.c	2003-12-18 20:41:49.000000000 +0100
-@@ -107,7 +107,7 @@
-    there is some unnecessary overlap in the factory default and font
-    source table. */
- static const pjl_fontsource_t pjl_fontsource_table[] = {
--    { "I", "fonts/;urwfonts/;/windows/fonts/;/win95/fonts/;/winnt/fonts/" },
-+    { "I", "/usr/share/fonts/Type1/;/usr/share/fonts/TTF/" },
-     { "C", "CART0/", "" },
-     { "C1", "CART1/", "" },
-     { "C2", "CART2/", "" },
diff --git a/ghostpcl-format-security.patch b/ghostpcl-format-security.patch
deleted file mode 100644
index fc33b80..0000000
--- a/ghostpcl-format-security.patch
+++ /dev/null
@@ -1,40 +0,0 @@
---- ghostpdl-1.54/pl/plmain.c.orig	2012-11-19 00:05:12.958343465 +0100
-+++ ghostpdl-1.54/pl/plmain.c	2012-11-19 00:05:55.211675307 +0100
-@@ -266,7 +266,7 @@
-     /* Create PDL instances, etc */
-     if (pl_main_universe_init(&universe, err_buf, mem, pdl_implementation,
- 			      pjl_instance, &inst, &pl_pre_finish_page, &pl_post_finish_page) < 0) {
--	errprintf(err_buf);
-+	errprintf("%s", err_buf);
- 	return -1;
-     }
- 
-@@ -384,7 +384,7 @@
- 							pl_select_implementation(pjl_instance, &inst, r),
- 							&inst, (gs_param_list *)&params);
- 		if ( curr_instance == NULL ) {
--		    dprintf(err_buf);
-+		    dputs(err_buf);
- 		    return -1;
- 		}
- 
-@@ -447,7 +447,7 @@
- 
-     /* Dnit PDLs */
-     if (pl_main_universe_dnit(&universe, err_buf)) {
--	dprintf(err_buf);
-+	dputs(err_buf);
- 	return -1;
-     }
-     /* dnit pjl */
---- ghostpdl-1.54/pxl/pxtop.c~	2008-08-02 23:09:12.000000000 +0200
-+++ ghostpdl-1.54/pxl/pxtop.c	2012-11-19 00:18:39.224981686 +0100
-@@ -515,7 +515,7 @@
- 	   code, st, pxs)) >= 0
- 	)
- 	  { if ( (report & eBackChannel) || force_to_cout )
--	      errprintf(message);
-+	      errprintf("%s", message);
- 	    if ( report & eErrorPage )
- 	      y = px_error_page_show(message, y, pxs);
- 	  }
diff --git a/ghostpcl-make.patch b/ghostpcl-make.patch
deleted file mode 100644
index ab6efd4..0000000
--- a/ghostpcl-make.patch
+++ /dev/null
@@ -1,47 +0,0 @@
---- ghostpcl_1.38p1/gs/base/ugcclib.mak.orig	2002-06-13 01:18:14.000000000 +0200
-+++ ghostpcl_1.38p1/gs/base/ugcclib.mak	2003-12-25 18:26:48.504185696 +0100
-@@ -67,10 +67,7 @@
- GCFLAGS_WARNINGS=-Wall -Wcast-qual -Wpointer-arith -Wstrict-prototypes -Wwrite-strings
- GCFLAGS=$(GCFLAGS_NO_WARN) $(GCFLAGS_WARNINGS)
- XCFLAGS=
--CFLAGS_STANDARD=-O2
--CFLAGS_DEBUG=-g -O
--CFLAGS_PROFILE=-pg -O2
--CFLAGS=$(CFLAGS_DEBUG) $(GCFLAGS) $(XCFLAGS)
-+CFLAGS=$(GCFLAGS) $(XCFLAGS)
- LDFLAGS=$(XLDFLAGS)
- STDLIBS=-lm
- EXTRALIBS=
---- ghostpcl_1.38p1/main/pcl6_gcc.mak.orig	2002-11-22 22:20:25.000000000 +0100
-+++ ghostpcl_1.38p1/main/pcl6_gcc.mak	2003-12-25 18:28:49.802745512 +0100
-@@ -16,8 +16,8 @@
- ZSRCDIR?=../gs/zlib
- ZGENDIR?=$(GENDIR)
- ZOBJDIR?=$(GENDIR)
--SHARE_ZLIB?=0
--SHARE_LIBPNG?=0
-+SHARE_ZLIB?=1
-+SHARE_LIBPNG?=1
- 
- PNGSRCDIR?=../gs/libpng
- # only relevant if not shared
-@@ -207,7 +207,7 @@
- 
- SYNC=posync
- # some systems may need -ldl as well as pthread
--STDLIBS=-lm -lpthread -ldl
-+STDLIBS=-lm -lpthread -ldl -lz -lpng -lexpat -ljpeg
- DEVICE_DEVS=$(DD)x11.dev $(DD)x11alpha.dev $(DD)x11mono.dev $(DD)x11cmyk.dev $(DEVICES_DEVS)
- endif
- 
---- ghostpcl_1.38p1/xps/xps_gcc.mak.orig	2008-01-09 18:23:58.000000000 +0100
-+++ ghostpcl_1.38p1/xps/xps_gcc.mak	2008-04-25 16:08:18.000000000 +0200
-@@ -30,7 +30,7 @@
- PNGSRCDIR?=../gs/libpng
- EXPATSRCDIR?=../gs/expat
- 
--SHARE_EXPAT?=0
-+SHARE_EXPAT?=1
- EXPAT_CFLAGS=-DHAVE_MEMMOVE
- 
- # PLPLATFORM indicates should be set to 'ps' for language switch
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ghostpcl.git/commitdiff/f1d7f9b19fa7a61021c23883a46a42f1212c71d6



More information about the pld-cvs-commit mailing list