/[packages]/cauldron/procps/current/SPECS/procps.spec
ViewVC logotype

Contents of /cauldron/procps/current/SPECS/procps.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 273158 - (show annotations) (download)
Sat Jul 21 17:42:31 2012 UTC (11 years, 9 months ago) by colin
File size: 4615 byte(s)
Update for usrmove
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.1
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 # /bin/rm
33 Requires(pre): filesystem >= 2.1.9-18
34 Requires(post): coreutils
35
36 %description
37 The procps package contains a set of system utilities which provide system
38 information.
39
40 Procps includes ps, free, skill, snice, tload, top, uptime, vmstat, w
41 and watch.
42
43 * The ps command displays a snapshot of running processes.
44 * The top command provides a repetitive update of the statuses of running
45 processes.
46 * The free command displays the amounts of free and used memory on your
47 system.
48 * The skill command sends a terminate command (or another specified signal)
49 to a specified set of processes.
50 * The snice command is used to change the scheduling priority of specified
51 processes.
52 * The tload command prints a graph of the current system load average to a
53 specified tty.
54 * The uptime command displays the current time, how long the system has been
55 running, how many users are logged on and system load averages for the past
56 one, five and fifteen minutes.
57 * The w command displays a list of the users who are currently logged on and
58 what they're running.
59 * The watch program watches a running program.
60 * The vmstat command displays virtual memory statistics about processes,
61 memory, paging, block I/O, traps and CPU activity.
62
63
64 %package devel
65 Group: Development/C
66 Summary: An X based system message monitoring utility
67 Requires(pre): filesystem >= 2.1.9-18
68 Requires: %name = %version
69
70 %description devel
71 Development headers and library for the proc library.
72
73 %prep
74 %setup -q
75 %patch0 -p0 -b .sysctl
76 %patch2 -p1 -b .dont-strip
77 %patch3 -p1 -b .top-rc
78 %patch4 -p1 -b .sysctl-write-only
79 %patch5 -p0
80 %patch6 -p1
81 %patch7 -p1
82 %patch8 -p1
83 %patch9 -p1
84 %patch10 -p1
85
86 %build
87 make CFLAGS="$RPM_OPT_FLAGS"
88
89 %install
90 PATH=/sbin:$PATH
91 rm -rf %{buildroot}
92
93 %makeinstall_std ldconfig=/bin/true install="install -D"
94
95
96 mkdir -p %{buildroot}%{_includedir}/procps
97 install -m 644 proc/*.h %{buildroot}%{_includedir}/procps
98
99 # This would conflict with util-linux:
100 mv %{buildroot}/%{_mandir}/man1/{,procps3-}kill.1
101 mv %{buildroot}/bin/kill %{buildroot}%{_bindir}/procps3-kill
102
103 mv %{buildroot}/bin/ps %{buildroot}%{_bindir}/
104 mkdir %{buildroot}%{_sbindir}
105 mv %{buildroot}/sbin/sysctl %{buildroot}%{_sbindir}/
106
107 mkdir %{buildroot}%{_libdir}
108 mv %{buildroot}/%{_lib}/libproc-*.so %{buildroot}%{_libdir}
109 ln -s libproc-%version.so %{buildroot}%{_libdir}/libproc.so
110
111 # quiet spec-helper:
112 chmod +w %{buildroot}{%_bindir,%_sbindir,%_libdir}/*
113
114 %clean
115 rm -rf %{buildroot}
116
117 %files
118
119 %defattr(-,root,root)
120 %doc NEWS BUGS TODO
121 %{_libdir}/libproc-*.so
122 %_sbindir/sysctl
123 %_bindir/ps
124 %_bindir/procps3-kill
125 %_bindir/free
126 %_bindir/pgrep
127 %_bindir/pmap
128 %_bindir/pwdx
129 %_bindir/pkill
130 %_bindir/skill
131 %_bindir/slabtop
132 %_bindir/snice
133 %_bindir/tload
134 %_bindir/top
135 %_bindir/uptime
136 %_bindir/vmstat
137 %_bindir/w
138 %_bindir/watch
139
140 %_mandir/man1/ps.1*
141 %_mandir/man1/procps3-kill.1*
142 %_mandir/man1/free.1*
143 %_mandir/man1/pgrep.1*
144 %_mandir/man1/pkill.1*
145 %_mandir/man1/pmap.1*
146 %_mandir/man1/pwdx.1*
147 %_mandir/man1/skill.1*
148 %_mandir/man1/slabtop.1*
149 %_mandir/man1/snice.1*
150 %_mandir/man1/tload.1*
151 %_mandir/man1/top.1*
152 %_mandir/man1/uptime.1*
153 %_mandir/man1/w.1*
154 %_mandir/man1/watch.1*
155
156 %_mandir/man5/sysctl.conf.5*
157
158 %_mandir/man8/sysctl.8*
159 %_mandir/man8/vmstat.8*
160
161 %files devel
162 %defattr(-,root,root)
163 %{_includedir}/procps/*
164 %_libdir/libproc.so
165
166
167
168

  ViewVC Help
Powered by ViewVC 1.1.30