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