2 # - switch pidof to this package(?):
3 # 3.3.9 contains pidof reimplemented from scratch (replacing sysvinit pidof)
4 # NOTE: it is not 100% compatible: https://gitlab.com/procps-ng/procps/issues/4
7 %bcond_without systemd # systemd support
8 %bcond_with selinux # libselinux support (get ps context values from dynamically loaded libselinux.so.1 instead of /proc/*/attr/current)
9 %bcond_with tests # run tests. The testsuite is unsuitable for running on buildsystems
11 Summary: Utilities for monitoring your system and processes on your system
12 Summary(de.UTF-8): Utilities zum Ueberwachen Ihres Systems und der Prozesse
13 Summary(es.UTF-8): Utilitarios de monitoración de procesos
14 Summary(fr.UTF-8): Utilitaires de surveillance des processus
15 Summary(pl.UTF-8): Narzędzia do monitorowania procesów
16 Summary(pt_BR.UTF-8): Utilitários de monitoração de processos
17 Summary(tr.UTF-8): Süreç izleme araçları
23 Group: Applications/System
24 Source0: http://downloads.sourceforge.net/procps-ng/%{name}-ng-%{version}.tar.xz
25 # Source0-md5: 957e42e8b193490b2111252e4a2b443c
26 Source1: %{name}-non-english-man-pages.tar.bz2
27 # Source1-md5: 60d24720b76c10553ed4abf68b76e079
30 # Source3-md5: 5f0133b3c18000116ca48381eecc07af
32 Patch0: %{name}-missing-symbol.patch
33 Patch1: %{name}-FILLBUG_backport.patch
34 URL: https://gitlab.com/procps-ng/procps
35 BuildRequires: autoconf >= 2.69
36 BuildRequires: automake >= 1:1.11
37 %{?with_tests:BuildRequires: dejagnu}
38 BuildRequires: gettext-tools >= 0.14.1
39 %{?with_selinux:BuildRequires: libselinux-devel}
40 BuildRequires: libtool >= 2:2
41 BuildRequires: ncurses-devel >= 5.1
42 BuildRequires: pkgconfig
43 BuildRequires: rpmbuild(macros) >= 1.402
44 BuildRequires: sed >= 4.0
45 %{?with_systemd:BuildRequires: systemd-devel >= 1:206}
46 BuildRequires: tar >= 1:1.22
48 Requires(post,postun): /sbin/ldconfig
51 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
54 The procps package contains a set of system utilities which provide
55 system information. Procps includes ps, free, skill, snice, tload,
56 top, uptime, vmstat, w and watch. The ps command displays a snapshot
57 of running processes. The top command provides a repetitive update of
58 the statuses of running processes. The free command displays the
59 amounts of free and used memory on your system. The skill command
60 sends a terminate command (or another specified signal) to a specified
61 set of processes. The snice command is used to change the scheduling
62 priority of specified processes. The tload command prints a graph of
63 the current system load average to a specified tty. The uptime command
64 displays the current time, how long the system has been running, how
65 many users are logged on and system load averages for the past one,
66 five and fifteen minutes. The w command displays a list of the users
67 who are currently logged on and what they're running. The watch
68 program watches a running program. The vmstat command displays virtual
69 memory statistics about processes, memory, paging, block I/O, traps
72 %description -l de.UTF-8
73 Das procps-Paket enthält System-Utilities, die Systeminformationen
74 anzeigen. Procps enthält ps, free, skill, snice, tload, top, uptime,
75 vmstat, w und watch. ps zeigt an, welche Prozesse gerade laufen. Top
76 zeigt in regelmäßigen Abständen eine Prozessliste an. Free zeigt an,
77 wieviel Speicher frei ist, und wieviel Speicher benutzt wird. Skill
78 schickt den Terminierungsbefehl (oder ein anderes angegebenes Signal)
79 an angegebene Prozesse. Snice ändert die Priorität von angegebenen
80 Prozessen. tload zeigt einen Graphen der aktuellen Systemauslastung
81 an. Uptime zeigt an, wie lange das System am laufen ist, wieviele User
82 eingeloggt sind, und die Auslastungswerte der letzten Minute, der
83 letzten 5 Minuten, und 15 Minuten. Der w-Befehl zeigt eine Liste der
84 User an, die gerade eingeloggt sind, und welches Programm sie
85 benutzen. Vmstat zeigt Statistiken über den virtuellen Speicher,
86 Prozesse, Paging, Block I/O, Traps, und CPU-Aktivität.
88 %description -l es.UTF-8
89 Un paquete de utilitarios que relatan el estado del sistema. Se da
90 énfasis a los procesos en ejecución, total de memoria disponible y a
91 los usuarios que están "logados" en el sistema.
93 %description -l fr.UTF-8
94 Paquetage d'utilitaires donnant des informations sur l'état du
95 système, dont les états des processus en cours, le total de mémoire
96 disponible, et les utilisateurs loggés.
98 %description -l pl.UTF-8
99 Pakiet zawiera podstawowe narzędzia do monitorowania pracy systemu.
100 Dzięki tym programom będziesz mógł na bieżąco kontrolować jakie
101 procesy są w danej chwili uruchomione, ilość wolnej pamięci, kto jest
102 w danej chwili zalogowany, jakie jest aktualne obciążenie systemu itp.
104 %description -l pt_BR.UTF-8
105 Um pacote de utilitários que relatam o estado do sistema. É dado
106 ênfase aos processos em execução, total de memória disponível e aos
107 usuários que estão logados no sistema.
109 %description -l tr.UTF-8
110 Sistemin durumunu rapor eden araçlar paketidir. Koşan süreçlerin
111 durumunu, kullanılabilir bellek miktarını, ve o an için sisteme girmiş
112 kullanıcıları bildirir.
115 Summary: libproc header files
116 Summary(pl.UTF-8): Pliki nagłówkowe libproc
118 Group: Development/Libraries
119 Requires: %{name} = %{epoch}:%{version}-%{release}
122 libproc header files.
124 %description devel -l pl.UTF-8
125 Pliki nagłówkowe biblioteki libproc.
128 Summary: Static libproc library
129 Summary(pl.UTF-8): Statyczna biblioteka libproc
131 Group: Development/Libraries
132 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
135 Static version of libproc library.
137 %description static -l pl.UTF-8
138 Statyczna wersja biblioteki libproc.
141 %setup -qn %{name}-ng-%{version}
145 %{__sed} -i -e "s#usrbin_execdir=.*#usrbin_execdir='\${bindir}'#g" configure.ac
155 --disable-silent-rules \
156 %{?with_systemd:--with-systemd} \
157 %{?with_selinux:--enable-libselinux} \
163 --enable-wide-percent \
172 rm -rf $RPM_BUILD_ROOT
173 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},/%{_lib},/bin}
175 DESTDIR=$RPM_BUILD_ROOT \
176 pkgconfigdir=%{_pkgconfigdir}
178 # identical binaries are copied, not linked:
179 ln -f $RPM_BUILD_ROOT%{_bindir}/{pkill,pgrep}
180 ln -f $RPM_BUILD_ROOT%{_bindir}/{snice,skill}
182 mv $RPM_BUILD_ROOT{%{_bindir},/bin}/ps
184 install -d $RPM_BUILD_ROOT/%{_lib}
185 mv -f $RPM_BUILD_ROOT{%{_libdir}/libprocps.so.*,/%{_lib}}
186 ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libprocps.so.*.*.*) \
187 $RPM_BUILD_ROOT%{_libdir}/libprocps.so
189 cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}
190 cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}
191 install -p %{SOURCE4} $RPM_BUILD_ROOT%{_bindir}/XConsole
193 # PLD: kill is packaged in util-linux
194 %{__rm} $RPM_BUILD_ROOT%{_bindir}/kill
195 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/kill.1
196 # obsoleted by pkg-config
197 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libprocps.la
199 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/procps-ng
201 bzcat -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
202 %{__rm} $RPM_BUILD_ROOT%{_mandir}/*/man1/{kill,oldps}.1
203 %{__rm} $RPM_BUILD_ROOT%{_mandir}/README-procps-non-english-man-pages
208 rm -rf $RPM_BUILD_ROOT
210 %post -p /sbin/ldconfig
211 %postun -p /sbin/ldconfig
213 %files -f procps-ng.lang
214 %defattr(644,root,root,755)
215 %doc AUTHORS Documentation/{FAQ,TODO,bugs.md} NEWS
216 %attr(755,root,root) /%{_lib}/libprocps.so.*.*
217 %ghost %attr(755,root,root) /%{_lib}/libprocps.so.6
218 %attr(755,root,root) /bin/ps
219 %attr(755,root,root) /sbin/sysctl
220 %attr(755,root,root) %{_bindir}/XConsole
221 %attr(755,root,root) %{_bindir}/free
222 %attr(755,root,root) %{_bindir}/pgrep
223 %attr(755,root,root) %{_bindir}/pkill
224 %attr(755,root,root) %{_bindir}/pmap
225 %attr(755,root,root) %{_bindir}/pwdx
226 %attr(755,root,root) %{_bindir}/skill
227 %attr(755,root,root) %{_bindir}/slabtop
228 %attr(755,root,root) %{_bindir}/snice
229 %attr(755,root,root) %{_bindir}/tload
230 %attr(755,root,root) %{_bindir}/top
231 %attr(755,root,root) %{_bindir}/uptime
232 %attr(755,root,root) %{_bindir}/vmstat
233 %attr(755,root,root) %{_bindir}/w
234 %attr(755,root,root) %{_bindir}/watch
235 %{_desktopdir}/top.desktop
236 %{_pixmapsdir}/top.png
237 %{_mandir}/man1/free.1*
238 %{_mandir}/man1/pgrep.1*
239 %{_mandir}/man1/pkill.1*
240 %{_mandir}/man1/pmap.1*
241 %{_mandir}/man1/ps.1*
242 %{_mandir}/man1/pwdx.1*
243 %{_mandir}/man1/skill.1*
244 %{_mandir}/man1/slabtop.1*
245 %{_mandir}/man1/snice.1*
246 %{_mandir}/man1/tload.1*
247 %{_mandir}/man1/top.1*
248 %{_mandir}/man1/uptime.1*
250 %{_mandir}/man1/watch.1*
251 %{_mandir}/man5/sysctl.conf.5*
252 %{_mandir}/man8/sysctl.8*
253 %{_mandir}/man8/vmstat.8*
254 %lang(cs) %{_mandir}/cs/man[158]/*
255 %lang(de) %{_mandir}/de/man[158]/*
256 %lang(es) %{_mandir}/es/man[158]/*
257 %lang(fi) %{_mandir}/fi/man[158]/*
258 %lang(fr) %{_mandir}/fr/man[158]/*
259 %lang(hu) %{_mandir}/hu/man[158]/*
260 %lang(it) %{_mandir}/it/man[158]/*
261 %lang(ja) %{_mandir}/ja/man[158]/*
262 %lang(ko) %{_mandir}/ko/man[158]/*
263 %lang(nl) %{_mandir}/nl/man[158]/*
264 %lang(pl) %{_mandir}/pl/man[158]/*
267 %defattr(644,root,root,755)
268 %attr(755,root,root) %{_libdir}/libprocps.so
270 %{_pkgconfigdir}/libprocps.pc
271 %{_mandir}/man3/openproc.3*
272 %{_mandir}/man3/readproc.3*
273 %{_mandir}/man3/readproctab.3*
276 %defattr(644,root,root,755)
277 %{_libdir}/libprocps.a