SPECS: suspend.spec - nicer hack
arekm
arekm at pld-linux.org
Sat Mar 25 14:58:53 CET 2006
Author: arekm Date: Sat Mar 25 13:58:53 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- nicer hack
---- Files affected:
SPECS:
suspend.spec (1.7 -> 1.8)
---- Diffs:
================================================================
Index: SPECS/suspend.spec
diff -u SPECS/suspend.spec:1.7 SPECS/suspend.spec:1.8
--- SPECS/suspend.spec:1.7 Sat Mar 25 14:56:18 2006
+++ SPECS/suspend.spec Sat Mar 25 14:58:47 2006
@@ -28,13 +28,7 @@
sed -i -e 's#gcc#%{__cc}#g' Makefile
%build
-echo '
-#include <stdio.h>
-#include <unistd.h>
-int main() { printf("%%d\\n", getpagesize()); return 0; }
-' > test-getpagesize.c
-%{__cc} %{rpmcflags} test-getpagesize.c -o test-getpagesize
-sed -i -e "s#PAGE_SIZE#$(./test-getpagesize)#g" *.c *.h
+sed -i -e "s#PAGE_SIZE#$(%{_bindir}/getconf PAGE_SIZE)#g" *.c *.h
%{__make} \
CC_FLAGS="%{rpmcflags} -DCONFIG_COMPRESS" \
LD_FLAGS="%{rpmldflags} -llzf"
@@ -59,6 +53,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.8 2006/03/25 13:58:47 arekm
+- nicer hack
+
Revision 1.7 2006/03/25 13:56:18 arekm
- updated to 20060325 snap; added PAGE_SIZE hack.
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/suspend.spec?r1=1.7&r2=1.8&f=u
More information about the pld-cvs-commit
mailing list