Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37770508
en ru br
Репозитории ALT
S:1.8.0-alt1
5.1: 1.2.30-alt1
4.1: 1.2.27-alt1
4.0: 1.2.23-alt1
3.0: 1.0.49-alt1
www.altlinux.org/Changes

Группа :: Разработка/Базы Данных
Пакет: rrd

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

Name: rrd
Version: 1.2.23
Release: alt1

%define native rrdtool
%def_with tcl

Summary: RRD - round robin database
License: GPL
Group: Development/Databases

Url: http://ee-staff.ethz.ch/~oetiker/webtools/%native
Source0: %url/pub/%native-%version.tar.gz
Source1: MRTG-HOWTO
Patch0: %name-1.2.13-alt-makefiles.patch
Patch1: %name-1.2.15-alt-tcl-makefile.patch
Patch2: %name-1.2.12-alt-configure.patch
Packager: Dmitry Lebkov <dlebkov at altlinux.ru>

Requires: lib%name = %version-%release

# Automatically added by buildreq on Tue Jan 17 2006

BuildRequires: freetype2-devel gcc-c++ groff-base libart_lgpl-devel libpng-devel libstdc++-devel perl-devel python-base python-dev python-modules-encodings tcl-devel zlib-devel

Summary(ru_RU.KOI8-R): RRDtool - база данных с "циклическим обновлением"

%package -n lib%name
Summary: Round Robin Database shared library
Group: System/Libraries

%package -n lib%name-devel
Summary: Round Robin Database development files and documentation
Group: Development/C
Requires: lib%name = %version-%release
Provides: %native-devel = %version
Obsoletes: %native-devel

%package utils
Summary: Round Robin Database utilities
Group: Development/Databases
Requires: lib%name = %version-%release
Provides: %native = %version
Obsoletes: %native

%package perl
Summary: Round Robin Database perl modules
Group: Development/Databases
Requires: lib%name = %version-%release
AutoReqProv: yes, perl

%package python
Summary: Round Robin Database python modules
Group: Development/Databases
Requires: lib%name = %version-%release

%if_with tcl
%package tcl
Summary: Round Robin Database tcl extension
Group: Development/Databases
Requires: lib%name = %version-%release
%endif

%description
RRD is the Acronym for Round Robin Database. RRD is a system to store and
display time-series data (i.e. network bandwidth, machine-room temperature,
server load average). It stores the data in a very compact way that will not
expand over time, and it presents useful graphs by processing the data to
enforce a certain data density. It can be used either via simple wrapper
scripts (from shell or Perl) or via frontends that poll network devices and
put a friendly user interface on it.

%description -l ru_RU.KOI8-R
RRD - сокращение для "Round Robin Database" (база данных с "циклическим
обновлением"). RRD - система для сохранения и показа информации за
определённый промежуток времени (например скорость передачи данных в
сети, температуру в машинном зале, среднюю загрузку сервера). Она
сохраняет данные в очень компактной форме, так что данные не будут
занимать всё больше и больше места с течением времени и предоставляет
разумное графическое представление информации. Может быть использована
как из простых скриптов (shell, perl, etc), так встроена в программы,
которые опрашивают сетевые устройства и показывают данные в удобном
для пользователя виде.

%description -n lib%name
RRD is the Acronym for Round Robin Database. RRD is a system to store and
display time-series data (i.e. network bandwidth, machine-room temperature,
server load average).

This package contains shared library required for running RRD-based software.

%description -n lib%name-devel
RRD is the Acronym for Round Robin Database. RRD is a system to store and
display time-series data (i.e. network bandwidth, machine-room temperature,
server load average).

This package contains development files and documentation required for
development of RRD-based software.

%description utils
RRD is the Acronym for Round Robin Database. RRD is a system to store and
display time-series data (i.e. network bandwidth, machine-room temperature,
server load average). It stores the data in a very compact way that will not
expand over time, and it presents useful graphs by processing the data to
enforce a certain data density. It can be used either via simple wrapper
scripts (from shell or Perl) or via frontends that poll network devices and
put a friendly user interface on it.

This package contains utilities for manipulating Round Robin Databases.

%description perl
RRD is the Acronym for Round Robin Database. RRD is a system to store and
display time-series data (i.e. network bandwidth, machine-room temperature,
server load average). It stores the data in a very compact way that will not
expand over time, and it presents useful graphs by processing the data to
enforce a certain data density. It can be used either via simple wrapper
scripts (from shell or Perl) or via frontends that poll network devices and
put a friendly user interface on it.

This package contains perl modules for access the Round Robin Databases.

%description python
RRD is the Acronym for Round Robin Database. RRD is a system to store and
display time-series data (i.e. network bandwidth, machine-room temperature,
server load average). It stores the data in a very compact way that will not
expand over time, and it presents useful graphs by processing the data to
enforce a certain data density. It can be used either via simple wrapper
scripts (from shell or Perl) or via frontends that poll network devices and
put a friendly user interface on it.

This package contains python modules for access the Round Robin Databases.

%if_with tcl
%description tcl
RRD is the Acronym for Round Robin Database. RRD is a system to store and
display time-series data (i.e. network bandwidth, machine-room temperature,
server load average). It stores the data in a very compact way that will not
expand over time, and it presents useful graphs by processing the data to
enforce a certain data density. It can be used either via simple wrapper
scripts (from shell or Perl) or via frontends that poll network devices and
put a friendly user interface on it.

This package contains tcl extension for access the Round Robin Databases.
%endif

%prep
%setup -q -n %native-%version
#patch0 -p1
%patch1 -p1
#%patch2 -p1

find doc bindings/perl-piped -type f -print0 |
xargs -r0 fgrep -l /usr/local |
xargs -r perl -pi -e 's,/usr/local,%prefix,g'

%build
%add_optflags -I%_builddir/%native-%version/src %optflags_shared -I%_includedir/cgilib
autoreconf -fisv
%configure \
--enable-shared \
--disable-static \
--with-tcllib=%_libdir

%make_build

make -C bindings clean

pushd bindings/perl-piped
%def_without test
%perl_vendor_build
popd

# hack due OTHERLDFLAGS overrides by perl_vendor_build

EXTRA_LIBS="-L../../src/.libs/ -lrrd -lm"
pushd bindings/perl-shared
%perl_vendor_build
popd

%install
pushd bindings/perl-piped
%perl_vendor_install
popd

pushd bindings/perl-shared
%perl_vendor_install
popd

mkdir -p %buildroot%_tcllibdir/
make DESTDIR=%buildroot install

# seems to have changed in newer configure,

# didn't find it in 5 min; fix here // mike
mv %buildroot%_datadir/%native/examples %buildroot%_docdir/%native-%version/

%post -n lib%name
%post_ldconfig

%postun -n lib%name
%postun_ldconfig

%files -n lib%name
%_libdir/*.so.*
%dir %_datadir/%native/
%dir %_datadir/%native/fonts/
%_datadir/%native/fonts/DejaVuSansMono-Roman.ttf

%files -n lib%name-devel
%_libdir/lib*.so
%_includedir/*.h

%files utils
%_bindir/*
%_man1dir/*
%dir %doc %_docdir/%native-%version/
%doc %_docdir/%native-%version/txt/
%doc %_docdir/%native-%version/html/
%doc %_docdir/%native-%version/examples/

%files perl
%perl_vendor_privlib/RRD*
%perl_vendor_archlib/RRD*
%perl_vendor_autolib/RRD*
%perl_vendor_man3dir/RRD*

%files python
%python_sitelibdir/*

%if_with tcl
%files tcl
%_tcllibdir/tcl*.so
%_tcldatadir/tcl%name%version/
%endif

%changelog

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

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