|
|
@@ -37,7 +37,7 @@ Distribution: OpenPKG [PLUS]
|
|
|
Group: Benchmark
|
|
|
License: Open Source
|
|
|
Version: %{V_logic}
|
|
|
-Release: 20030531
|
|
|
+Release: 20030612
|
|
|
|
|
|
# list of sources
|
|
|
Source0: http://www.iozone.org/src/current/iozone%{V_real}.tar
|
|
|
@@ -57,17 +57,22 @@ AutoReqProv: no
|
|
|
|
|
|
%prep
|
|
|
%setup -q -c
|
|
|
+ chmod 644 src/current/makefile
|
|
|
+ %{l_shtool} subst -e 's;-Dlinux;-Dlinux $(MADV);' src/current/makefile
|
|
|
|
|
|
%build
|
|
|
cd src/current
|
|
|
platform="generic"
|
|
|
+ defs=""
|
|
|
case "%{l_target}" in
|
|
|
- *-freebsd* ) platform="freebsd" ;;
|
|
|
- *-linux* ) platform="linux" ;;
|
|
|
- *-solaris* ) platform="Solaris" ;;
|
|
|
+ *-freebsd* ) platform="freebsd" ;;
|
|
|
+ *-linux2.2* ) platform="linux"
|
|
|
+ defs="-DNO_MADVISE" ;;
|
|
|
+ *-linux* ) platform="linux" ;;
|
|
|
+ *-solaris* ) platform="Solaris" ;;
|
|
|
esac
|
|
|
%{l_make} %{l_mflags} \
|
|
|
- CC="%{l_cc}" CFLAGS="%{l_cflags -O}" \
|
|
|
+ CC="%{l_cc}" CFLAGS="%{l_cflags -O}" MADV="$defs" \
|
|
|
$platform
|
|
|
|
|
|
%install
|