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