1 |
%define major_version 3 |
2 |
%define minor_version 2 |
3 |
%define revision 8 |
4 |
|
5 |
Summary: Utilities for monitoring your system and processes on your system |
6 |
Name: procps |
7 |
Version: %{major_version}.%{minor_version}.%{revision} |
8 |
Release: %mkrel 6 |
9 |
License: GPL |
10 |
Group: Monitoring |
11 |
BuildRequires: ncurses-devel |
12 |
Patch0: procps-3.2.3-sysctlshutup.patch |
13 |
Patch2: procps-3.2.7-dont-strip.patch |
14 |
Patch3: procps-3.2.5-top-rc.patch |
15 |
Patch4: procps-3.2.5-sysctl-writeonly.patch |
16 |
Patch5: procps-3.2.7-fix-format-string.patch |
17 |
Patch6: procps-3.2.7-sysctl-ignore.patch |
18 |
# (bor) two patches based of Fedora to add cgroup support |
19 |
Patch7: procps-3.2.8-ps-cgroup.patch |
20 |
Patch8: procps-3.2.8-ps-cgroup-suppress-root-group.patch |
21 |
# (bor) glob order is non-determistic; inlucde proc/module.mk before ps |
22 |
Patch9: procps-3.2.8-fix-modules.mk-order.patch |
23 |
# (bor) make sure linux_version is known when we need it |
24 |
# it appears order of execution for constructors may change between |
25 |
# GCC/binutils/ld versions (not sure who is responsible here) |
26 |
Patch10: procps-3.2.8-init_Linux_version-before-init_libproc.patch |
27 |
URL: http://procps.sf.net/ |
28 |
Source: http://procps.sourceforge.net/%name-%version.tar.gz |
29 |
BuildRoot: %_tmppath/%name-root |
30 |
Provides: libproc.so.%{major_version}.%{minor_version} procps3 |
31 |
Obsoletes: procps3 |
32 |
Requires(post): /bin/rm |
33 |
|
34 |
%description |
35 |
The procps package contains a set of system utilities which provide system |
36 |
information. |
37 |
|
38 |
Procps includes ps, free, skill, snice, tload, top, uptime, vmstat, w |
39 |
and watch. |
40 |
|
41 |
* The ps command displays a snapshot of running processes. |
42 |
* The top command provides a repetitive update of the statuses of running |
43 |
processes. |
44 |
* The free command displays the amounts of free and used memory on your |
45 |
system. |
46 |
* The skill command sends a terminate command (or another specified signal) |
47 |
to a specified set of processes. |
48 |
* The snice command is used to change the scheduling priority of specified |
49 |
processes. |
50 |
* The tload command prints a graph of the current system load average to a |
51 |
specified tty. |
52 |
* The uptime command displays the current time, how long the system has been |
53 |
running, how many users are logged on and system load averages for the past |
54 |
one, five and fifteen minutes. |
55 |
* The w command displays a list of the users who are currently logged on and |
56 |
what they're running. |
57 |
* The watch program watches a running program. |
58 |
* The vmstat command displays virtual memory statistics about processes, |
59 |
memory, paging, block I/O, traps and CPU activity. |
60 |
|
61 |
|
62 |
%package devel |
63 |
Group: Development/C |
64 |
Summary: An X based system message monitoring utility |
65 |
Requires: %name = %version |
66 |
|
67 |
%description devel |
68 |
Development headers and library for the proc library. |
69 |
|
70 |
%prep |
71 |
%setup -q |
72 |
%patch0 -p0 -b .sysctl |
73 |
%patch2 -p1 -b .dont-strip |
74 |
%patch3 -p1 -b .top-rc |
75 |
%patch4 -p1 -b .sysctl-write-only |
76 |
%patch5 -p0 |
77 |
%patch6 -p1 |
78 |
%patch7 -p1 |
79 |
%patch8 -p1 |
80 |
%patch9 -p1 |
81 |
%patch10 -p1 |
82 |
|
83 |
%build |
84 |
make CFLAGS="$RPM_OPT_FLAGS" |
85 |
|
86 |
%install |
87 |
PATH=/sbin:$PATH |
88 |
rm -rf %{buildroot} |
89 |
|
90 |
%makeinstall_std ldconfig=/bin/true install="install -D" lib="%{buildroot}/%{_lib}/" |
91 |
|
92 |
rm -f %{buildroot}/%{_mandir}/man1/kill.1* |
93 |
|
94 |
mkdir -p %{buildroot}%{_includedir}/procps |
95 |
install -m 644 proc/*.h %{buildroot}%{_includedir}/procps |
96 |
# This would conflict with util-linux: |
97 |
mv %{buildroot}/bin/{,procps3-}kill |
98 |
mv %{buildroot}%{_bindir}/free %{buildroot}/bin |
99 |
ln -s ../../bin/free %{buildroot}%{_bindir}/free |
100 |
|
101 |
ln -s libproc-%version.so %{buildroot}/%_lib/libproc.so |
102 |
|
103 |
# quiet spec-helper: |
104 |
chmod +w %{buildroot}/{bin,sbin,usr/bin,%_lib}/* |
105 |
|
106 |
%clean |
107 |
rm -rf %{buildroot} |
108 |
|
109 |
%files |
110 |
|
111 |
%defattr(-,root,root) |
112 |
%doc NEWS BUGS TODO |
113 |
/%{_lib}/libproc-*.so |
114 |
/bin/procps3-kill |
115 |
/bin/ps |
116 |
/bin/free |
117 |
/sbin/sysctl |
118 |
%_bindir/free |
119 |
%_bindir/pgrep |
120 |
%_bindir/pmap |
121 |
%_bindir/pwdx |
122 |
%_bindir/pkill |
123 |
%_bindir/skill |
124 |
%_bindir/slabtop |
125 |
%_bindir/snice |
126 |
%_bindir/tload |
127 |
%_bindir/top |
128 |
%_bindir/uptime |
129 |
%_bindir/vmstat |
130 |
%_bindir/w |
131 |
%_bindir/watch |
132 |
|
133 |
%_mandir/man1/free.1* |
134 |
%_mandir/man1/pgrep.1* |
135 |
%_mandir/man1/pkill.1* |
136 |
%_mandir/man1/pmap.1* |
137 |
%_mandir/man1/ps.1* |
138 |
%_mandir/man1/pwdx.1* |
139 |
%_mandir/man1/skill.1* |
140 |
%_mandir/man1/slabtop.1* |
141 |
%_mandir/man1/snice.1* |
142 |
%_mandir/man1/tload.1* |
143 |
%_mandir/man1/top.1* |
144 |
%_mandir/man1/uptime.1* |
145 |
%_mandir/man1/w.1* |
146 |
%_mandir/man1/watch.1* |
147 |
|
148 |
%_mandir/man5/sysctl.conf.5* |
149 |
|
150 |
%_mandir/man8/sysctl.8* |
151 |
%_mandir/man8/vmstat.8* |
152 |
|
153 |
%files devel |
154 |
%defattr(-,root,root) |
155 |
%{_includedir}/procps/* |
156 |
/%_lib/libproc.so |
157 |
|
158 |
|
159 |
|
160 |
|