|
@@ -33,8 +33,8 @@ Distribution: OpenPKG
|
|
|
Class: EVAL
|
|
Class: EVAL
|
|
|
Group: Editor
|
|
Group: Editor
|
|
|
License: GPL
|
|
License: GPL
|
|
|
-Version: 2.2.2
|
|
|
|
|
-Release: 20041215
|
|
|
|
|
|
|
+Version: 2.2.3
|
|
|
|
|
+Release: 20050113
|
|
|
|
|
|
|
|
# list of sources
|
|
# list of sources
|
|
|
Source0: http://osdn.dl.sourceforge.net/sourceforge/abiword/abiword-%{version}.tar.gz
|
|
Source0: http://osdn.dl.sourceforge.net/sourceforge/abiword/abiword-%{version}.tar.gz
|
|
@@ -53,9 +53,14 @@ Patch0: abiword.patch
|
|
|
# build information
|
|
# build information
|
|
|
Prefix: %{l_prefix}
|
|
Prefix: %{l_prefix}
|
|
|
BuildRoot: %{l_buildroot}
|
|
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
|
|
AutoReq: no
|
|
|
AutoReqProv: no
|
|
AutoReqProv: no
|
|
|
|
|
|
|
@@ -80,22 +85,22 @@ AutoReqProv: no
|
|
|
%prep
|
|
%prep
|
|
|
%setup -q
|
|
%setup -q
|
|
|
%patch -p0
|
|
%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 2
|
|
|
%setup -q -T -D -a 4
|
|
%setup -q -T -D -a 4
|
|
|
%setup -q -T -D -a 6
|
|
%setup -q -T -D -a 6
|
|
|
%setup -q -T -D -a 8
|
|
%setup -q -T -D -a 8
|
|
|
%setup -q -T -D -a 10
|
|
%setup -q -T -D -a 10
|
|
|
;;
|
|
;;
|
|
|
- *86*-* )
|
|
|
|
|
|
|
+ alpha*-* | amd64-* | ia64-* | ix86-* )
|
|
|
%setup -q -T -D -a 1
|
|
%setup -q -T -D -a 1
|
|
|
%setup -q -T -D -a 3
|
|
%setup -q -T -D -a 3
|
|
|
%setup -q -T -D -a 5
|
|
%setup -q -T -D -a 5
|
|
|
%setup -q -T -D -a 7
|
|
%setup -q -T -D -a 7
|
|
|
%setup -q -T -D -a 9
|
|
%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
|
|
exit 1
|
|
|
;;
|
|
;;
|
|
|
esac
|
|
esac
|
|
@@ -115,10 +120,6 @@ AutoReqProv: no
|
|
|
%{l_shtool} subst \
|
|
%{l_shtool} subst \
|
|
|
-e 's;\(AP_PREF_DEFAULT_SpellDirectory.*\)dictionary;\1abiword/dictionary;' \
|
|
-e 's;\(AP_PREF_DEFAULT_SpellDirectory.*\)dictionary;\1abiword/dictionary;' \
|
|
|
abi/src/wp/ap/xp/ap_Prefs_SchemeIds.h
|
|
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 \
|
|
%{l_shtool} subst \
|
|
|
-e 's;\(/templates/\);/abiword\1;' \
|
|
-e 's;\(/templates/\);/abiword\1;' \
|
|
|
abi/src/text/ptbl/xp/pd_Document.cpp \
|
|
abi/src/text/ptbl/xp/pd_Document.cpp \
|
|
@@ -150,7 +151,7 @@ AutoReqProv: no
|
|
|
abi/src/wp/ap/win/ap_Win32Dialog_Background.cpp \
|
|
abi/src/wp/ap/win/ap_Win32Dialog_Background.cpp \
|
|
|
abi/src/wp/ap/xp/ap_EditMethods.cpp
|
|
abi/src/wp/ap/xp/ap_EditMethods.cpp
|
|
|
%{l_shtool} subst \
|
|
%{l_shtool} subst \
|
|
|
- -e 's;/@PACKAGE@;;' \
|
|
|
|
|
|
|
+ -e 's;\/@PACKAGE@;;' \
|
|
|
`find . -name "GNUmakefile.in" -print`
|
|
`find . -name "GNUmakefile.in" -print`
|
|
|
|
|
|
|
|
%build
|
|
%build
|
|
@@ -185,13 +186,16 @@ AutoReqProv: no
|
|
|
--disable-gnome \
|
|
--disable-gnome \
|
|
|
--disable-shared \
|
|
--disable-shared \
|
|
|
--enable-extra-optimization \
|
|
--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-libiconv=%{l_prefix} \
|
|
|
- --with-libxml2=%{l_prefix} \
|
|
|
|
|
|
|
+ --with-libpng=%{l_prefix} \
|
|
|
--with-popt=%{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
|
|
# build the program
|
|
|
%{l_make} %{l_mflags}
|
|
%{l_make} %{l_mflags}
|