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