]>
Commit | Line | Data |
---|---|---|
e0b579d4 AM |
1 | %define snap 20110915 |
2 | %define rel 1 | |
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 |
f6725696 | 12 | Release: 1.%{snap}.%{rel} |
d910449e | 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 |
e0b579d4 | 17 | # Source0-md5: ba165eebdbeb4ea2dd43acd0d8d3e696 |
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 | 24 | Patch2: %{name}-FILLBUG_backport.patch |
f892e1c0 | 25 | # http://www.nsa.gov/selinux/patches/procps-selinux.patch.gz |
38880004 | 26 | Patch3: %{name}-selinux.patch |
4d63082b | 27 | Patch4: proc-err.patch |
05ed06fa | 28 | URL: http://gitorious.org/procps/ |
dfb256ae | 29 | BuildRequires: ncurses-devel >= 5.1 |
177600bd | 30 | BuildRequires: rpmbuild(macros) >= 1.402 |
a66677ae | 31 | Requires(post): /sbin/ldconfig |
cfab0591 | 32 | Requires: fileutils |
ea362f1e | 33 | Obsoletes: procps-X11 |
168de4b7 | 34 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
9e6b678e | 35 | |
fc5aef86 | 36 | %description |
d2eca1e8 | 37 | The procps package contains a set of system utilities which provide |
38 | system information. Procps includes ps, free, skill, snice, tload, | |
756a16a0 | 39 | top, uptime, vmstat, w and watch. The ps command displays a snapshot |
d2eca1e8 | 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 | |
6dc78c4a | 53 | and CPU activity. |
fc5aef86 | 54 | |
400f831f JR |
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, | |
d2eca1e8 | 58 | vmstat, w und watch. ps zeigt an, welche Prozesse gerade laufen. Top |
400f831f | 59 | zeigt in regelmäßigen Abständen eine Prozessliste an. Free zeigt an, |
d2eca1e8 | 60 | wieviel Speicher frei ist, und wieviel Speicher benutzt wird. Skill |
61 | schickt den Terminierungsbefehl (oder ein anderes angegebenes Signal) | |
400f831f | 62 | an angegebene Prozesse. Snice ändert die Priorität von angegebenen |
d2eca1e8 | 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 | |
400f831f JR |
68 | benutzen. Vmstat zeigt Statistiken über den virtuellen Speicher, |
69 | Prozesse, Paging, Block I/O, Traps, und CPU-Aktivität. | |
fc5aef86 | 70 | |
400f831f | 71 | %description -l es.UTF-8 |
ea362f1e | 72 | Un paquete de utilitarios que relatan el estado del sistema. Se da |
400f831f JR |
73 | énfasis a los procesos en ejecución, total de memoria disponible y a |
74 | los usuarios que están "logados" en el sistema. | |
ea362f1e | 75 | |
400f831f JR |
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. | |
fc5aef86 | 80 | |
400f831f JR |
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. | |
fc5aef86 | 86 | |
400f831f JR |
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. | |
ea362f1e | 91 | |
400f831f JR |
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. | |
fc5aef86 | 96 | |
9715011d JB |
97 | %package devel |
98 | Summary: libproc header files | |
f4a157dd | 99 | Summary(pl.UTF-8): Pliki nagłówkowe libproc |
9715011d JB |
100 | License: LGPL |
101 | Group: Development/Libraries | |
4bde6177 | 102 | Requires: %{name} = %{epoch}:%{version}-%{release} |
9715011d JB |
103 | |
104 | %description devel | |
105 | libproc header files. | |
106 | ||
400f831f JR |
107 | %description devel -l pl.UTF-8 |
108 | Pliki nagłówkowe biblioteki libproc. | |
9715011d JB |
109 | |
110 | %package static | |
111 | Summary: Static libproc library | |
f4a157dd | 112 | Summary(pl.UTF-8): Statyczna biblioteka libproc |
9715011d JB |
113 | License: LGPL |
114 | Group: Development/Libraries | |
4bde6177 | 115 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
9715011d JB |
116 | |
117 | %description static | |
118 | Static version of libproc library. | |
119 | ||
400f831f | 120 | %description static -l pl.UTF-8 |
9715011d JB |
121 | Statyczna wersja biblioteki libproc. |
122 | ||
fc5aef86 | 123 | %prep |
05ed06fa | 124 | %setup -q -n %{name}-%{name} |
76df8403 | 125 | %patch0 -p1 |
e0b579d4 | 126 | |
dd1de52c | 127 | %patch2 -p1 |
92d3a845 | 128 | %patch3 -p1 |
4d63082b | 129 | %patch4 -p1 |
fc5aef86 | 130 | |
131 | %build | |
92d3a845 | 132 | %{__make} proc/libproc.a \ |
fcb3e261 | 133 | CC="%{__cc}" \ |
29f304ad | 134 | ALL_CFLAGS="%{rpmcppflags} %{rpmcflags} -Wall -ffast-math" \ |
135 | LDFLAGS="%{rpmcflags} %{rpmldflags}" \ | |
92d3a845 | 136 | SHARED=0 |
29f304ad | 137 | %{__mv} proc/libproc.a . |
92d3a845 | 138 | %{__make} clean |
fcb3e261 AM |
139 | |
140 | %{__make} \ | |
6d054cfd | 141 | CURSES="-lncurses -ltinfo" \ |
fcb3e261 | 142 | CC="%{__cc}" \ |
29f304ad | 143 | ALL_CFLAGS="%{rpmcppflags} %{rpmcflags} -Wall -ffast-math" \ |
144 | LDFLAGS="%{rpmcflags} %{rpmldflags}" \ | |
145 | LIBPROC="proc/libproc-%{version}.so" | |
fc5aef86 | 146 | |
147 | %install | |
148 | rm -rf $RPM_BUILD_ROOT | |
2e6492fa | 149 | install -d $RPM_BUILD_ROOT{%{_includedir}/proc,%{_libdir},%{_desktopdir},%{_pixmapsdir}} |
d2983712 | 150 | |
fcb3e261 | 151 | %{__make} install \ |
29f304ad | 152 | CC=false \ |
bcfa7052 | 153 | DESTDIR=$RPM_BUILD_ROOT \ |
92d3a845 | 154 | lib64=%{_lib} \ |
48555180 JB |
155 | install="install -D" \ |
156 | ldconfig=true | |
157 | ||
e65574fb | 158 | ln -sf /%{_lib}/libproc-%{version}.so \ |
48555180 | 159 | $RPM_BUILD_ROOT%{_libdir}/libproc.so |
fc5aef86 | 160 | |
92d3a845 | 161 | install libproc.a $RPM_BUILD_ROOT%{_libdir} |
fcb3e261 | 162 | install proc/*.h $RPM_BUILD_ROOT%{_includedir}/proc |
c1e7b724 | 163 | install %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir} |
2e6492fa | 164 | install %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir} |
165 | install %{SOURCE4} $RPM_BUILD_ROOT%{_bindir}/XConsole | |
d2983712 | 166 | |
9e6b678e | 167 | rm -f $RPM_BUILD_ROOT/bin/kill |
177600bd | 168 | rm -f $RPM_BUILD_ROOT%{_mandir}/man1/{kill,oldps}.1 |
67d37a63 | 169 | rm -f $RPM_BUILD_ROOT%{_bindir}/{oldps,kill} |
0a3a887a | 170 | |
bcfa7052 | 171 | bzcat -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir} |
39d7d013 | 172 | rm -f $RPM_BUILD_ROOT%{_mandir}/*/man1/{kill,oldps}.1 |
a66677ae | 173 | rm -f $RPM_BUILD_ROOT%{_mandir}/README-procps-non-english-man-pages |
6732c11b | 174 | |
9715011d JB |
175 | %clean |
176 | rm -rf $RPM_BUILD_ROOT | |
fc5aef86 | 177 | |
177600bd | 178 | %post -p /sbin/ldconfig |
fc5aef86 | 179 | %postun -p /sbin/ldconfig |
180 | ||
181 | %files | |
d2983712 | 182 | %defattr(644,root,root,755) |
9715011d | 183 | %doc NEWS BUGS TODO |
df049d91 | 184 | %attr(755,root,root) /%{_lib}/libproc*.*so |
d2983712 | 185 | %attr(755,root,root) /bin/* |
9e6b678e | 186 | %attr(755,root,root) /sbin/sysctl |
99d37661 | 187 | %attr(755,root,root) %{_bindir}/* |
c1e7b724 | 188 | %{_desktopdir}/top.desktop |
2e6492fa | 189 | %{_pixmapsdir}/top.png |
9e6b678e | 190 | %{_mandir}/man*/* |
39d7d013 | 191 | %lang(cs) %{_mandir}/cs/man*/* |
39d7d013 | 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*/* | |
9715011d JB |
202 | |
203 | %files devel | |
204 | %defattr(644,root,root,755) | |
48555180 | 205 | %attr(755,root,root) %{_libdir}/libproc.so |
9715011d JB |
206 | %{_includedir}/proc |
207 | ||
208 | %files static | |
209 | %defattr(644,root,root,755) | |
210 | %{_libdir}/libproc.a |