]>
Commit | Line | Data |
---|---|---|
bbac5714 | 1 | # TODO |
5ef88902 | 2 | # - switch pidof to this package instead of sysvinit-tools: |
bbac5714 | 3 | # 3.3.9 contains pidof reimplemented from scratch (replacing sysvinit pidof) |
5ef88902 | 4 | # sysvinit compatibility was fixed in 3.3.12: https://gitlab.com/procps-ng/procps/issues/4 |
bbac5714 | 5 | |
5a3a7f4c ER |
6 | # Conditional build: |
7 | %bcond_without systemd # systemd support | |
8d3bc5a9 | 8 | %bcond_with elogind # elogind support (instead of systemd) |
19e424f8 | 9 | %bcond_with pidof # include pidof here [see also SysVinit.spec:SysVinit-tools |
3ea88b49 | 10 | %bcond_with selinux # libselinux support (get ps context values from dynamically loaded libselinux.so.1 instead of /proc/*/attr/current) |
60d860a0 | 11 | %bcond_with tests # run tests. The testsuite is unsuitable for running on buildsystems |
5a3a7f4c | 12 | |
8d3bc5a9 JB |
13 | %if %{with elogind} |
14 | %undefine with_systemd | |
15 | %endif | |
b52cbdbd | 16 | Summary: Utilities for monitoring your system and processes on your system |
f4a157dd ER |
17 | Summary(de.UTF-8): Utilities zum Ueberwachen Ihres Systems und der Prozesse |
18 | Summary(es.UTF-8): Utilitarios de monitoración de procesos | |
19 | Summary(fr.UTF-8): Utilitaires de surveillance des processus | |
20 | Summary(pl.UTF-8): Narzędzia do monitorowania procesów | |
21 | Summary(pt_BR.UTF-8): Utilitários de monitoração de processos | |
22 | Summary(tr.UTF-8): Süreç izleme araçları | |
d2983712 | 23 | Name: procps |
2927078b | 24 | Version: 3.3.16 |
be5402fc | 25 | Release: 1 |
d910449e | 26 | Epoch: 1 |
f9286257 | 27 | License: GPL v2+ |
45f16a11 | 28 | Group: Applications/System |
e173fb88 | 29 | Source0: http://downloads.sourceforge.net/procps-ng/%{name}-ng-%{version}.tar.xz |
2927078b | 30 | # Source0-md5: e8dc8455e573bdc40b8381d572bbb89b |
0913e117 | 31 | Source1: %{name}-non-english-man-pages.tar.bz2 |
14f4fdce | 32 | # Source1-md5: 60d24720b76c10553ed4abf68b76e079 |
9df2e818 | 33 | Source2: top.desktop |
2e6492fa | 34 | Source3: top.png |
091efced | 35 | # Source3-md5: 5f0133b3c18000116ca48381eecc07af |
2e6492fa | 36 | Source4: XConsole.sh |
7e1ff2c6 | 37 | Patch0: %{name}-missing-symbol.patch |
0913e117 | 38 | Patch1: %{name}-FILLBUG_backport.patch |
79efe7be | 39 | Patch2: %{name}-pl.po-update.patch |
e173fb88 ER |
40 | URL: https://gitlab.com/procps-ng/procps |
41 | BuildRequires: autoconf >= 2.69 | |
f9286257 | 42 | BuildRequires: automake >= 1:1.11 |
60d860a0 | 43 | %{?with_tests:BuildRequires: dejagnu} |
8d3bc5a9 | 44 | %{?with_elogind:BuildRequires: elogind-devel} |
19c27ecd | 45 | BuildRequires: gettext-tools >= 0.14.1 |
4f625e13 | 46 | %{?with_selinux:BuildRequires: libselinux-devel} |
f9286257 | 47 | BuildRequires: libtool >= 2:2 |
dfb256ae | 48 | BuildRequires: ncurses-devel >= 5.1 |
f9286257 | 49 | BuildRequires: pkgconfig |
177600bd | 50 | BuildRequires: rpmbuild(macros) >= 1.402 |
12ae026b | 51 | BuildRequires: sed >= 4.0 |
5a3a7f4c | 52 | %{?with_systemd:BuildRequires: systemd-devel >= 1:206} |
e173fb88 ER |
53 | BuildRequires: tar >= 1:1.22 |
54 | BuildRequires: xz | |
6931ac8b | 55 | Requires: /sbin/ldconfig |
cfab0591 | 56 | Requires: fileutils |
ea362f1e | 57 | Obsoletes: procps-X11 |
168de4b7 | 58 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
9e6b678e | 59 | |
fc5aef86 | 60 | %description |
d2eca1e8 | 61 | The procps package contains a set of system utilities which provide |
62 | system information. Procps includes ps, free, skill, snice, tload, | |
756a16a0 | 63 | top, uptime, vmstat, w and watch. The ps command displays a snapshot |
d2eca1e8 | 64 | of running processes. The top command provides a repetitive update of |
65 | the statuses of running processes. The free command displays the | |
66 | amounts of free and used memory on your system. The skill command | |
67 | sends a terminate command (or another specified signal) to a specified | |
68 | set of processes. The snice command is used to change the scheduling | |
69 | priority of specified processes. The tload command prints a graph of | |
70 | the current system load average to a specified tty. The uptime command | |
71 | displays the current time, how long the system has been running, how | |
72 | many users are logged on and system load averages for the past one, | |
73 | five and fifteen minutes. The w command displays a list of the users | |
74 | who are currently logged on and what they're running. The watch | |
75 | program watches a running program. The vmstat command displays virtual | |
76 | memory statistics about processes, memory, paging, block I/O, traps | |
6dc78c4a | 77 | and CPU activity. |
fc5aef86 | 78 | |
400f831f JR |
79 | %description -l de.UTF-8 |
80 | Das procps-Paket enthält System-Utilities, die Systeminformationen | |
81 | anzeigen. Procps enthält ps, free, skill, snice, tload, top, uptime, | |
d2eca1e8 | 82 | vmstat, w und watch. ps zeigt an, welche Prozesse gerade laufen. Top |
400f831f | 83 | zeigt in regelmäßigen Abständen eine Prozessliste an. Free zeigt an, |
d2eca1e8 | 84 | wieviel Speicher frei ist, und wieviel Speicher benutzt wird. Skill |
85 | schickt den Terminierungsbefehl (oder ein anderes angegebenes Signal) | |
400f831f | 86 | an angegebene Prozesse. Snice ändert die Priorität von angegebenen |
d2eca1e8 | 87 | Prozessen. tload zeigt einen Graphen der aktuellen Systemauslastung |
88 | an. Uptime zeigt an, wie lange das System am laufen ist, wieviele User | |
89 | eingeloggt sind, und die Auslastungswerte der letzten Minute, der | |
90 | letzten 5 Minuten, und 15 Minuten. Der w-Befehl zeigt eine Liste der | |
91 | User an, die gerade eingeloggt sind, und welches Programm sie | |
400f831f JR |
92 | benutzen. Vmstat zeigt Statistiken über den virtuellen Speicher, |
93 | Prozesse, Paging, Block I/O, Traps, und CPU-Aktivität. | |
fc5aef86 | 94 | |
400f831f | 95 | %description -l es.UTF-8 |
ea362f1e | 96 | Un paquete de utilitarios que relatan el estado del sistema. Se da |
400f831f JR |
97 | énfasis a los procesos en ejecución, total de memoria disponible y a |
98 | los usuarios que están "logados" en el sistema. | |
ea362f1e | 99 | |
400f831f JR |
100 | %description -l fr.UTF-8 |
101 | Paquetage d'utilitaires donnant des informations sur l'état du | |
102 | système, dont les états des processus en cours, le total de mémoire | |
103 | disponible, et les utilisateurs loggés. | |
fc5aef86 | 104 | |
400f831f JR |
105 | %description -l pl.UTF-8 |
106 | Pakiet zawiera podstawowe narzędzia do monitorowania pracy systemu. | |
107 | Dzięki tym programom będziesz mógł na bieżąco kontrolować jakie | |
108 | procesy są w danej chwili uruchomione, ilość wolnej pamięci, kto jest | |
109 | w danej chwili zalogowany, jakie jest aktualne obciążenie systemu itp. | |
fc5aef86 | 110 | |
400f831f JR |
111 | %description -l pt_BR.UTF-8 |
112 | Um pacote de utilitários que relatam o estado do sistema. É dado | |
113 | ênfase aos processos em execução, total de memória disponível e aos | |
114 | usuários que estão logados no sistema. | |
ea362f1e | 115 | |
400f831f JR |
116 | %description -l tr.UTF-8 |
117 | Sistemin durumunu rapor eden araçlar paketidir. Koşan süreçlerin | |
118 | durumunu, kullanılabilir bellek miktarını, ve o an için sisteme girmiş | |
119 | kullanıcıları bildirir. | |
fc5aef86 | 120 | |
9715011d JB |
121 | %package devel |
122 | Summary: libproc header files | |
f4a157dd | 123 | Summary(pl.UTF-8): Pliki nagłówkowe libproc |
9715011d JB |
124 | License: LGPL |
125 | Group: Development/Libraries | |
4bde6177 | 126 | Requires: %{name} = %{epoch}:%{version}-%{release} |
9715011d JB |
127 | |
128 | %description devel | |
129 | libproc header files. | |
130 | ||
400f831f JR |
131 | %description devel -l pl.UTF-8 |
132 | Pliki nagłówkowe biblioteki libproc. | |
9715011d JB |
133 | |
134 | %package static | |
135 | Summary: Static libproc library | |
f4a157dd | 136 | Summary(pl.UTF-8): Statyczna biblioteka libproc |
9715011d JB |
137 | License: LGPL |
138 | Group: Development/Libraries | |
4bde6177 | 139 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
9715011d JB |
140 | |
141 | %description static | |
142 | Static version of libproc library. | |
143 | ||
400f831f | 144 | %description static -l pl.UTF-8 |
9715011d JB |
145 | Statyczna wersja biblioteki libproc. |
146 | ||
fc5aef86 | 147 | %prep |
e173fb88 | 148 | %setup -qn %{name}-ng-%{version} |
7e1ff2c6 | 149 | %patch0 -p1 |
0913e117 | 150 | %patch1 -p1 |
cd01f7e3 | 151 | %patch2 -p1 |
a8cff2af | 152 | |
12ae026b | 153 | %{__sed} -i -e "s#usrbin_execdir=.*#usrbin_execdir='\${bindir}'#g" configure.ac |
fc5aef86 | 154 | |
155 | %build | |
f9286257 | 156 | %{__gettextize} |
a8cff2af | 157 | %{__libtoolize} |
0913e117 | 158 | %{__aclocal} -I m4 |
a8cff2af AM |
159 | %{__autoconf} |
160 | %{__autoheader} | |
161 | %{__automake} | |
162 | %configure \ | |
2a2e3e9d | 163 | --disable-silent-rules \ |
8d3bc5a9 | 164 | %{?with_elogind:--with-elogind} \ |
60015e09 | 165 | %{?with_systemd:--with-systemd} \ |
19e424f8 | 166 | --disable-kill \ |
4f625e13 | 167 | %{?with_selinux:--enable-libselinux} \ |
19e424f8 | 168 | %{!?with_pidof:--disable-pidof} \ |
593d2dcd | 169 | --enable-sigwinch \ |
0913e117 | 170 | --enable-skill \ |
593d2dcd ER |
171 | --enable-w-from \ |
172 | --enable-watch8bit \ | |
173 | --enable-wide-percent \ | |
174 | --sbindir=/sbin | |
a8cff2af | 175 | %{__make} |
fc5aef86 | 176 | |
60d860a0 ER |
177 | %if %{with tests} |
178 | %{__make} check | |
179 | %endif | |
180 | ||
fc5aef86 | 181 | %install |
182 | rm -rf $RPM_BUILD_ROOT | |
4e1ebfb8 | 183 | install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},/%{_lib},/bin} |
fcb3e261 | 184 | %{__make} install \ |
4e1ebfb8 JB |
185 | DESTDIR=$RPM_BUILD_ROOT \ |
186 | pkgconfigdir=%{_pkgconfigdir} | |
48555180 | 187 | |
19e424f8 | 188 | # identical programs are built independently, not hard- or symlinked: |
390e4711 ER |
189 | ln -f $RPM_BUILD_ROOT%{_bindir}/{pkill,pgrep} |
190 | ln -f $RPM_BUILD_ROOT%{_bindir}/{snice,skill} | |
191 | ||
8d3bc5a9 | 192 | %{__mv} $RPM_BUILD_ROOT{%{_bindir},/bin}/ps |
19e424f8 JB |
193 | %if %{with pidof} |
194 | %{__mv} $RPM_BUILD_ROOT{%{_bindir},/bin}/pidof | |
195 | %endif | |
0913e117 AM |
196 | |
197 | install -d $RPM_BUILD_ROOT/%{_lib} | |
8d3bc5a9 | 198 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/libprocps.so.*,/%{_lib}} |
0913e117 AM |
199 | ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libprocps.so.*.*.*) \ |
200 | $RPM_BUILD_ROOT%{_libdir}/libprocps.so | |
fc5aef86 | 201 | |
e173fb88 ER |
202 | cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir} |
203 | cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir} | |
204 | install -p %{SOURCE4} $RPM_BUILD_ROOT%{_bindir}/XConsole | |
d2983712 | 205 | |
4e1ebfb8 | 206 | # obsoleted by pkg-config |
0913e117 | 207 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libprocps.la |
4e1ebfb8 JB |
208 | # packaged as doc |
209 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/procps-ng | |
0a3a887a | 210 | |
bcfa7052 | 211 | bzcat -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir} |
4e1ebfb8 JB |
212 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/*/man1/{kill,oldps}.1 |
213 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/README-procps-non-english-man-pages | |
6732c11b | 214 | |
3ea88b49 JB |
215 | %find_lang procps-ng |
216 | ||
9715011d JB |
217 | %clean |
218 | rm -rf $RPM_BUILD_ROOT | |
fc5aef86 | 219 | |
177600bd | 220 | %post -p /sbin/ldconfig |
fc5aef86 | 221 | %postun -p /sbin/ldconfig |
222 | ||
3ea88b49 | 223 | %files -f procps-ng.lang |
d2983712 | 224 | %defattr(644,root,root,755) |
df6c163b | 225 | %doc AUTHORS Documentation/{FAQ,TODO,bugs.md} NEWS |
0913e117 | 226 | %attr(755,root,root) /%{_lib}/libprocps.so.*.* |
2927078b | 227 | %ghost %attr(755,root,root) /%{_lib}/libprocps.so.8 |
4e1ebfb8 | 228 | %attr(755,root,root) /bin/ps |
19e424f8 JB |
229 | %if %{with pidof} |
230 | %attr(755,root,root) /bin/pidof | |
231 | %endif | |
9e6b678e | 232 | %attr(755,root,root) /sbin/sysctl |
4e1ebfb8 JB |
233 | %attr(755,root,root) %{_bindir}/XConsole |
234 | %attr(755,root,root) %{_bindir}/free | |
235 | %attr(755,root,root) %{_bindir}/pgrep | |
236 | %attr(755,root,root) %{_bindir}/pkill | |
237 | %attr(755,root,root) %{_bindir}/pmap | |
238 | %attr(755,root,root) %{_bindir}/pwdx | |
239 | %attr(755,root,root) %{_bindir}/skill | |
240 | %attr(755,root,root) %{_bindir}/slabtop | |
241 | %attr(755,root,root) %{_bindir}/snice | |
242 | %attr(755,root,root) %{_bindir}/tload | |
243 | %attr(755,root,root) %{_bindir}/top | |
244 | %attr(755,root,root) %{_bindir}/uptime | |
245 | %attr(755,root,root) %{_bindir}/vmstat | |
246 | %attr(755,root,root) %{_bindir}/w | |
247 | %attr(755,root,root) %{_bindir}/watch | |
c1e7b724 | 248 | %{_desktopdir}/top.desktop |
2e6492fa | 249 | %{_pixmapsdir}/top.png |
4e1ebfb8 | 250 | %{_mandir}/man1/free.1* |
19e424f8 JB |
251 | %if %{with pidof} |
252 | %{_mandir}/man1/pidof.1* | |
253 | %endif | |
4e1ebfb8 JB |
254 | %{_mandir}/man1/pgrep.1* |
255 | %{_mandir}/man1/pkill.1* | |
256 | %{_mandir}/man1/pmap.1* | |
be5402fc | 257 | %{_mandir}/man1/procps.1* |
4e1ebfb8 JB |
258 | %{_mandir}/man1/ps.1* |
259 | %{_mandir}/man1/pwdx.1* | |
260 | %{_mandir}/man1/skill.1* | |
261 | %{_mandir}/man1/slabtop.1* | |
262 | %{_mandir}/man1/snice.1* | |
263 | %{_mandir}/man1/tload.1* | |
264 | %{_mandir}/man1/top.1* | |
265 | %{_mandir}/man1/uptime.1* | |
266 | %{_mandir}/man1/w.1* | |
267 | %{_mandir}/man1/watch.1* | |
268 | %{_mandir}/man5/sysctl.conf.5* | |
269 | %{_mandir}/man8/sysctl.8* | |
270 | %{_mandir}/man8/vmstat.8* | |
271 | %lang(cs) %{_mandir}/cs/man[158]/* | |
272 | %lang(de) %{_mandir}/de/man[158]/* | |
273 | %lang(es) %{_mandir}/es/man[158]/* | |
274 | %lang(fi) %{_mandir}/fi/man[158]/* | |
275 | %lang(fr) %{_mandir}/fr/man[158]/* | |
276 | %lang(hu) %{_mandir}/hu/man[158]/* | |
277 | %lang(it) %{_mandir}/it/man[158]/* | |
278 | %lang(ja) %{_mandir}/ja/man[158]/* | |
279 | %lang(ko) %{_mandir}/ko/man[158]/* | |
280 | %lang(nl) %{_mandir}/nl/man[158]/* | |
281 | %lang(pl) %{_mandir}/pl/man[158]/* | |
9715011d JB |
282 | |
283 | %files devel | |
284 | %defattr(644,root,root,755) | |
0913e117 | 285 | %attr(755,root,root) %{_libdir}/libprocps.so |
9715011d | 286 | %{_includedir}/proc |
0913e117 | 287 | %{_pkgconfigdir}/libprocps.pc |
2a2e3e9d ER |
288 | %{_mandir}/man3/openproc.3* |
289 | %{_mandir}/man3/readproc.3* | |
290 | %{_mandir}/man3/readproctab.3* | |
9715011d JB |
291 | |
292 | %files static | |
293 | %defattr(644,root,root,755) | |
0913e117 | 294 | %{_libdir}/libprocps.a |