|
|
@@ -37,7 +37,7 @@ Class: BASE
|
|
|
Group: Algorithm
|
|
|
License: GPL
|
|
|
Version: %{V_glib2_major}.%{V_glib2_minor}
|
|
|
-Release: 20060705
|
|
|
+Release: 20060721
|
|
|
|
|
|
# package options
|
|
|
%option with_threads yes
|
|
|
@@ -96,10 +96,18 @@ AutoReqProv: no
|
|
|
*-2.0.pc.in
|
|
|
|
|
|
%build
|
|
|
+ libs=""
|
|
|
+%if "%{with_threads}" == "yes"
|
|
|
+ case "%{l_platform -t}" in
|
|
|
+ *-freebsd* ) libs="-lpthread" ;;
|
|
|
+ *-netbsd* ) libs="-lpthread" ;;
|
|
|
+ esac
|
|
|
+%endif
|
|
|
CC="%{l_cc}" \
|
|
|
CFLAGS="%{l_cflags -O}" \
|
|
|
CPPFLAGS="%{l_cppflags}" \
|
|
|
LDFLAGS="%{l_ldflags}" \
|
|
|
+ LIBS="$libs" \
|
|
|
PERL="%{l_prefix}/bin/perl" \
|
|
|
PERL_PATH="%{l_prefix}/bin/perl" \
|
|
|
./configure \
|