Sisyphus repository
Last update: 23 january 2020 | SRPMs: 17492 | Visits: 16937399
en ru br
ALT Linux repos
S:0.92-alt1_1
5.0: 0.14-alt5
4.1: 0.14-alt5
4.0: 0.14-alt4.M40.1

Group :: Monitoring
RPM: libstatgrab

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: libstatgrab
Version: 0.17
Release: alt1.1

Summary: libstatgrab library helps to collect many system infomation
License: LGPL, GPL
Group: System/Libraries

Url: http://www.i-scream.org/libstatgrab/
Source: %name-%version.tar.gz
Patch: %name-alt-makefile.patch
Packager: Sergey Zhumatiy <zhum at altlinux.org>

%description
Statgrab is a crossplatform library to collect system information.
Such as loadaverage, cpu usage, network usage, memory usage, etc.

%package tools
Summary: Console program to check system activity
Group: Monitoring
Requires: %name = %version-%release

%description tools
Console program to check system activity, using libstatgrab.

%package saidar
Summary: Console program to check system activity
Group: Monitoring
Requires: libncurses
Requires: %name = %version-%release
BuildRequires: libncurses-devel

%description saidar
Console program to check system activity, using libstatgrab.

%package devel
Summary: Headers for %name
Group: Development/C
Requires: %name = %version-%release

%description devel
Headers for building software that uses %name
%if_enabled static
%package devel-static
Summary: Static libraries for %name
Group: Development/C
Requires: %name-devel = %version-%release

%description devel-static
Static libs for building statically linked software that uses %name
%endif

%prep
%setup
%patch -p1

%build
%configure --with-ncurses %{subst_enable static}
#%%configure --disable-saidar %{subst_enable static}
sed -ri 's/^(hardcode_libdir_flag_spec|runpath_var)=.*/\1=/' libtool
#%%make_build
make DESTDIR=$RPM_BUILD_ROOT

%install
%makeinstall
#make DESTDIR=$RPM_BUILD_ROOT install

%files
%_libdir/*.so.*
#%%_libdir/*.la
%_libdir/%name.a
%doc AUTHORS README NEWS

%files saidar
%_bindir/saidar
%_man1dir/saidar.1*

%files tools
#%%_bindir/saidar
%_bindir/statgrab
%_bindir/statgrab-make-mrtg-config
%_bindir/statgrab-make-mrtg-index
%_man1dir/statgrab-make-mrtg-config.1*
%_man1dir/statgrab-make-mrtg-index.1*
%_man1dir/statgrab.1*

%files devel
%_libdir/*.so
%_includedir/*.h
%_man3dir/*
%_libdir/pkgconfig/libstatgrab.pc
#%%_mandir/*/*

#%%if_enabled static

#%%files -n %name-devel-static
#
#%%endif

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin