Updated with Tizen:Base source codes
[external/procps.git] / packaging / procps.spec
1 #specfile originally created for Fedora, modified for Moblin Linux
2 Summary: System and process monitoring utilities
3 Name: procps
4 Version: 3.2.8
5 Release: 1
6 License: GPLv2+ and LGPLv2+
7 Group: Applications/System
8 URL: http://procps.sourceforge.net
9 Source: http://procps.sourceforge.net/procps-%{version}.tar.gz
10 Source1: FAQ
11 Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
12
13 Requires(post): /sbin/ldconfig
14 Requires(postun): /sbin/ldconfig
15
16 Patch1: procps-3.2.7-selinux.patch
17 Patch2: procps-3.1.15-misc.patch
18 Patch3: procps-3.2.3-FAQ.patch
19 Patch4: procps-3.2.1-selinux-workaround.patch
20 Patch6: procps-3.2.3-noproc.patch
21 Patch7: procps-3.2.3-pseudo.patch
22 Patch8: procps-3.2.4-0x9b.patch
23 # 157725 - sysctl -A returns an error
24 Patch9: procps-3.2.5-sysctl-writeonly.patch
25 # 161449 - "top" ignores user and system toprc
26 Patch10: procps-3.2.5-top-rc.patch
27 # 161303 - 'top' failed when remove cpus
28 # 186017 - Top "Cpu0" line never updates on single processor machine
29 Patch11: procps-3.2.7-top-remcpu.patch
30 # Selinux
31 Patch12: procps-3.2.6-libselinux.patch
32 # 177453 - for VIRT use proc->vm_size rather then proc->size (workaround)
33 Patch13: procps-3.2.6-top-env-vmsize.patch
34 # 174619 - workaround for reliable Cpu(s) data in the first loop
35 Patch14: procps-3.2.6-top-env-cpuloop.patch
36 # 185299 - cpu steal time support
37 Patch15: procps-3.2.7-vmstat-cpusteal.patch
38 # 134516 - ps ignores /proc/#/cmdline if contents 2047 bytes
39 Patch16: procps-3.2.7-longcmd.patch
40 # 189349 - 32bit vmstat on 64bit kernel
41 Patch17: procps-3.2.7-vmstat-pgpg.patch
42 # 212637 - sysctl using deprecated syscall
43 # 228870 - process `sysctl' is using deprecated sysctl ...
44 Patch18: procps-3.2.7-sysctl-ignore.patch
45 # 140975 - top corrupts screen when sorting on first column
46 Patch19: procps-3.2.7-top-sorthigh.path
47 # 234546 - 'w' doesn't give correct information about what's being run.
48 Patch20: procps-3.2.7-w-best.patch
49 # 183029 - watch ignores unicode characters
50 #Patch21: procps-3.2.7-watch-unicode.patch
51 # 222251 - STIME can jitter by one second
52 Patch22: procps-3.2.7-ps-stime.patch
53 #244152 - ps truncates eip and esp to 32-bit values on 64-bit systems
54 Patch23: procps-3.2.7-ps-eip64.patch
55 #244960 - ps manpage formatted incorrectly
56 Patch24: procps-3.2.7-psman.patch
57 #255441 - ldopen libselinux.so.1 instead of libselinux.so
58 Patch25: procps-3.2.7-ps-libselinux.patch
59 #185994 - error when using "Single Cpu = Off" option
60 Patch26: procps-3.2.7-top-cpu0.patch
61 #354001 - CPU value in top is reported as an integer
62 Patch27: procps-3.2.7-top-cpuint.patch
63 #296471 - update top man page
64 Patch28: procps-3.2.7-top-manpage.patch
65 #440694 - strange text after selecting few field
66 Patch30: procps-3.2.7-top-clrscr.patch
67 #435453 - errors with man -t formatting of ps man page
68 Patch31: procps-3.2.7-ps-man-fmt.patch
69 #472783 - 'vmstat -p <partition name>', 
70 # the detailed statistics of the partition name is not output.
71 Patch32: procps-3.2.7-vmstat-partstats-long.patch
72 # Fix vmstat header to be 80 chars not 81
73 Patch33: procps-3.2.7-vmstat-header.patch
74 # rhel bug #475963: slabtop -o should display the info once
75 Patch34: procps-3.2.7-slabtop-once.patch
76 #476134 - added timestamp to vmstat with new option -t
77 Patch35: procps-3.2.7-vmstat-timestamp.patch
78 #manual page updated to document the -t functionality
79 Patch36: procps-3.2.7-vmstat-timestamp-manpage.patch
80 # 'requested writes' display in partition statistics
81 Patch37: procps-3.2.7-vmstat-partstats-reqwrites.patch
82 # '-l' option of 'free' documented
83 Patch38: procps-3.2.7-free-hlmem.patch
84 # enable core dump generation
85 Patch39: procps-enable-core.patch
86 # fix "Unknown HZ value! (??) Assume 100." issue
87 Patch40: unknown-hz-value-fix.patch
88
89 BuildRequires: ncurses-devel
90
91 %description
92 The procps package contains a set of system utilities that provide
93 system information. Procps includes ps, free, skill, pkill, pgrep,
94 snice, tload, top, uptime, vmstat, w, watch and pdwx. The ps command
95 displays a snapshot of running processes. The top command provides
96 a repetitive update of the statuses of running processes. The free
97 command displays the amounts of free and used memory on your
98 system. The skill command sends a terminate command (or another
99 specified signal) to a specified set of processes. The snice
100 command is used to change the scheduling priority of specified
101 processes. The tload command prints a graph of the current system
102 load average to a specified tty. The uptime command displays the
103 current time, how long the system has been running, how many users
104 are logged on, and system load averages for the past one, five,
105 and fifteen minutes. The w command displays a list of the users
106 who are currently logged on and what they are running. The watch
107 program watches a running program. The vmstat command displays
108 virtual memory statistics about processes, memory, paging, block
109 I/O, traps, and CPU activity. The pwdx command reports the current 
110 working directory of a process or processes.
111
112 %prep
113 %setup -q
114
115 %patch1 -p1
116 %patch2 -p1
117 %patch3 -p1
118 %patch4 -p1
119 %patch6 -p1
120 %patch7 -p1
121 %patch8 -p1
122 %patch9 -p1
123 %patch10 -p1
124 %patch11 -p1
125 %patch12 -p1
126 %patch13 -p1
127 %patch14 -p1
128 %patch15 -p1
129 %patch16 -p1
130 %patch17 -p1
131 %patch18 -p1
132 %patch19 -p1
133 %patch20 -p1
134 #%patch21 -p1
135 %patch22 -p1
136 %patch23 -p1
137 %patch24 -p1
138 %patch25 -p1
139 %patch26 -p1
140 %patch27 -p1
141 %patch28 -p1
142 %patch30 -p1
143 %patch31 -p1
144 %patch32 -p1
145 %patch33 -p1
146 %patch34 -p1
147 %patch35 -p1
148 %patch36 -p1
149 %patch37 -p1
150 %patch38 -p1
151 %patch39 -p1
152 %patch40 -p1
153
154 cp %SOURCE1 .
155
156 %build
157 make SHARED=1 CFLAGS="$RPM_OPT_FLAGS" W_SHOWFROM=-DW_SHOWFROM lib64=%{_lib}
158
159 %install
160 rm -rf %{buildroot}
161 make ldconfig=true DESTDIR=%{buildroot} lib64=%{_lib} install="install -D" \
162         SKIP="/bin/kill /usr/share/man/man1/kill.1" install
163 mkdir -p %{buildroot}/%{_docdir}/procps-%{version}
164 # keep 'rpm' happy...
165 chmod -R u+w %{buildroot}/sbin
166 chmod -R u+w %{buildroot}/bin
167 chmod -R u+w %{buildroot}/usr/bin
168 chmod -R u+w %{buildroot}/lib*
169
170 %clean
171 rm -rf %{buildroot}
172
173 %post -p /sbin/ldconfig
174
175 %postun -p /sbin/ldconfig
176
177 %files
178 %defattr(0644,root,root,755)
179 %doc NEWS BUGS TODO FAQ
180 %attr(755,root,root) /%{_lib}/*
181 %attr(755,root,root) /bin/ps
182 %attr(755,root,root) /sbin/sysctl
183 %attr(755,root,root) /usr/bin/*
184
185 %doc %attr(0644,root,root) %{_mandir}/man1/*
186 %doc %attr(0644,root,root) %{_mandir}/man8/*
187 %doc %attr(0644,root,root) %{_mandir}/man5/*
188