top/top.spec

changeset 680
d27cad483271
parent 423
83972bdc1dac
equal deleted inserted replaced
0:62967142dfc3 1:18ff71040fa5
34 Distribution: OpenPKG Community 34 Distribution: OpenPKG Community
35 Class: EVAL 35 Class: EVAL
36 Group: Monitoring 36 Group: Monitoring
37 License: Freely Redistributable 37 License: Freely Redistributable
38 Version: %{V_opkg} 38 Version: %{V_opkg}
39 Release: 20090522 39 Release: 20120800
40 40
41 # list of sources 41 # list of sources
42 Source0: http://www.unixtop.org/dist/top-%{V_dist}.tar.gz 42 Source0: http://www.unixtop.org/dist/top-%{V_dist}.tar.gz
43 43
44 # build information 44 # build information
60 regex = top-(__VER__)\.tar\.gz 60 regex = top-(__VER__)\.tar\.gz
61 } 61 }
62 62
63 %prep 63 %prep
64 %setup -q -n top-%{V_dist} 64 %setup -q -n top-%{V_dist}
65 mkdir asm
66 cat > asm/page.h <<EOF
67 #ifndef _I386_PAGE_H
68 #define _I386_PAGE_H
69
70 /* PAGE_SHIFT determines the page size */
71 #define PAGE_SHIFT 12
72 #define PAGE_SIZE (1UL << PAGE_SHIFT)
73 #define PAGE_MASK (~(PAGE_SIZE-1))
74
75 #define LARGE_PAGE_MASK (~(LARGE_PAGE_SIZE-1))
76 #define LARGE_PAGE_SIZE (1UL << PMD_SHIFT)
77
78
79 #endif /* _I386_PAGE_H */
80 EOF
65 81
66 %build 82 %build
67 # configure program 83 # configure program
68 CC="%{l_cc}" \ 84 CC="%{l_cc}" \
69 CFLAGS="%{l_cflags -O}" \ 85 CFLAGS="%{l_cflags -O}" \

mercurial