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