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