blob: a878a7c2106c0f6c8295d0d4d1c6cc9c8af05e12 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
Summary: An X Window System based CPU state monitor
Summary(pl.UTF-8): Monitor stanu procesora pod X Window System
Name: xcpustate
Version: 2.5
Release: 6
License: freely distributable
Group: Applications/System
Source0: ftp://ftp.cs.toronto.edu/pub/jdd/xcpustate/%{name}-%{version}.tar.gz
# Source0-md5: a40054e91c694b8a87be8f5819d8ad09
Patch0: %{name}-%{version}-nlist.patch
Patch1: %{name}-%{version}-alpha.patch
Patch2: %{name}-%{version}-6.0.patch
BuildRequires: libelf-devel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _prefix /usr/X11R6
%define _mandir %{_prefix}/man
%description
The xcpustate utility is an X Window System based monitor which shows
the amount of time that the CPU is spending in different states. On a
Linux system, xcpustate displays a bar that indicates the amounts of
idle, user, nice and system time (from left to right) used by the CPU.
Install the xcpustate package if you'd like to use a horizontal bar
style CPU state monitor.
%description -l pl.UTF-8
Narzędzie xcpustate jest działającym pod X Window System monitorem
pokazującym jak dużo czasu procesor spędza w poszczególnych stanach.
Pod Linuksem xcpustate rysuje wykres czasu idle, user, nice i system.
%prep
%setup -q
%patch0 -p1
%patch2 -p1
%ifarch alpha
%patch1 -p1
%endif
%build
xmkmf
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
%{__make} install install.man DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/xcpustate
%{_mandir}/man1/xcpustate.1x*
|