packages: pslib/pslib.spec, pslib/pslib-getline.patch (NEW) - up to 0.4.1

arekm arekm at pld-linux.org
Tue Jul 14 22:06:09 CEST 2009


Author: arekm                        Date: Tue Jul 14 20:06:09 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- up to 0.4.1

---- Files affected:
packages/pslib:
   pslib.spec (1.8 -> 1.9) , pslib-getline.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/pslib/pslib.spec
diff -u packages/pslib/pslib.spec:1.8 packages/pslib/pslib.spec:1.9
--- packages/pslib/pslib.spec:1.8	Sun Jul 12 15:28:01 2009
+++ packages/pslib/pslib.spec	Tue Jul 14 22:06:04 2009
@@ -2,15 +2,17 @@
 Summary:	The pslib C-library to create PostScript on the fly
 Summary(pl.UTF-8):	Biblioteka do generowania w locie plików PostScript
 Name:		pslib
-Version:	0.2.5
-Release:	3
+Version:	0.4.1
+Release:	1
 License:	LGPL
 Group:		Libraries
 Source0:	http://dl.sourceforge.net/pslib/%{name}-%{version}.tar.gz
-# Source0-md5:	12cf52461658fe32524975896771b66d
+# Source0-md5:	78693d87d89fe7fcc7bc45e54b7b64a6
+Patch0:		%{name}-getline.patch
 URL:		http://pslib.sourceforge.net/
 BuildRequires:	autoconf
 BuildRequires:	automake
+BuildRequires:	libtool
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -57,8 +59,10 @@
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
+%{__libtoolize}
 %{__aclocal}
 %{__autoconf}
 %{__automake}
@@ -91,6 +95,7 @@
 %{_libdir}/lib*.la
 %{_includedir}/*
 %{_pkgconfigdir}/*
+%{_mandir}/man3/*.3*
 
 %files static
 %defattr(644,root,root,755)
@@ -102,6 +107,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.9  2009/07/14 20:06:04  arekm
+- up to 0.4.1
+
 Revision 1.8  2009/07/12 13:28:01  arekm
 - release 3
 

================================================================
Index: packages/pslib/pslib-getline.patch
diff -u /dev/null packages/pslib/pslib-getline.patch:1.1
--- /dev/null	Tue Jul 14 22:06:09 2009
+++ packages/pslib/pslib-getline.patch	Tue Jul 14 22:06:04 2009
@@ -0,0 +1,47 @@
+--- pslib-0.4.1/src/ps_afm.c~	2007-07-11 20:18:00.000000000 +0200
++++ pslib-0.4.1/src/ps_afm.c	2009-07-14 22:03:32.435907834 +0200
+@@ -138,7 +138,7 @@
+ 	return (int)(acc>=0? floor(acc+0.5) : ceil(acc-0.5) ) ;
+ }
+ 
+-static int getline(FILE *afmin) {
++static int xgetline(FILE *afmin) {
+ 	char *p ;
+ 	int c ;
+ 
+@@ -616,7 +616,7 @@
+ 		return(-1);
+ 	}
+ 
+-	while (getline(fp)) {
++	while (xgetline(fp)) {
+ 		switch(interest(paramstring())) {
+ 			case N:
+ 				handleprotusion(psdoc, metrics) ;
+@@ -664,7 +664,7 @@
+ 	/*
+ 	 * Read file line by line.
+ 	 */
+-	while (getline(metric->afmin)) {
++	while (xgetline(metric->afmin)) {
+ 		switch(interest(paramstring())) {
+ case FontName:
+ 			metric->fontname = paramnewstring(psdoc) ;
+@@ -1039,7 +1039,7 @@
+ 
+ 	while (1) {
+ 		while (param == NULL || *param == '\0') {
+-			if (getline(metrics->afmin) == 0)
++			if (xgetline(metrics->afmin) == 0)
+ 				ps_error(psdoc, PS_RuntimeError, _("Premature end of encoding file."));
+ 			for (p=buffer; *p != '\0'; p++)
+ 				if (*p == '%') {
+@@ -1160,7 +1160,7 @@
+ 			psdoc->free(psdoc, e);
+ 			return -1;
+ 		}
+-		while (getline(metrics->afmin)) {
++		while (xgetline(metrics->afmin)) {
+ 			for (p=buffer; *p != '\0'; p++)
+ 				if (*p == '%') {
+ 					if (ignoreligkern == 0)
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/pslib/pslib.spec?r1=1.8&r2=1.9&f=u



More information about the pld-cvs-commit mailing list