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:
parent
a4a7bb9084
commit
9b7af4f0ae
28
wv-noansi.patch
Normal file
28
wv-noansi.patch
Normal 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);
|
12
wv.changes
12
wv.changes
@ -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
|
Sat Apr 13 20:30:43 UTC 2013 - dimstar@opensuse.org
|
||||||
|
|
||||||
|
5
wv.spec
5
wv.spec
@ -20,11 +20,11 @@ Name: wv
|
|||||||
%define lname libwv-1_2-1
|
%define lname libwv-1_2-1
|
||||||
BuildRequires: glib2-devel
|
BuildRequires: glib2-devel
|
||||||
BuildRequires: libgsf-devel
|
BuildRequires: libgsf-devel
|
||||||
BuildRequires: libtiff-devel
|
|
||||||
BuildRequires: libtool
|
BuildRequires: libtool
|
||||||
BuildRequires: libwmf-devel
|
BuildRequires: libwmf-devel
|
||||||
BuildRequires: libxml2-devel
|
BuildRequires: libxml2-devel
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
|
BuildRequires: zlib-devel
|
||||||
Version: 1.2.2
|
Version: 1.2.2
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Tools for Importing Microsoft Word (tm) Documents
|
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
|
Patch9: %{name}-1.2.2-fiximplicit.patch
|
||||||
Patch10: wv-strcasecmp.patch
|
Patch10: wv-strcasecmp.patch
|
||||||
Patch11: wv-gsf.patch
|
Patch11: wv-gsf.patch
|
||||||
|
Patch12: wv-noansi.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
Requires: w3m
|
Requires: w3m
|
||||||
|
|
||||||
@ -87,7 +88,7 @@ Authors:
|
|||||||
%if 0%{?suse_version} > 1230
|
%if 0%{?suse_version} > 1230
|
||||||
%patch11 -p1
|
%patch11 -p1
|
||||||
%endif
|
%endif
|
||||||
|
%patch12 -p1
|
||||||
%build
|
%build
|
||||||
autoreconf -f -i --verbose
|
autoreconf -f -i --verbose
|
||||||
%define warn_flags -Wall -Wstrict-prototypes -Wpointer-arith -Wformat -Wformat-security
|
%define warn_flags -Wall -Wstrict-prototypes -Wpointer-arith -Wformat -Wformat-security
|
||||||
|
Loading…
Reference in New Issue
Block a user