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