|
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 ## |
|
23 |
|
24 # package version |
|
25 %define V_dist 3.8beta1 |
|
26 %define V_opkg 3.8b1 |
|
27 |
|
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: 20090522 |
|
40 |
|
41 # list of sources |
|
42 Source0: http://www.unixtop.org/dist/top-%{V_dist}.tar.gz |
|
43 |
|
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 |
|
51 |
|
52 %description |
|
53 Top is a full-screen display of the currently running system |
|
54 processes. |
|
55 |
|
56 %track |
|
57 prog top = { |
|
58 version = %{V_dist} |
|
59 url = http://www.unixtop.org/download/ |
|
60 regex = top-(__VER__)\.tar\.gz |
|
61 } |
|
62 |
|
63 %prep |
|
64 %setup -q -n top-%{V_dist} |
|
65 |
|
66 %build |
|
67 # configure program |
|
68 CC="%{l_cc}" \ |
|
69 CFLAGS="%{l_cflags -O}" \ |
|
70 ./configure \ |
|
71 --prefix=%{l_prefix} |
|
72 |
|
73 # build program |
|
74 %{l_make} %{l_mflags} |
|
75 |
|
76 %install |
|
77 rm -rf $RPM_BUILD_ROOT |
|
78 |
|
79 # install program |
|
80 %{l_shtool} mkdir -f -p -m 755 \ |
|
81 $RPM_BUILD_ROOT%{l_prefix}/bin \ |
|
82 $RPM_BUILD_ROOT%{l_prefix}/man/man1 |
|
83 %{l_shtool} install -c -s -m 755 \ |
|
84 top $RPM_BUILD_ROOT%{l_prefix}/bin/ |
|
85 %{l_shtool} install -c -m 644 \ |
|
86 top.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/ |
|
87 |
|
88 # determine installation files |
|
89 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \ |
|
90 %{l_files_std} \ |
|
91 '%attr(4711,%{l_susr},%{l_mgrp}) %{l_prefix}/bin/top' |
|
92 |
|
93 %files -f files |
|
94 |
|
95 %clean |
|
96 rm -rf $RPM_BUILD_ROOT |
|
97 |