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