SPECS: suspend.spec - updated to 20060325 snap; added PAGE_SIZE hack.
arekm
arekm at pld-linux.org
Sat Mar 25 14:56:23 CET 2006
Author: arekm Date: Sat Mar 25 13:56:23 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- updated to 20060325 snap; added PAGE_SIZE hack.
---- Files affected:
SPECS:
suspend.spec (1.6 -> 1.7)
---- Diffs:
================================================================
Index: SPECS/suspend.spec
diff -u SPECS/suspend.spec:1.6 SPECS/suspend.spec:1.7
--- SPECS/suspend.spec:1.6 Sat Feb 25 20:27:35 2006
+++ SPECS/suspend.spec Sat Mar 25 14:56:18 2006
@@ -1,5 +1,5 @@
# $Revision$, $Date$
-%define snap 20060222
+%define snap 20060325
Summary: Suspend to RAM
Summary(pl): Zamrażanie w RAM
Name: suspend
@@ -7,8 +7,8 @@
Release: 0.%{snap}.1
License: GPL v2
Group: Applications/System
-Source0: http://ep09.pld-linux.org/~arekm/%{name}-20060222.tar.gz
-# Source0-md5: cc0a800e24d6253107ff85b119b88e21
+Source0: http://ep09.pld-linux.org/~arekm/%{name}-%{snap}.tar.gz
+# Source0-md5: a7b6336cce2c72cf7a7c36bfa2b24d0f
URL: http://sourceforge.net/projects/suspend
BuildRequires: glibc-static
BuildRequires: liblzf-static
@@ -28,6 +28,13 @@
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
%{__make} \
CC_FLAGS="%{rpmcflags} -DCONFIG_COMPRESS" \
LD_FLAGS="%{rpmldflags} -llzf"
@@ -52,6 +59,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.7 2006/03/25 13:56:18 arekm
+- updated to 20060325 snap; added PAGE_SIZE hack.
+
Revision 1.6 2006/02/25 19:27:35 qboosh
- pl
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/suspend.spec?r1=1.6&r2=1.7&f=u
More information about the pld-cvs-commit
mailing list