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