Sat, 06 Oct 2012 16:24:01 +0200
Update to new vendor software version and adjust patch code accordingly.
Unfortunately the vendor has apparently failed to properly test this
release which depends on missing object symbols in libsasl2.a(common.o):
undefined reference to `sasl_randcreate'
undefined reference to `sasl_mkchal'
undefined reference to `sasl_utf8verify'
undefined reference to `sasl_rand'
undefined reference to `sasl_churn'
undefined reference to `sasl_encode64'
undefined reference to `sasl_decode64'
undefined reference to `sasl_erasebuffer'
undefined reference to `sasl_randfree'
undefined reference to `sasl_strlower'
undefined reference to `get_fqhostname'
...yet to be patched.
1 ##
2 ## top.spec -- OpenPKG RPM Package Specification
3 ## Copyright (c) 2000-2009 OpenPKG Foundation e.V. <http://openpkg.net/>
4 ##
5 ## Permission to use, copy, modify, and distribute this software for
6 ## any purpose with or without fee is hereby granted, provided that
7 ## the above copyright notice and this permission notice appear in all
8 ## copies.
9 ##
10 ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
11 ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
12 ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
13 ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
14 ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
15 ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
16 ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
17 ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
18 ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
19 ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
21 ## SUCH DAMAGE.
22 ##
24 # package version
25 %define V_dist 3.8beta1
26 %define V_opkg 3.8b1
28 # package information
29 Name: top
30 Summary: Full-Screen Process Display
31 URL: http://www.unixtop.org/
32 Vendor: William LeFebvre
33 Packager: OpenPKG Foundation e.V.
34 Distribution: OpenPKG Community
35 Class: EVAL
36 Group: Monitoring
37 License: Freely Redistributable
38 Version: %{V_opkg}
39 Release: 20120800
41 # list of sources
42 Source0: http://www.unixtop.org/dist/top-%{V_dist}.tar.gz
44 # build information
45 Prefix: %{l_prefix}
46 BuildRoot: %{l_buildroot}
47 BuildPreReq: OpenPKG, openpkg >= 20040130
48 PreReq: OpenPKG, openpkg >= 20040130
49 AutoReq: no
50 AutoReqProv: no
52 %description
53 Top is a full-screen display of the currently running system
54 processes.
56 %track
57 prog top = {
58 version = %{V_dist}
59 url = http://www.unixtop.org/download/
60 regex = top-(__VER__)\.tar\.gz
61 }
63 %prep
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
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))
75 #define LARGE_PAGE_MASK (~(LARGE_PAGE_SIZE-1))
76 #define LARGE_PAGE_SIZE (1UL << PMD_SHIFT)
79 #endif /* _I386_PAGE_H */
80 EOF
82 %build
83 # configure program
84 CC="%{l_cc}" \
85 CFLAGS="%{l_cflags -O}" \
86 ./configure \
87 --prefix=%{l_prefix}
89 # build program
90 %{l_make} %{l_mflags}
92 %install
93 rm -rf $RPM_BUILD_ROOT
95 # install program
96 %{l_shtool} mkdir -f -p -m 755 \
97 $RPM_BUILD_ROOT%{l_prefix}/bin \
98 $RPM_BUILD_ROOT%{l_prefix}/man/man1
99 %{l_shtool} install -c -s -m 755 \
100 top $RPM_BUILD_ROOT%{l_prefix}/bin/
101 %{l_shtool} install -c -m 644 \
102 top.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/
104 # determine installation files
105 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
106 %{l_files_std} \
107 '%attr(4711,%{l_susr},%{l_mgrp}) %{l_prefix}/bin/top'
109 %files -f files
111 %clean
112 rm -rf $RPM_BUILD_ROOT