]> 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:        4.0.4
25 Release:        1
26 Epoch:          1
27 License:        GPL v2+
28 Group:          Applications/System
29 Source0:        https://downloads.sourceforge.net/procps-ng/%{name}-ng-%{version}.tar.xz
30 # Source0-md5:  2f747fc7df8ccf402d03e375c565cf96
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
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:254}
53 BuildRequires:  tar >= 1:1.22
54 BuildRequires:  xz
55 Requires:       /sbin/ldconfig
56 Requires:       fileutils
57 %{?with_systemd:Requires:       systemd-libs >= 1:254}
58 Obsoletes:      procps-X11 < 2.0.2
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 -n %{name}-ng-%{version}
150
151 %patch1 -p1
152 %patch2 -p1
153
154 %{__sed} -i -e "s#usrbin_execdir=.*#usrbin_execdir='\${bindir}'#g" configure.ac
155
156 %build
157 %{__gettextize}
158 %{__libtoolize}
159 %{__aclocal} -I m4
160 %{__autoconf}
161 %{__autoheader}
162 %{__automake}
163 %configure \
164         --disable-silent-rules \
165         %{?with_elogind:--with-elogind} \
166         %{?with_systemd:--with-systemd} \
167         --disable-kill \
168         %{?with_selinux:--enable-libselinux} \
169         %{!?with_pidof:--disable-pidof} \
170         --enable-sigwinch \
171         --enable-skill \
172         --enable-w-from \
173         --enable-watch8bit \
174         --enable-wide-percent \
175         --sbindir=/sbin
176 %{__make}
177
178 %if %{with tests}
179 %{__make} check
180 %endif
181
182 %install
183 rm -rf $RPM_BUILD_ROOT
184 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},/%{_lib},/bin}
185 %{__make} install \
186         DESTDIR=$RPM_BUILD_ROOT \
187         pkgconfigdir=%{_pkgconfigdir}
188
189 # identical programs are built independently, not hard- or symlinked:
190 ln -f $RPM_BUILD_ROOT%{_bindir}/{pkill,pgrep}
191 ln -f $RPM_BUILD_ROOT%{_bindir}/{snice,skill}
192
193 %{__mv} $RPM_BUILD_ROOT{%{_bindir},/bin}/ps
194 %if %{with pidof}
195 %{__mv} $RPM_BUILD_ROOT{%{_bindir},/bin}/pidof
196 %endif
197
198 install -d $RPM_BUILD_ROOT/%{_lib}
199 %{__mv} $RPM_BUILD_ROOT{%{_libdir}/libproc2.so.*,/%{_lib}}
200 ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libproc2.so.*.*.*) \
201         $RPM_BUILD_ROOT%{_libdir}/libproc2.so
202
203 cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}
204 cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}
205 install -p %{SOURCE4} $RPM_BUILD_ROOT%{_bindir}/XConsole
206
207 # obsoleted by pkg-config
208 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libproc2.la
209 # packaged as doc
210 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/procps-ng
211
212 bzcat -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
213 %{__rm} $RPM_BUILD_ROOT%{_mandir}/*/man1/{kill,oldps}.1
214 %{__rm} $RPM_BUILD_ROOT%{_mandir}/README-procps-non-english-man-pages
215
216 %find_lang procps-ng
217
218 %clean
219 rm -rf $RPM_BUILD_ROOT
220
221 %post   -p /sbin/ldconfig
222 %postun -p /sbin/ldconfig
223
224 %files -f procps-ng.lang
225 %defattr(644,root,root,755)
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
229 %attr(755,root,root) /bin/ps
230 %if %{with pidof}
231 %attr(755,root,root) /bin/pidof
232 %endif
233 %attr(755,root,root) /sbin/sysctl
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
239 %attr(755,root,root) %{_bindir}/pidwait
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
250 %{_desktopdir}/top.desktop
251 %{_pixmapsdir}/top.png
252 %{_mandir}/man1/free.1*
253 %if %{with pidof}
254 %{_mandir}/man1/pidof.1*
255 %endif
256 %{_mandir}/man1/pgrep.1*
257 %{_mandir}/man1/pkill.1*
258 %{_mandir}/man1/pmap.1*
259 %{_mandir}/man1/ps.1*
260 %{_mandir}/man1/pidwait.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(ro) %{_mandir}/ro/man[158]/*
286 %lang(sv) %{_mandir}/sv/man[158]/*
287 %lang(uk) %{_mandir}/uk/man[158]/*
288
289 %files devel
290 %defattr(644,root,root,755)
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*
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*
309
310 %files static
311 %defattr(644,root,root,755)
312 %{_libdir}/libproc2.a
This page took 0.200156 seconds and 4 git commands to generate.