Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37044858
en ru br
Репозитории ALT
S:0.92.1-alt1_1
5.1: 0.16-alt1
4.1: 0.14-alt5
4.0: 0.14-alt4.M40.1
www.altlinux.org/Changes

Группа :: Система/Библиотеки
Пакет: libstatgrab

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Summary: libstatgrab library helps to collect many system infomation
Name: libstatgrab
Version: 0.16
Release: alt1
#Release: 1

Packager: Sergey Zhumatiy <zhum at altlinux.org>

License: LGPL, GPL
Group: System/Libraries
Source: %name-%version.tar.gz
Url: http://www.i-scream.org/libstatgrab/
Patch: %name-alt-makefile.patch

#BuildRoot: /var/tmp/%{name}-buildroot

#%%define _libdir /usr/lib
#%%define _bindir /usr/bin
#%%define _includedir /usr/include
#%%define _mandir /usr/share/man/
#%%define post_ldconfig /sbin/ldconfig
#%%define postun_ldconfig /sbin/ldconfig

%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
BuildPreReq: 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}
#%%make_build
make DESTDIR=$RPM_BUILD_ROOT

%install
%makeinstall
#make DESTDIR=$RPM_BUILD_ROOT install

%post -p %post_ldconfig
%postun -p %postun_ldconfig

%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

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin