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