]> git.pld-linux.org Git - packages/ocapi.git/commitdiff
- added opt patch (don't override optflags with -O0) master auto/th/ocapi-1.4.3-3
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 12 Dec 2020 08:42:03 +0000 (09:42 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Sat, 12 Dec 2020 08:42:03 +0000 (09:42 +0100)
- added format patch (fix missing format string)
- release 3

ocapi-format.patch [new file with mode: 0644]
ocapi-opt.patch [new file with mode: 0644]
ocapi.spec

diff --git a/ocapi-format.patch b/ocapi-format.patch
new file mode 100644 (file)
index 0000000..1febe4f
--- /dev/null
@@ -0,0 +1,11 @@
+--- ocapi-1.4.3/buffers.c.orig 2008-11-21 00:02:33.000000000 +0100
++++ ocapi-1.4.3/buffers.c      2020-12-12 09:36:57.862253188 +0100
+@@ -594,7 +594,7 @@
+ {
+     StringBuffer *sb = sbNew(NULL);
+     sbAppend(sb, "123456789\n");
+-    printf(sb->sContent);
++    fputs(sb->sContent, stdout);
+     sbInsert_at(sb, "abc", 0);
+     printf("abc at 0: %s\n", sb->sContent);
+     sbInsert_at(sb, "def", 10);
diff --git a/ocapi-opt.patch b/ocapi-opt.patch
new file mode 100644 (file)
index 0000000..87aeeed
--- /dev/null
@@ -0,0 +1,13 @@
+--- ocapi-1.4.3/Makefile.am.orig       2009-04-22 23:19:38.000000000 +0200
++++ ocapi-1.4.3/Makefile.am    2020-12-12 09:32:04.277177008 +0100
+@@ -29,9 +29,7 @@
+ AM_YFLAGS = --defines --verbose --debug
+ AM_LFLAGS = -8
+ AM_CPPFLAGS = -I$(top_srcdir)
+-AM_CFLAGS = -g3 -O0 -Wall -W
+-#added the following line to enforce the AM_CFLAGS value set above--more for debugging purposes
+-CFLAGS =
++AM_CFLAGS = -Wall -W
+ # These are not used by automake but are often useful for certain types of
+ # debugging. The best way to use these is to run configure as:
index 3caf065adb1600cf7c25cdf056a285dd151ca1ae..098f320ecd8b3e3c7d51520952bd4f5964e5e398 100644 (file)
@@ -6,13 +6,15 @@ Summary:      The OPeNDAP C DAP2 library (client-side only)
 Summary(pl.UTF-8):     Biblioteka OPeNDAP DAP2 dla C (tylko strona kliencka)
 Name:          ocapi
 Version:       1.4.3
-Release:       2
+Release:       3
 License:       LGPL v2.1+
 Group:         Libraries
 Source0:       http://www.opendap.org/pub/OCAPI/source/%{name}-%{version}.tar.gz
 # Source0-md5: c1a4f9391d7f88b0f9e93bfcb9c5181f
 Patch0:                %{name}-libdir.patch
 Patch1:                %{name}-curl.patch
+Patch2:                %{name}-opt.patch
+Patch3:                %{name}-format.patch
 URL:           http://opendap.org/ocapi/
 BuildRequires: autoconf >= 2.57
 BuildRequires: automake
@@ -78,6 +80,8 @@ Statyczna biblioteka OCAPI.
 %setup -q
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
+%patch3 -p1
 
 %build
 %{__libtoolize}
This page took 0.2021 seconds and 4 git commands to generate.