Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37849001
en ru br
ALT Linux repositórios
S:1.8.0-alt1
5.0: 1.2.30-alt1
4.1: 1.2.27-alt1
4.0: 1.2.23-alt1
3.0: 1.0.49-alt1

Group :: Desenvolvimento/Banco de Dados
RPM: rrd

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

#set_libtool_version 1.4

Name: rrd
Version: 1.0.49
Release: alt1
%define native rrdtool

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.bz2
Source1: MRTG-HOWTO

Patch100: %name-1.0.45-alt-configure.patch
Patch101: %name-1.0.45-alt-makefile.patch
Patch103: %name-1.0.45-alt-rmgif.patch
Patch104: %name-1.0.45-alt-warnings.patch

Patch0: %name-1.0.49-alt-configure.patch
Patch1: %name-1.0.49-alt-makefile.patch
Patch2: %name-1.0.49-alt-gd2.patch
Patch3: %name-1.0.49-alt-rmgif.patch
Patch4: %name-1.0.49-alt-warnings.patch

# remove support for GIF format from rrd-tool

#  also, remove any references to GIF

Requires: lib%name = %version-%release

Prefix: %prefix

# Automatically added by buildreq on Sun Aug 29 2004

BuildRequires: freetype2 groff-base libgd2-devel libpng-devel perl-devel tcl-devel zlib-devel

%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 -n lib%name-devel-static
Summary: Round Robin Database static library
Group: Development/C
Requires: lib%name-devel = %version-%release
Provides: %native-devel-static = %version
Obsoletes: %native-devel-static

%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 tcl
Summary: Round Robin Database tcl extension
Group: Development/Databases
Requires: lib%name = %version-%release

%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 -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 -n lib%name-devel-static
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 static library required for development of RRD-based
statically linked 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 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.

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

find doc 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%buildroot/%native-%version/src %optflags_shared
libtoolize --copy --force
aclocal
autoheader
autoconf
automake -a -c -f
%configure \
--with-tcllib=%_libdir \
--enable-shared \
--enable-local-libgd \
--enable-local-libpng \
--enable-local-zlib

%make_build

%__make -C contrib clean

pushd perl-piped
%__make clean
%def_without test
%perl_vendor_build
popd
pushd perl-shared
%__make clean
%def_without test
%perl_vendor_build
popd

%install
pushd perl-piped
%perl_vendor_install
popd
pushd perl-shared
%perl_vendor_install
popd


%makeinstall

%__mkdir_p %buildroot/%_includedir
%__install -p -m644 src/%{name}*.h %buildroot/%_includedir
%__install -p -m755 contrib/log2rrd/log2rrd.pl %buildroot/%_bindir

# install tcl

%__mkdir_p %buildroot/%_tcllibdir
%__mkdir_p %buildroot/%_tcldatadir/%name
%__install -m 0755 tcl/tclrrd.%version.so %buildroot/%_tcllibdir/tclrrd.so.%version
echo "package ifneeded Rrd %version [list load [file join \$dir ../../../lib/tcl/tclrrd.so.%version]]" > %buildroot%_tcldatadir/%name/pkgIndex.tcl

#tea_makeindex -vC %buildroot/%_tcldatadir/%name -f tclrrd.so.%version


# Prepare docs.

%__mkdir_p %buildroot/%_docdir/%name-%version/txt

%__install -p -m644 CHANGES CONTRIBUTORS COPYRIGHT README TODO %buildroot/%_docdir/%name-%version
%__install -p -m644 tcl/README %buildroot/%_docdir/%name-%version/README.tcl
%__install -p -m644 tcl/ifOctets.tcl %buildroot/%_docdir/%name-%version/examples

%__make -C contrib/trytime clean

tar -cvjf %buildroot/%_docdir/%name-%version/contrib.tar.bz2 ./contrib

#find %buildroot/%_docdir/%name-%version/contrib -name .\* -print0 |

# xargs -r0 %__rm -rf
#find %buildroot/%_docdir/%name-%version/contrib -name Makefile -o -name \*.in -print0 |
# xargs -r0 %__rm -f
#find %buildroot/%_docdir/%name-%version/contrib -type f -print0 |
# xargs -r0 fgrep -l /usr/sbin/lsattr |
# xargs perl -pi -e 's,/usr/sbin/lsattr,/usr/bin/lsattr,g'
find %buildroot/%_docdir/%name-%version -type f -print0 |
xargs -r0 %__chmod -x

%post -n lib%name
%post_ldconfig

%postun -n lib%name
%postun_ldconfig

%files -n lib%name
%_libdir/*.so.*

%files -n lib%name-devel
%_libdir/lib*.so
%_includedir/*.h
%dir %doc %_docdir/%name-%version
%doc %_docdir/%name-%version/contrib.tar.bz2

%files -n lib%name-devel-static
%_libdir/*.a

%files utils
%_bindir/*
%_mandir/man1/*
%dir %doc %_docdir/%name-%version
%doc %_docdir/%name-%version/[A-Z]*
%doc %_docdir/%name-%version/txt
%doc %_docdir/%name-%version/html
%doc %_docdir/%name-%version/examples

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

%files tcl
%_tcllibdir/tcl*
%dir %_tcldatadir/%name
%_tcldatadir/%name/*

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009