]> git.pld-linux.org Git - packages/procps.git/blame - procps.spec
- package locales
[packages/procps.git] / procps.spec
CommitLineData
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 7Summary: Utilities for monitoring your system and processes on your system
f4a157dd
ER
8Summary(de.UTF-8): Utilities zum Ueberwachen Ihres Systems und der Prozesse
9Summary(es.UTF-8): Utilitarios de monitoración de procesos
10Summary(fr.UTF-8): Utilitaires de surveillance des processus
11Summary(pl.UTF-8): Narzędzia do monitorowania procesów
12Summary(pt_BR.UTF-8): Utilitários de monitoração de processos
13Summary(tr.UTF-8): Süreç izleme araçları
d2983712 14Name: procps
e173fb88 15Version: 3.3.10
60d860a0 16Release: 0.3
d910449e 17Epoch: 1
f9286257 18License: GPL v2+
45f16a11 19Group: Applications/System
e173fb88
ER
20Source0: http://downloads.sourceforge.net/procps-ng/%{name}-ng-%{version}.tar.xz
21# Source0-md5: 1fb7f3f6bf92ce6c5c9ed9949ae858fe
0913e117 22Source1: %{name}-non-english-man-pages.tar.bz2
14f4fdce 23# Source1-md5: 60d24720b76c10553ed4abf68b76e079
9df2e818 24Source2: top.desktop
2e6492fa 25Source3: top.png
26Source4: XConsole.sh
7e1ff2c6 27Patch0: %{name}-missing-symbol.patch
0913e117 28Patch1: %{name}-FILLBUG_backport.patch
e173fb88
ER
29URL: https://gitlab.com/procps-ng/procps
30BuildRequires: autoconf >= 2.69
f9286257 31BuildRequires: automake >= 1:1.11
60d860a0 32%{?with_tests:BuildRequires: dejagnu}
19c27ecd 33BuildRequires: gettext-tools >= 0.14.1
4f625e13 34%{?with_selinux:BuildRequires: libselinux-devel}
f9286257 35BuildRequires: libtool >= 2:2
dfb256ae 36BuildRequires: ncurses-devel >= 5.1
f9286257 37BuildRequires: pkgconfig
177600bd 38BuildRequires: rpmbuild(macros) >= 1.402
12ae026b 39BuildRequires: sed >= 4.0
5a3a7f4c 40%{?with_systemd:BuildRequires: systemd-devel >= 1:206}
e173fb88
ER
41BuildRequires: tar >= 1:1.22
42BuildRequires: xz
60d860a0 43Requires(post,postun): /sbin/ldconfig
cfab0591 44Requires: fileutils
ea362f1e 45Obsoletes: procps-X11
168de4b7 46BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
9e6b678e 47
fc5aef86 48%description
d2eca1e8 49The procps package contains a set of system utilities which provide
50system information. Procps includes ps, free, skill, snice, tload,
756a16a0 51top, uptime, vmstat, w and watch. The ps command displays a snapshot
d2eca1e8 52of running processes. The top command provides a repetitive update of
53the statuses of running processes. The free command displays the
54amounts of free and used memory on your system. The skill command
55sends a terminate command (or another specified signal) to a specified
56set of processes. The snice command is used to change the scheduling
57priority of specified processes. The tload command prints a graph of
58the current system load average to a specified tty. The uptime command
59displays the current time, how long the system has been running, how
60many users are logged on and system load averages for the past one,
61five and fifteen minutes. The w command displays a list of the users
62who are currently logged on and what they're running. The watch
63program watches a running program. The vmstat command displays virtual
64memory statistics about processes, memory, paging, block I/O, traps
6dc78c4a 65and CPU activity.
fc5aef86 66
400f831f
JR
67%description -l de.UTF-8
68Das procps-Paket enthält System-Utilities, die Systeminformationen
69anzeigen. Procps enthält ps, free, skill, snice, tload, top, uptime,
d2eca1e8 70vmstat, w und watch. ps zeigt an, welche Prozesse gerade laufen. Top
400f831f 71zeigt in regelmäßigen Abständen eine Prozessliste an. Free zeigt an,
d2eca1e8 72wieviel Speicher frei ist, und wieviel Speicher benutzt wird. Skill
73schickt den Terminierungsbefehl (oder ein anderes angegebenes Signal)
400f831f 74an angegebene Prozesse. Snice ändert die Priorität von angegebenen
d2eca1e8 75Prozessen. tload zeigt einen Graphen der aktuellen Systemauslastung
76an. Uptime zeigt an, wie lange das System am laufen ist, wieviele User
77eingeloggt sind, und die Auslastungswerte der letzten Minute, der
78letzten 5 Minuten, und 15 Minuten. Der w-Befehl zeigt eine Liste der
79User an, die gerade eingeloggt sind, und welches Programm sie
400f831f
JR
80benutzen. Vmstat zeigt Statistiken über den virtuellen Speicher,
81Prozesse, Paging, Block I/O, Traps, und CPU-Aktivität.
fc5aef86 82
400f831f 83%description -l es.UTF-8
ea362f1e 84Un 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
86los usuarios que están "logados" en el sistema.
ea362f1e 87
400f831f
JR
88%description -l fr.UTF-8
89Paquetage d'utilitaires donnant des informations sur l'état du
90système, dont les états des processus en cours, le total de mémoire
91disponible, et les utilisateurs loggés.
fc5aef86 92
400f831f
JR
93%description -l pl.UTF-8
94Pakiet zawiera podstawowe narzędzia do monitorowania pracy systemu.
95Dzięki tym programom będziesz mógł na bieżąco kontrolować jakie
96procesy są w danej chwili uruchomione, ilość wolnej pamięci, kto jest
97w danej chwili zalogowany, jakie jest aktualne obciążenie systemu itp.
fc5aef86 98
400f831f
JR
99%description -l pt_BR.UTF-8
100Um 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
102usuários que estão logados no sistema.
ea362f1e 103
400f831f
JR
104%description -l tr.UTF-8
105Sistemin durumunu rapor eden araçlar paketidir. Koşan süreçlerin
106durumunu, kullanılabilir bellek miktarını, ve o an için sisteme girmiş
107kullanıcıları bildirir.
fc5aef86 108
9715011d
JB
109%package devel
110Summary: libproc header files
f4a157dd 111Summary(pl.UTF-8): Pliki nagłówkowe libproc
9715011d
JB
112License: LGPL
113Group: Development/Libraries
4bde6177 114Requires: %{name} = %{epoch}:%{version}-%{release}
9715011d
JB
115
116%description devel
117libproc header files.
118
400f831f
JR
119%description devel -l pl.UTF-8
120Pliki nagłówkowe biblioteki libproc.
9715011d
JB
121
122%package static
123Summary: Static libproc library
f4a157dd 124Summary(pl.UTF-8): Statyczna biblioteka libproc
9715011d
JB
125License: LGPL
126Group: Development/Libraries
4bde6177 127Requires: %{name}-devel = %{epoch}:%{version}-%{release}
9715011d
JB
128
129%description static
130Static version of libproc library.
131
400f831f 132%description static -l pl.UTF-8
9715011d
JB
133Statyczna 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
168rm -rf $RPM_BUILD_ROOT
4e1ebfb8 169install -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:
175ln -f $RPM_BUILD_ROOT%{_bindir}/{pkill,pgrep}
176ln -f $RPM_BUILD_ROOT%{_bindir}/{snice,skill}
177
9f722520 178mv $RPM_BUILD_ROOT{%{_bindir},/bin}/ps
0913e117
AM
179
180install -d $RPM_BUILD_ROOT/%{_lib}
9f722520 181mv -f $RPM_BUILD_ROOT{%{_libdir}/libprocps.so.*,/%{_lib}}
0913e117
AM
182ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libprocps.so.*.*.*) \
183 $RPM_BUILD_ROOT%{_libdir}/libprocps.so
fc5aef86 184
e173fb88
ER
185cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}
186cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}
187install -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 197bzcat -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
204rm -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
This page took 0.095853 seconds and 4 git commands to generate.