OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Michael Schloh
Root: /e/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 13-Jan-2005 15:43:56
Branch: HEAD Handle: 2005011314435500
Modified files:
openpkg-src/abiword abiword.patch abiword.spec
Log:
clean up, add platforms, correct dependencies, use external expat and
xml libs, patch flawed libole2 buildconf, and... upgrading package:
abiword 2.2.2 -> 2.2.3
Summary:
Revision Changes Path
1.6 +61 -0 openpkg-src/abiword/abiword.patch
1.37 +23 -19 openpkg-src/abiword/abiword.spec
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/abiword/abiword.patch
============================================================================
$ cvs diff -u -r1.5 -r1.6 abiword.patch
--- openpkg-src/abiword/abiword.patch 22 Oct 2004 11:52:00 -0000 1.5
+++ openpkg-src/abiword/abiword.patch 13 Jan 2005 14:43:55 -0000 1.6
@@ -34,3 +34,64 @@
}
}
+Index: wv/configure.ac
+--- wv/configure.ac.orig 2004-11-30 02:10:14 +0100
++++ wv/configure.ac 2005-01-13 15:12:22 +0100
+@@ -77,7 +77,7 @@
+ dnl AC_TYPE_SIGNAL
+ dnl AC_FUNC_WAIT3
+
+-AC_CHECK_HEADERS(fcntl.h io.h malloc.h sys/file.h sys/ioctl.h unistd.h)
++AC_CHECK_HEADERS(fcntl.h io.h malloc.h sys/file.h sys/ioctl.h sys/types.h
unistd.h)
+
+ dnl Checks for typedefs, structures, and compiler characteristics.
+
+Index: wv/configure
+--- wv/configure.orig 2004-11-30 02:10:13 +0100
++++ wv/configure 2005-01-13 15:12:33 +0100
+@@ -1262,7 +1262,7 @@
+ fi
+
+
+-for ac_hdr in fcntl.h io.h malloc.h sys/file.h sys/ioctl.h unistd.h
++for ac_hdr in fcntl.h io.h malloc.h sys/file.h sys/ioctl.h sys/types.h
unistd.h
+ do
+ ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
+ echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
+Index: wv/libole2/ms-ole.h
+--- wv/libole2/ms-ole.h.orig 2005-01-13 15:14:57 +0100
++++ wv/libole2/ms-ole.h 2005-01-13 15:17:01 +0100
+@@ -11,24 +11,26 @@
+ #ifndef MS_OLE_H
+ #define MS_OLE_H
+
++/* #include <libole2-config.h> */
++#ifdef HAVE_CONFIG_H
++#include "config.h"
++#endif
++
+ #ifdef __cplusplus
+ extern "C" {
+ #endif
+
+ /* This should be done in glib */
+ #if !defined(_WIN32) || defined(__CYGWIN__)
+-#if defined(__QNXNTO__)
+-# include <sys/types.h>
+-#endif
+-# include <fcntl.h> /* for mode_t */
+-#else
+-# include <stdlib.h>
+-#if defined(__MINGW32__) || defined(__WINE__)
++#if defined HAVE_SYS_TYPES_H
+ # include <sys/types.h>
+ #else
+ typedef unsigned long mode_t;
+ typedef long off_t;
+ #endif
++# include <fcntl.h> /* for mode_t */
++#else
++# include <stdlib.h>
+ #ifndef _SSIZE_T_
+ typedef size_t ssize_t;
+ #endif
@@ .
patch -p0 <<'@@ .'
Index: openpkg-src/abiword/abiword.spec
============================================================================
$ cvs diff -u -r1.36 -r1.37 abiword.spec
--- openpkg-src/abiword/abiword.spec 1 Jan 2005 10:47:38 -0000 1.36
+++ openpkg-src/abiword/abiword.spec 13 Jan 2005 14:43:55 -0000 1.37
@@ -33,8 +33,8 @@
Class: EVAL
Group: Editor
License: GPL
-Version: 2.2.2
-Release: 20041215
+Version: 2.2.3
+Release: 20050113
# list of sources
Source0:
http://osdn.dl.sourceforge.net/sourceforge/abiword/abiword-%{version}.tar.gz
@@ -53,9 +53,14 @@
# build information
Prefix: %{l_prefix}
BuildRoot: %{l_buildroot}
-BuildPreReq: OpenPKG, openpkg >= 20040130, fontconfig, pkgconfig, fribidi,
xft
-BuildPreReq: glib2, glib2::with_threads = yes, libiconv, libglade, zlib,
popt, png
-PreReq: OpenPKG, openpkg >= 20040130, fontconfig
+BuildPreReq: OpenPKG, openpkg >= 20040130, pkgconfig
+BuildPreReq: glib2, glib2::with_threads = yes, expat
+BuildPreReq: fontconfig, fribidi, jpeg, libiconv
+BuildPreReq: libglade, popt, png, xft, libxml, zlib
+PreReq: OpenPKG, openpkg >= 20040130
+PreReq: glib2, glib2::with_threads = yes, expat
+PreReq: fontconfig, fribidi, jpeg, libiconv
+PreReq: libglade, popt, png, xft, libxml, zlib
AutoReq: no
AutoReqProv: no
@@ -80,22 +85,22 @@
%prep
%setup -q
%patch -p0
- case "%{l_platform -t}" in
- sun4*-* )
+ case "%{l_platform -c}" in
+ hppa*-* | ppc*-* | sparc*-* )
%setup -q -T -D -a 2
%setup -q -T -D -a 4
%setup -q -T -D -a 6
%setup -q -T -D -a 8
%setup -q -T -D -a 10
;;
- *86*-* )
+ alpha*-* | amd64-* | ia64-* | ix86-* )
%setup -q -T -D -a 1
%setup -q -T -D -a 3
%setup -q -T -D -a 5
%setup -q -T -D -a 7
%setup -q -T -D -a 9
;;
- * ) echo "Only SPARC and ix86 architectures are supported" 2>&1
+ * ) echo "Only HPPA, PowerPC, SPARC, Alpha, AMD, ia64, and ix86
architectures are supported" 2>&1
exit 1
;;
esac
@@ -116,10 +121,6 @@
-e
's;\(AP_PREF_DEFAULT_SpellDirectory.*\)dictionary;\1abiword/dictionary;' \
abi/src/wp/ap/xp/ap_Prefs_SchemeIds.h
%{l_shtool} subst \
- -e 's;\(\/dictionary\/\);/abiword\1;' \
- abi/src/other/spell/xp/barbarisms.cpp \
- abi/src/other/spell/xp/ispell_checker.cpp
- %{l_shtool} subst \
-e 's;\(/templates/\);/abiword\1;' \
abi/src/text/ptbl/xp/pd_Document.cpp \
abi/src/wp/ap/qnx/ap_QNXDialog_New.cpp \
@@ -150,7 +151,7 @@
abi/src/wp/ap/win/ap_Win32Dialog_Background.cpp \
abi/src/wp/ap/xp/ap_EditMethods.cpp
%{l_shtool} subst \
- -e 's;/@PACKAGE@;;' \
+ -e 's;\/@PACKAGE@;;' \
`find . -name "GNUmakefile.in" -print`
%build
@@ -185,13 +186,16 @@
--disable-gnome \
--disable-shared \
--enable-extra-optimization \
- --with-zlib=%{l_prefix} \
- --with-libpng=%{l_prefix} \
+ --with-expat=%{l_prefix} \
+ --with-libjpeg-prefix=%{l_prefix} \
--with-libiconv=%{l_prefix} \
- --with-libxml2=%{l_prefix} \
+ --with-libpng=%{l_prefix} \
--with-popt=%{l_prefix} \
- --with-pspell=no \
- --with-libjpeg-prefix=%{l_prefix}
+ --with-zlib=%{l_prefix} \
+ --with-pspell=no
+
+ # ensure that no undesired embedded software is built
+ rm -rf expat fribidi libiconv libpng popt zlib
# build the program
%{l_make} %{l_mflags}
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [email protected]