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