SHA256
6
0
forked from pool/wv

Accepting request 196593 from home:elvigia:branches:devel:libraries:c_c++

- Also, cleanup buildrequires, libtiff is not used  and zlib-devel
  is required.

- wv-noansi.patch: Do not build with -ansi , but in gnu99 mode with 
  system extensions enabled

OBS-URL: https://build.opensuse.org/request/show/196593
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/wv?expand=0&rev=14
This commit is contained in:
Michal Vyskocil 2013-08-28 08:36:09 +00:00 committed by Git OBS Bridge
parent a4a7bb9084
commit 9b7af4f0ae
3 changed files with 43 additions and 2 deletions

28
wv-noansi.patch Normal file
View File

@ -0,0 +1,28 @@
--- wv-1.2.2.orig/configure.ac
+++ wv-1.2.2/configure.ac
@@ -53,9 +53,12 @@ AH_TOP([
dnl Checks for programs.
-AC_PROG_CC
+AC_PROG_CC_STDC
+AC_USE_SYSTEM_EXTENSIONS
+AC_SYS_LARGEFILE
+
if test "x$GCC" = "xyes"; then
- ANSI_CFLAGS="-ansi"
+ ANSI_CFLAGS=""
else
ANSI_CFLAGS=""
fi
--- wv-1.2.2.orig/wvWare.c
+++ wv-1.2.2/wvWare.c
@@ -30,8 +30,6 @@
#include "wv.h"
#include "getopt.h"
-/* strdup isn't declared in <string.h> for `gcc -ansi'; declare it here */
-extern char *strdup (const char *);
extern char *str_copy(char *d, size_t n, char *s);
extern char *str_append(char *d, size_t n, char *s);

View File

@ -1,3 +1,15 @@
-------------------------------------------------------------------
Wed Aug 28 02:50:03 UTC 2013 - crrodriguez@opensuse.org
- Also, cleanup buildrequires, libtiff is not used and zlib-devel
is required.
-------------------------------------------------------------------
Wed Aug 28 01:47:05 UTC 2013 - crrodriguez@opensuse.org
- wv-noansi.patch: Do not build with -ansi , but in gnu99 mode with
system extensions enabled
-------------------------------------------------------------------
Sat Apr 13 20:30:43 UTC 2013 - dimstar@opensuse.org

View File

@ -20,11 +20,11 @@ Name: wv
%define lname libwv-1_2-1
BuildRequires: glib2-devel
BuildRequires: libgsf-devel
BuildRequires: libtiff-devel
BuildRequires: libtool
BuildRequires: libwmf-devel
BuildRequires: libxml2-devel
BuildRequires: pkgconfig
BuildRequires: zlib-devel
Version: 1.2.2
Release: 0
Summary: Tools for Importing Microsoft Word (tm) Documents
@ -39,6 +39,7 @@ Patch8: wv-1.2.2-overflow.patch
Patch9: %{name}-1.2.2-fiximplicit.patch
Patch10: wv-strcasecmp.patch
Patch11: wv-gsf.patch
Patch12: wv-noansi.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: w3m
@ -87,7 +88,7 @@ Authors:
%if 0%{?suse_version} > 1230
%patch11 -p1
%endif
%patch12 -p1
%build
autoreconf -f -i --verbose
%define warn_flags -Wall -Wstrict-prototypes -Wpointer-arith -Wformat -Wformat-security