]> git.pld-linux.org Git - packages/pslib.git/commitdiff
- up to 0.4.1 auto/th/pslib-0_4_1-1
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Tue, 14 Jul 2009 20:06:04 +0000 (20:06 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    pslib-getline.patch -> 1.1
    pslib.spec -> 1.9

pslib-getline.patch [new file with mode: 0644]
pslib.spec

diff --git a/pslib-getline.patch b/pslib-getline.patch
new file mode 100644 (file)
index 0000000..9eb9e4f
--- /dev/null
@@ -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)
index 7e585605b7e9eb735c43dbcbf2ae4f3d20cf2373..96b59d1561fed8f12ba3adf70d08901f960ea1bd 100644 (file)
@@ -1,15 +1,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
@@ -56,8 +58,10 @@ Statyczna biblioteka pslib.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
+%{__libtoolize}
 %{__aclocal}
 %{__autoconf}
 %{__automake}
@@ -90,6 +94,7 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/lib*.la
 %{_includedir}/*
 %{_pkgconfigdir}/*
+%{_mandir}/man3/*.3*
 
 %files static
 %defattr(644,root,root,755)
This page took 0.063094 seconds and 4 git commands to generate.