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