ALT Linux repositórios
Group :: Desenvolvimento/Banco de Dados
RPM: rrd
Main Changelog Spec Patches Sources Download Gear Bugs e 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
…
Todas as alterações você pod ver aqui
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
…
Todas as alterações você pod ver aqui