]> git.pld-linux.org Git - packages/procps.git/blob - procps.spec
- "backport" from older procps
[packages/procps.git] / procps.spec
1 #
2 # Conditional build:
3 # _with_selinux - selinux support
4 #
5 Summary:        Utilities for monitoring your system and processes on your system
6 Summary(de):    Utilities zum Ueberwachen Ihres Systems und der Prozesse
7 Summary(es):    Utilitarios de monitoración de procesos
8 Summary(fr):    Utilitaires de surveillance des processus
9 Summary(pl):    Narzêdzia do monitorowania procesów
10 Summary(pt_BR): Utilitários de monitoração de processos
11 Summary(tr):    Süreç izleme araçlarý
12 Name:           procps
13 Version:        3.1.11
14 Release:        1
15 License:        GPL
16 Group:          Applications/System
17 Source0:        http://procps.sourceforge.net/%{name}-%{version}.tar.gz
18 # Source0-md5:  18d6c40c61fd8a94b315c07e949837ab
19 Source1:        http://atos.wmid.amu.edu.pl/~undefine/%{name}-non-english-man-pages.tar.bz2
20 # Source1-md5:  60d24720b76c10553ed4abf68b76e079
21 Patch0:         %{name}-make.patch
22 Patch1:         %{name}-sysctl_stdin.patch
23 Patch2:         %{name}-global.patch
24 Patch3:         %{name}-selinux.patch
25 URL:            http://procps.sourceforge.net/
26 BuildRequires:  ncurses-devel >= 5.1
27 %{?_with_selinux:BuildRequires: selinux-libs-devel}
28 PreReq:         fileutils
29 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 Obsoletes:      procps-X11
31
32 %description
33 The procps package contains a set of system utilities which provide
34 system information. Procps includes ps, free, skill, snice, tload,
35 top, uptime, vmstat, w and watch. The ps command displays a snapshot
36 of running processes. The top command provides a repetitive update of
37 the statuses of running processes. The free command displays the
38 amounts of free and used memory on your system. The skill command
39 sends a terminate command (or another specified signal) to a specified
40 set of processes. The snice command is used to change the scheduling
41 priority of specified processes. The tload command prints a graph of
42 the current system load average to a specified tty. The uptime command
43 displays the current time, how long the system has been running, how
44 many users are logged on and system load averages for the past one,
45 five and fifteen minutes. The w command displays a list of the users
46 who are currently logged on and what they're running. The watch
47 program watches a running program. The vmstat command displays virtual
48 memory statistics about processes, memory, paging, block I/O, traps
49 and CPU activity.
50
51 %description -l de
52 Das procps-Paket enthält System-Utilities, die Systeminformationen
53 anzeigen. Procps enthält ps, free, skill, snice, tload, top, uptime,
54 vmstat, w und watch. ps zeigt an, welche Prozesse gerade laufen. Top
55 zeigt in regelmäßigen Abständen eine Prozessliste an. Free zeigt an,
56 wieviel Speicher frei ist, und wieviel Speicher benutzt wird. Skill
57 schickt den Terminierungsbefehl (oder ein anderes angegebenes Signal)
58 an angegebene Prozesse. Snice ändert die Priorität von angegebenen
59 Prozessen. tload zeigt einen Graphen der aktuellen Systemauslastung
60 an. Uptime zeigt an, wie lange das System am laufen ist, wieviele User
61 eingeloggt sind, und die Auslastungswerte der letzten Minute, der
62 letzten 5 Minuten, und 15 Minuten. Der w-Befehl zeigt eine Liste der
63 User an, die gerade eingeloggt sind, und welches Programm sie
64 benutzen. Vmstat zeigt Statistiken über den virtuellen Speicher,
65 Prozesse, Paging, Block I/O, Traps, und CPU-Aktivität.
66
67 %description -l es
68 Un paquete de utilitarios que relatan el estado del sistema. Se da
69 énfasis a los procesos en ejecución, total de memoria disponible y a
70 los usuarios que están "logados" en el sistema.
71
72 %description -l fr
73 Paquetage d'utilitaires donnant des informations sur l'état du
74 système, dont les états des processus en cours, le total de mémoire
75 disponible, et les utilisateurs loggés.
76
77 %description -l pl
78 Pakiet zawiera podstawowe narzêdzia do monitorowania pracy systemu.
79 Dziêki tym programom bêdziesz móg³ na bie¿±co kontrolowaæ jakie
80 procesy s± w danej chwili uruchomione, ilo¶æ wolnej pamiêci, kto jest
81 w danej chwili zalogowany, jakie jest aktualne obci±¿enie systemu itp.
82
83 %description -l pt_BR
84 Um pacote de utilitários que relatam o estado do sistema. É dado
85 ênfase aos processos em execução, total de memória disponível e aos
86 usuários que estão logados no sistema.
87
88 %description -l tr
89 Sistemin durumunu rapor eden araçlar paketidir. Koþan süreçlerin
90 durumunu, kullanýlabilir bellek miktarýný, ve o an için sisteme girmiþ
91 kullanýcýlarý bildirir.
92
93 %package devel
94 Summary:        libproc header files
95 Summary(pl):    Pliki nag³ówkowe libproc
96 License:        LGPL
97 Group:          Development/Libraries
98 Requires:       %{name} = %{version}
99
100 %description devel
101 libproc header files.
102
103 %description devel -l pl
104 Pliki nag³ówkowe biblioteki libproc.
105
106 %package static
107 Summary:        Static libproc library
108 Summary(pl):    Statyczna biblioteka libproc
109 License:        LGPL
110 Group:          Development/Libraries
111 Requires:       %{name}-devel = %{version}
112
113 %description static
114 Static version of libproc library.
115
116 %description static -l pl
117 Statyczna wersja biblioteki libproc.
118
119 %prep
120 %setup -q
121 %patch0 -p1
122 %patch1 -p1
123 %patch2 -p1
124 %{?_with_selinux:%patch3 -p1}
125
126 %build
127 %{__make} \
128         CC="%{__cc}" \
129         %{!?_with_selinux:OPT="%{rpmcflags}"} \
130         %{?_with_selinux:OPT="%{rpmcflags} -DFLASK_LINUX"} \
131         LDFLAGS="%{rpmldflags}" \
132         %{?_with_selinux:SELIB="-lsecure"} \
133         SHARED=1
134
135 %{__make} \
136         CC="%{__cc}" \
137         %{!?_with_selinux:OPT="%{rpmcflags}"} \
138         %{?_with_selinux:OPT="%{rpmcflags} -DFLASK_LINUX"} \
139         LDFLAGS="%{rpmldflags}" \
140         %{?_with_selinux:SELIB="-lsecure"} \
141         SHARED=0
142
143 %install
144 rm -rf $RPM_BUILD_ROOT
145 install -d $RPM_BUILD_ROOT/{bin,sbin,lib} \
146         $RPM_BUILD_ROOT{%{_includedir}/proc,%{_libdir}} \
147         $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man{1,5,8}}
148
149 %{__make} install \
150         DESTDIR=$RPM_BUILD_ROOT \
151         install=install
152
153 install proc/*.a $RPM_BUILD_ROOT%{_libdir}
154 install proc/*.h $RPM_BUILD_ROOT%{_includedir}/proc
155
156 rm -f $RPM_BUILD_ROOT/bin/kill
157 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/{snice,kill,oldps}.1
158 rm -f $RPM_BUILD_ROOT%{_bindir}/{oldps,kill}
159
160 echo ".so skill.1" > $RPM_BUILD_ROOT%{_mandir}/man1/snice.1
161
162 bzcat -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
163 rm -f $RPM_BUILD_ROOT%{_mandir}/*/man1/{kill,oldps}.1
164
165 %clean
166 rm -rf $RPM_BUILD_ROOT
167
168 %post
169 /sbin/ldconfig
170 if [ -f /proc/uptime ] ; then
171         /bin/ps </dev/null >/dev/null 2>&1
172 fi
173 rm -f %{_sysconfdir}/psdevtab %{_sysconfdir}/psdatabase
174
175 %postun -p /sbin/ldconfig
176
177 %files
178 %defattr(644,root,root,755)
179 %doc NEWS BUGS TODO
180 %attr(755,root,root) /lib/libproc.so.*.*
181 %attr(755,root,root) /bin/*
182 %attr(755,root,root) /sbin/sysctl
183 %attr(755,root,root) %{_bindir}/*
184 %{_mandir}/man*/*
185 %lang(cs) %{_mandir}/cs/man*/*
186 %lang(de) %{_mandir}/de/man*/*
187 %lang(es) %{_mandir}/es/man*/*
188 %lang(fi) %{_mandir}/fi/man*/*
189 %lang(fr) %{_mandir}/fr/man*/*
190 %lang(hu) %{_mandir}/hu/man*/*
191 %lang(it) %{_mandir}/it/man*/*
192 %lang(ja) %{_mandir}/ja/man*/*
193 %lang(ko) %{_mandir}/ko/man*/*
194 %lang(nl) %{_mandir}/nl/man*/*
195 %lang(pl) %{_mandir}/pl/man*/*
196
197 %files devel
198 %defattr(644,root,root,755)
199 %attr(755,root,root) /lib/libproc.so
200 %{_includedir}/proc
201
202 %files static
203 %defattr(644,root,root,755)
204 %{_libdir}/libproc.a
This page took 0.059114 seconds and 3 git commands to generate.