-%include /usr/lib/rpm/macros.perl
+# TODO:
+# - readd php-rrdtool - separate spec?
+# (but not ready yet - php4-rrdtool-1.03.tar.gz is outdated)
+%include /usr/lib/rpm/macros.perl
Summary: RRDtool - round robin database
Summary(pl): RRDtool - baza danych typu round-robin
Summary(pt_BR): Round Robin Database, uma ferramenta para construção de gráficos
Summary(ru): RRDtool - ÂÁÚÁ ÄÁÎÎÙÈ Ó "ÃÉËÌÉÞÅÓËÉÍ ÏÂÎÏ×ÌÅÎÉÅÍ"
Summary(uk): RRDtool - ÃÅ ÓÉÓÔÅÍÁ ÚÂÅÒ¦ÇÁÎÎÑ ÔÁ ÐÏËÁÚÕ ÓÅÒ¦ÊÎÉÈ ÄÁÎÉÈ
Name: rrdtool
-Version: 1.0.45
-Release: 1
+Version: 1.2.10
+Release: 0.1
License: GPL
Group: Applications/Databases
Source0: http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/pub/%{name}-%{version}.tar.gz
-# Source0-md5: 64086fc7f1ca28c069ee5104f85d7a8c
-Patch0: %{name}-makefile.patch
-Patch1: %{name}-perl-install.patch
-Patch2: %{name}-acfix.patch
-Patch3: %{name}-system-libs.patch
-URL: http://ee-staff.ethz.ch/~oetiker/webtools/rrdtol/
-BuildRequires: autoconf
+# Source0-md5: ebf90d351126a225e87dbb88da7635f9
+Patch0: %{name}-cgic.patch
+URL: http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/
+BuildRequires: autoconf >= 2.59
BuildRequires: automake
-BuildRequires: gd-devel >= 1.3
-BuildRequires: libpng-devel >= 1.0.9
+BuildRequires: cgilibc-devel >= 0.5
+BuildRequires: freetype-devel >= 2.1.7
+BuildRequires: libart_lgpl-devel >= 2.3.17
+BuildRequires: libpng-devel >= 2:1.2.8
BuildRequires: libtool
-BuildRequires: perl-devel >= 5.6.1
-BuildRequires: gcc-c++ >= 3.3.2
-BuildRequires: perl-devel >= 5.8.0
-#BuildRequired: tcl-devel
-BuildRequires: zlib-devel >= 1.1.4
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: pkgconfig
+BuildRequires: python
+BuildRequires: python-devel
+BuildRequires: rpm-perlprov
+BuildRequires: tcl-devel
+BuildRequires: zlib-devel >= 1.2.1
+Requires: cgilibc >= 0.5
+Requires: libart_lgpl >= 2.3.17
+Requires: libpng >= 1.2.8
+Requires: zlib >= 1.2.1
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
%description -l pl
RRD jest akronimem Round Robin Database. Jest to system pozwalaj±cy na
sk³adowanie i wy¶wietlanie czasowych serii danych (np. przepustowo¶æ
-sieci, temperatura w pomieszczeniu, obci±¿enie servera). Sk³aduje dane
+sieci, temperatura w pomieszczeniu, obci±¿enie serwera). Sk³aduje dane
w "skondensowanej" postaci, która nie rozrasta siê z biegiem czasu
oraz pozwala na produkowanie wykresów z u¿ytecznymi danymi. Mo¿e byæ
u¿ywane poprzez prosty skrypcik (shell lub perl), frontendy czy inne
ÐÒÉÓÔÒϧ ÔÁ ÎÁÄÁÀÔØ ÄÒÕÖÎ¦Ê ¦ÎÔÅÒÆÅÊÓ ËÏÒÉÓÔÕ×ÁÞÁ.
%package devel
-Summary: RDDTools development
-Summary(pl): Narzêdzia programistyczne pakietu RRDtools
+Summary: RRDtool development
+Summary(pl): Narzêdzia programistyczne pakietu RRDtool
Summary(pt_BR): Bibliotecas e arquivos de inclusão da librrd
-Summary(ru): RRDtool - ÂÁÚÁ ÄÁÎÎÙÈ Ó "ÃÉËÌÉÞÅÓËÉÍ ÏÂÎÏ×ÌÅÎÉÅÍ". úÁÇÏÌÏ×ËÉ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ
+Summary(ru): RRDtool - úÁÇÏÌÏ×ËÉ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ
Summary(uk): RRDtool - ¦Â̦ÏÔÅÞΦ ̦ÎËÉ ÔÁ ÆÁÊÌÉ ÈÅÄÅÒ¦×
Group: Development/Libraries
-Requires: %{name} = %{version}
+Requires: %{name} = %{version}-%{release}
+Requires: cgilibc-devel >= 0.5
+Requires: freetype-devel >= 2.1.7
+Requires: libart_lgpl-devel >= 2.3.17
+Requires: libpng-devel >= 2:1.2.8
+Requires: zlib-devel >= 1.2.1
%description devel
-RDDTools development files.
+RRDtool development files.
%description devel -l pl
-Narzêdzia programistyczne pakietu RRDtools.
+Narzêdzia programistyczne pakietu RRDtool.
%description devel -l pt_BR
RRD e' um sistema para armazenar e apresentar series temporais de
RRDtool - ÂÉÂÌÉÏÔÅÞÎÙÅ ÌÉÎËÉ É ÆÁÊÌÙ ÈÅÄÅÒÏ×.
%package static
-Summary: RDDTools static library
-Summary(pl): Statyczne biblioteki RRDtools
+Summary: RRDtool static library
+Summary(pl): Statyczne biblioteki RRDtool
Summary(pt_BR): Biblioteca estática librrd
-Summary(ru): RRDtool - ÂÁÚÁ ÄÁÎÎÙÈ Ó "ÃÉËÌÉÞÅÓËÉÍ ÏÂÎÏ×ÌÅÎÉÅÍ". óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ
+Summary(ru): RRDtool - óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ
Summary(uk): óÔÁÔÉÞΦ ¦Â̦ÏÔÅËÉ RRDtool
Group: Development/Libraries
-Requires: %{name}-devel = %{version}
+Requires: %{name}-devel = %{version}-%{release}
%description static
-RDDTools static library.
+RRDtool static library.
%description static -l pl
-Statyczne biblioteki RRDtools.
+Statyczne biblioteki RRDtool.
%description static -l pt_BR
RRD e' um sistema para armazenar e apresentar series temporais de
%description static -l uk
óÔÁÔÉÞΦ ¦Â̦ÏÔÅËÉ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ ×ÉËÏÒÉÓÔÏ×ÕÀÔØ RRDtool.
+%package -n perl-rrdtool
+Summary: Access RRDtool from Perl
+Summary(pl): Dostêp do RRDtoola z poziomu Perla
+Group: Development/Languages/Perl
+Requires: %{name} = %{version}-%{release}
+
+%description -n perl-rrdtool
+Perl modules to access RRDtool: RRDs to access RRDtool as shared
+module and RRDp to access RRDtool via a set of pipes.
+
+%description -n perl-rrdtool -l pl
+Modu³y Perla pozwalaj±ce na dostêp do RRDtoola: RRDs do dostêpu do
+RRDtoola jako modu³u dzielonego oraz RRDp do dostêpu poprzez zestaw
+potoków.
+
+%package -n python-rrdtool
+Summary: Python interface to RRDtool
+Summary(pl): Pythonowy interfejs do RRDtoola
+Group: Development/Languages/Python
+Requires: %{name} = %{version}-%{release}
+%pyrequires_eq python-libs
+
+%description -n python-rrdtool
+Python interface to RRDtool, the graphing and logging utility.
+
+%description -n python-rrdtool -l pl
+Interfejs Pythona do RRDtoola - narzêdzia do tworzenia wykresów i
+logowania.
+
+%package -n tcl-rrdtool
+Summary: Tcl extension to access the RRD library
+Summary(pl): Rozszerzenie Tcl-a pozwalaj±ce na dostêp do biblioteki Tcl
+Group: Development/Languages/Tcl
+Requires: %{name} = %{version}-%{release}
+Requires: tcl
+
+%description -n tcl-rrdtool
+Tcl extension to access the RRD library.
+
+%description -n tcl-rrdtool -l pl
+Rozszerzenie Tcl-a pozwalaj±ce na dostêp do biblioteki Tcl.
+
%prep
%setup -q
%patch0 -p1
-%patch1 -p1
-%patch2 -p1
-%patch3 -p1
-
-%{__perl} -pi -e 's/--localdir=/-B /g' Makefile.am */Makefile.am
%build
%{__libtoolize}
%{__autoconf}
%{__autoheader} -I config
%{__automake}
+CPPFLAGS="-I%{_includedir}/cgilibc"
%configure \
- --enable-shared=yes \
+ --enable-latin2 \
--with-perl=%{__perl} \
- --with-perl-options="INSTALLDIRS=vendor" \
- --without-tclib
-# uncoment this line ONLY IF tcl package is ready.
-# --with-tclib=%{_prefix}
+ --with-perl-options="INSTALLDIRS=vendor"
%{__make}
install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
%{__make} install \
- DESTDIR=$RPM_BUILD_ROOT
+ DESTDIR=$RPM_BUILD_ROOT \
+ perl_sitearch=%{perl_vendorarch} \
+ pythondir=%{py_sitedir} \
+ examplesdir=%{_examplesdir}/%{name}-%{version}
-# this shoudn't be required...
-%{__make} site-perl-install \
- DESTDIR=$RPM_BUILD_ROOT
-
-cd $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
-mv -f ../../../examples/* .
-mv -f ../../../contrib .
+rm -rf $RPM_BUILD_ROOT%{_prefix}/{doc,html}
%clean
rm -rf $RPM_BUILD_ROOT
-%post -p /sbin/ldconfig
-%postun -p /sbin/ldconfig
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
%files
%defattr(644,root,root,755)
-%doc CHANGES CONTRIBUTORS README TODO doc/*.html
+%doc CHANGES CONTRIBUTORS NEWS README THREADS TODO doc/*.html
%attr(755,root,root) %{_bindir}/rrd*
-%attr(755,root,root) %{_bindir}/trytime
-%attr(755,root,root) %{_libdir}/lib*.so.*.*
-%{perl_vendorlib}/RRDp.pm
-%{perl_vendorarch}/*.pm
-%dir %{perl_vendorarch}/auto/RRDs
-%{perl_vendorarch}/auto/RRDs/RRDs.bs
-%attr(755,root,root) %{perl_vendorarch}/auto/RRDs/RRDs.so
+%attr(755,root,root) %{_libdir}/librrd.so.*.*.*
+%attr(755,root,root) %{_libdir}/librrd_th.so.*.*.*
+%{_datadir}/rrdtool
%{_mandir}/man1/*
%files devel
%defattr(644,root,root,755)
%attr(644,root,root) %{_libdir}/librrd.so
+%attr(644,root,root) %{_libdir}/librrd_th.so
%{_libdir}/librrd.la
-%{_includedir}/*
+%{_libdir}/librrd_th.la
+%{_includedir}/rrd.h
%{_examplesdir}/%{name}-%{version}
-%{_mandir}/man3/*
%files static
%defattr(644,root,root,755)
%{_libdir}/librrd.a
+%{_libdir}/librrd_th.a
+
+%files -n perl-rrdtool
+%defattr(644,root,root,755)
+%{perl_vendorlib}/RRDp.pm
+%{perl_vendorarch}/RRDs.pm
+%dir %{perl_vendorarch}/auto/RRDs
+%{perl_vendorarch}/auto/RRDs/RRDs.bs
+%attr(755,root,root) %{perl_vendorarch}/auto/RRDs/RRDs.so
+%{_mandir}/man3/RRDp.3*
+%{_mandir}/man3/RRDs.3*
+
+%files -n python-rrdtool
+%defattr(644,root,root,755)
+%attr(755,root,root) %{py_sitedir}/rrdtoolmodule.so
+
+%files -n tcl-rrdtool
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/tclrrd%{version}.so
+/usr/lib/tclrrd%{version}