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