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