|
|
@@ -34,10 +34,11 @@ Class: PLUS
|
|
|
Group: Text
|
|
|
License: GPL
|
|
|
Version: 0.6.7
|
|
|
-Release: 20040509
|
|
|
+Release: 20040510
|
|
|
|
|
|
# package options
|
|
|
%option with_agrep no
|
|
|
+%option with_utf8 no
|
|
|
|
|
|
# list of sources
|
|
|
Source0: http://laurikari.net/tre/tre-%{version}.tar.bz2
|
|
|
@@ -47,6 +48,10 @@ Prefix: %{l_prefix}
|
|
|
BuildRoot: %{l_buildroot}
|
|
|
BuildPreReq: OpenPKG, openpkg >= 20040130, gcc
|
|
|
PreReq: OpenPKG, openpkg >= 20040130
|
|
|
+%if "%{with_utf8}" == "yes"
|
|
|
+BuildPreReq: libutf8
|
|
|
+PreReq: libutf8
|
|
|
+%endif
|
|
|
AutoReq: no
|
|
|
AutoReqProv: no
|
|
|
|
|
|
@@ -78,6 +83,7 @@ AutoReqProv: no
|
|
|
CC="%{l_cc}" \
|
|
|
CFLAGS="%{l_cflags -O}" \
|
|
|
CPPFLAGS="%{l_cppflags}" \
|
|
|
+ LDFLAGS="%{l_ldflags}" \
|
|
|
./configure \
|
|
|
--prefix=%{l_prefix} \
|
|
|
%if "%{with_agrep}" == "yes"
|
|
|
@@ -85,10 +91,17 @@ AutoReqProv: no
|
|
|
%else
|
|
|
--disable-agrep \
|
|
|
%endif
|
|
|
- --without-alloca \
|
|
|
- --enable-system-abi \
|
|
|
+%if "%{with_utf8}" == "yes"
|
|
|
+ --with-libutf8=%{l_prefix} \
|
|
|
+ --enable-wchar \
|
|
|
+ --enable-multibyte \
|
|
|
+%else
|
|
|
+ --without-libutf8 \
|
|
|
--disable-wchar \
|
|
|
--disable-multibyte \
|
|
|
+%endif
|
|
|
+ --without-alloca \
|
|
|
+ --enable-system-abi \
|
|
|
--disable-nls \
|
|
|
--without-libiconv-prefix \
|
|
|
--without-libintl-prefix \
|