]>
Commit | Line | Data |
---|---|---|
5a3a7f4c ER |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without systemd # systemd support | |
3ea88b49 | 4 | %bcond_with selinux # libselinux support (get ps context values from dynamically loaded libselinux.so.1 instead of /proc/*/attr/current) |
60d860a0 | 5 | %bcond_with tests # run tests. The testsuite is unsuitable for running on buildsystems |
5a3a7f4c | 6 | |
b52cbdbd | 7 | Summary: Utilities for monitoring your system and processes on your system |
f4a157dd ER |
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ı | |
d2983712 | 14 | Name: procps |
e173fb88 | 15 | Version: 3.3.10 |
60d860a0 | 16 | Release: 0.3 |
d910449e | 17 | Epoch: 1 |
f9286257 | 18 | License: GPL v2+ |
45f16a11 | 19 | Group: Applications/System |
e173fb88 ER |
20 | Source0: http://downloads.sourceforge.net/procps-ng/%{name}-ng-%{version}.tar.xz |
21 | # Source0-md5: 1fb7f3f6bf92ce6c5c9ed9949ae858fe | |
0913e117 | 22 | Source1: %{name}-non-english-man-pages.tar.bz2 |
14f4fdce | 23 | # Source1-md5: 60d24720b76c10553ed4abf68b76e079 |
9df2e818 | 24 | Source2: top.desktop |
2e6492fa | 25 | Source3: top.png |
26 | Source4: XConsole.sh | |
7e1ff2c6 | 27 | Patch0: %{name}-missing-symbol.patch |
0913e117 | 28 | Patch1: %{name}-FILLBUG_backport.patch |
e173fb88 ER |
29 | URL: https://gitlab.com/procps-ng/procps |
30 | BuildRequires: autoconf >= 2.69 | |
f9286257 | 31 | BuildRequires: automake >= 1:1.11 |
60d860a0 | 32 | %{?with_tests:BuildRequires: dejagnu} |
19c27ecd | 33 | BuildRequires: gettext-tools >= 0.14.1 |
4f625e13 | 34 | %{?with_selinux:BuildRequires: libselinux-devel} |
f9286257 | 35 | BuildRequires: libtool >= 2:2 |
dfb256ae | 36 | BuildRequires: ncurses-devel >= 5.1 |
f9286257 | 37 | BuildRequires: pkgconfig |
177600bd | 38 | BuildRequires: rpmbuild(macros) >= 1.402 |
12ae026b | 39 | BuildRequires: sed >= 4.0 |
5a3a7f4c | 40 | %{?with_systemd:BuildRequires: systemd-devel >= 1:206} |
e173fb88 ER |
41 | BuildRequires: tar >= 1:1.22 |
42 | BuildRequires: xz | |
60d860a0 | 43 | Requires(post,postun): /sbin/ldconfig |
cfab0591 | 44 | Requires: fileutils |
ea362f1e | 45 | Obsoletes: procps-X11 |
168de4b7 | 46 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
9e6b678e | 47 | |
fc5aef86 | 48 | %description |
d2eca1e8 | 49 | The procps package contains a set of system utilities which provide |
50 | system information. Procps includes ps, free, skill, snice, tload, | |
756a16a0 | 51 | top, uptime, vmstat, w and watch. The ps command displays a snapshot |
d2eca1e8 | 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 | |
6dc78c4a | 65 | and CPU activity. |
fc5aef86 | 66 | |
400f831f JR |
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, | |
d2eca1e8 | 70 | vmstat, w und watch. ps zeigt an, welche Prozesse gerade laufen. Top |
400f831f | 71 | zeigt in regelmäßigen Abständen eine Prozessliste an. Free zeigt an, |
d2eca1e8 | 72 | wieviel Speicher frei ist, und wieviel Speicher benutzt wird. Skill |
73 | schickt den Terminierungsbefehl (oder ein anderes angegebenes Signal) | |
400f831f | 74 | an angegebene Prozesse. Snice ändert die Priorität von angegebenen |
d2eca1e8 | 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 | |
400f831f JR |
80 | benutzen. Vmstat zeigt Statistiken über den virtuellen Speicher, |
81 | Prozesse, Paging, Block I/O, Traps, und CPU-Aktivität. | |
fc5aef86 | 82 | |
400f831f | 83 | %description -l es.UTF-8 |
ea362f1e | 84 | Un paquete de utilitarios que relatan el estado del sistema. Se da |
400f831f JR |
85 | énfasis a los procesos en ejecución, total de memoria disponible y a |
86 | los usuarios que están "logados" en el sistema. | |
ea362f1e | 87 | |
400f831f JR |
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. | |
fc5aef86 | 92 | |
400f831f JR |
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. | |
fc5aef86 | 98 | |
400f831f JR |
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. | |
ea362f1e | 103 | |
400f831f JR |
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. | |
fc5aef86 | 108 | |
9715011d JB |
109 | %package devel |
110 | Summary: libproc header files | |
f4a157dd | 111 | Summary(pl.UTF-8): Pliki nagłówkowe libproc |
9715011d JB |
112 | License: LGPL |
113 | Group: Development/Libraries | |
4bde6177 | 114 | Requires: %{name} = %{epoch}:%{version}-%{release} |
9715011d JB |
115 | |
116 | %description devel | |
117 | libproc header files. | |
118 | ||
400f831f JR |
119 | %description devel -l pl.UTF-8 |
120 | Pliki nagłówkowe biblioteki libproc. | |
9715011d JB |
121 | |
122 | %package static | |
123 | Summary: Static libproc library | |
f4a157dd | 124 | Summary(pl.UTF-8): Statyczna biblioteka libproc |
9715011d JB |
125 | License: LGPL |
126 | Group: Development/Libraries | |
4bde6177 | 127 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
9715011d JB |
128 | |
129 | %description static | |
130 | Static version of libproc library. | |
131 | ||
400f831f | 132 | %description static -l pl.UTF-8 |
9715011d JB |
133 | Statyczna wersja biblioteki libproc. |
134 | ||
fc5aef86 | 135 | %prep |
e173fb88 | 136 | %setup -qn %{name}-ng-%{version} |
7e1ff2c6 | 137 | %patch0 -p1 |
0913e117 | 138 | %patch1 -p1 |
a8cff2af | 139 | |
12ae026b | 140 | %{__sed} -i -e "s#usrbin_execdir=.*#usrbin_execdir='\${bindir}'#g" configure.ac |
fc5aef86 | 141 | |
142 | %build | |
f9286257 | 143 | %{__gettextize} |
a8cff2af | 144 | %{__libtoolize} |
0913e117 | 145 | %{__aclocal} -I m4 |
a8cff2af AM |
146 | %{__autoconf} |
147 | %{__autoheader} | |
148 | %{__automake} | |
149 | %configure \ | |
2a2e3e9d | 150 | --disable-silent-rules \ |
60015e09 | 151 | %{?with_systemd:--with-systemd} \ |
4f625e13 | 152 | %{?with_selinux:--enable-libselinux} \ |
9f722520 | 153 | --disable-pidof \ |
593d2dcd ER |
154 | --enable-oomem \ |
155 | --enable-sigwinch \ | |
0913e117 | 156 | --enable-skill \ |
593d2dcd ER |
157 | --enable-w-from \ |
158 | --enable-watch8bit \ | |
159 | --enable-wide-percent \ | |
160 | --sbindir=/sbin | |
a8cff2af | 161 | %{__make} |
fc5aef86 | 162 | |
60d860a0 ER |
163 | %if %{with tests} |
164 | %{__make} check | |
165 | %endif | |
166 | ||
fc5aef86 | 167 | %install |
168 | rm -rf $RPM_BUILD_ROOT | |
4e1ebfb8 | 169 | install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},/%{_lib},/bin} |
fcb3e261 | 170 | %{__make} install \ |
4e1ebfb8 JB |
171 | DESTDIR=$RPM_BUILD_ROOT \ |
172 | pkgconfigdir=%{_pkgconfigdir} | |
48555180 | 173 | |
390e4711 ER |
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} | |
177 | ||
9f722520 | 178 | mv $RPM_BUILD_ROOT{%{_bindir},/bin}/ps |
0913e117 AM |
179 | |
180 | install -d $RPM_BUILD_ROOT/%{_lib} | |
9f722520 | 181 | mv -f $RPM_BUILD_ROOT{%{_libdir}/libprocps.so.*,/%{_lib}} |
0913e117 AM |
182 | ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libprocps.so.*.*.*) \ |
183 | $RPM_BUILD_ROOT%{_libdir}/libprocps.so | |
fc5aef86 | 184 | |
e173fb88 ER |
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 | |
d2983712 | 188 | |
4e1ebfb8 JB |
189 | # PLD: kill is packaged in util-linux |
190 | %{__rm} $RPM_BUILD_ROOT%{_bindir}/kill | |
191 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/kill.1 | |
4e1ebfb8 | 192 | # obsoleted by pkg-config |
0913e117 | 193 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libprocps.la |
4e1ebfb8 JB |
194 | # packaged as doc |
195 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/procps-ng | |
0a3a887a | 196 | |
bcfa7052 | 197 | bzcat -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir} |
4e1ebfb8 JB |
198 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/*/man1/{kill,oldps}.1 |
199 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/README-procps-non-english-man-pages | |
6732c11b | 200 | |
3ea88b49 JB |
201 | %find_lang procps-ng |
202 | ||
9715011d JB |
203 | %clean |
204 | rm -rf $RPM_BUILD_ROOT | |
fc5aef86 | 205 | |
177600bd | 206 | %post -p /sbin/ldconfig |
fc5aef86 | 207 | %postun -p /sbin/ldconfig |
208 | ||
3ea88b49 | 209 | %files -f procps-ng.lang |
d2983712 | 210 | %defattr(644,root,root,755) |
0913e117 AM |
211 | %doc AUTHORS Documentation/{BUGS,FAQ,TODO} NEWS README top/README.top |
212 | %attr(755,root,root) /%{_lib}/libprocps.so.*.* | |
9f722520 | 213 | %ghost %attr(755,root,root) /%{_lib}/libprocps.so.4 |
4e1ebfb8 | 214 | %attr(755,root,root) /bin/ps |
9e6b678e | 215 | %attr(755,root,root) /sbin/sysctl |
4e1ebfb8 JB |
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 | |
c1e7b724 | 231 | %{_desktopdir}/top.desktop |
2e6492fa | 232 | %{_pixmapsdir}/top.png |
4e1ebfb8 JB |
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* | |
245 | %{_mandir}/man1/w.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]/* | |
9715011d JB |
261 | |
262 | %files devel | |
263 | %defattr(644,root,root,755) | |
0913e117 | 264 | %attr(755,root,root) %{_libdir}/libprocps.so |
9715011d | 265 | %{_includedir}/proc |
0913e117 | 266 | %{_pkgconfigdir}/libprocps.pc |
2a2e3e9d ER |
267 | %{_mandir}/man3/openproc.3* |
268 | %{_mandir}/man3/readproc.3* | |
269 | %{_mandir}/man3/readproctab.3* | |
9715011d JB |
270 | |
271 | %files static | |
272 | %defattr(644,root,root,755) | |
0913e117 | 273 | %{_libdir}/libprocps.a |