Search
j0ke.net Open Build Service
>
Projects
>
server:monitoring
>
rrdtool
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 7
[-]
[+]
Added
rrdtool.spec
@@ -0,0 +1,303 @@ +# +# spec file for package rrdtool (Version 1.2.23) +# +# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. +# This file and all modifications and additions to the pristine +# package are under the same license as the package itself. +# +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +# norootforbuild + +Name: rrdtool +BuildRequires: freetype2-devel libart_lgpl-devel libpng-devel python-devel tcl-devel +License: GPL v2 or later +Group: Productivity/Scientific/Math +AutoReqProv: on +Requires: perl = %{perl_version} +Version: 1.2.23 +Release: 73 +Source: %{name}-%{version}.tar.bz2 +Source1: cgilib-0.5.tar.bz2 +Patch: %{name}-%{version}-ssize.diff +Patch1: %{name}-%{version}-python.diff +Url: http://ee-staff.ethz.ch/~oetiker/webtools/rrdtool/ +BuildRoot: %{_tmppath}/%{name}-%{version}-build +Summary: A tool for data logging and analysis +Requires: dejavu >= 2.21 + +%description +A tool to log and analyze data gathered from all kinds of data sources. +The data analysis part of RRDtool is based on the ability to quickly +generate graphical representations of the data values collected over a +definable time period. + + + +Authors: +-------- + Tobias Oetiker <oetiker@ee.ethz.ch> + +%prep +%setup -q -a1 +%patch +%patch1 + +%build +# first prepare cgilib +cd cgilib* +make CC=gcc CFLAGS="$RPM_OPT_FLAGS -fPIC -I." +mkdir -p ../lb/include +cp *.h ../lb/include +mkdir -p ../lb/lib +cp libcgi* ../lb/lib +cd .. +# build rrdtool +%{suse_update_config} +libtoolize --force +#autoreconf --force --install +aclocal --force +autoconf -f +automake -fca +CFLAGS="$RPM_OPT_FLAGS -fPIC" CXXFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-L`pwd`/lb/lib" CPPFLAGS="-I`pwd`/lb/include" \ +./configure \ + --mandir=%{_mandir} \ + --prefix=%{_prefix} \ + --libdir=%{_libdir} \ + --datadir=%{_datadir} \ + --infodir=%{_infodir} \ + --sysconfdir=%{_sysconfdir} \ + --enable-shared \ + --with-tcllib=%{_libdir} \ + --with-gnu-ld \ + --with-rrd-default-font=/usr/share/fonts/truetype/DejaVuSansMono.ttf +make %{?jobs:-j %jobs} + +%install +#eval `perl -V:installarchlib` +make \ + DESTDIR=$RPM_BUILD_ROOT \ + idocdir=%{_docdir}/%{name}/txt/ \ + ihtmldir=%{_docdir}/%{name}/html/ \ + examplesdir=%{_docdir}/%{name}/examples/ \ + libdir=%{_libdir} \ + pkglibdir=%_datadir/tcl/tclrrd%version \ + TCL_PACKAGE_DIR=%_datadir/tcl/tclrrd%version \ + TCL_PACKAGE_PATH=%_datadir/tcl \ + install +# we install this later again +rm -r $RPM_BUILD_ROOT%{_prefix}/lib/perl +# do not install fonts (use system fonts instead) +rm -rf $RPM_BUILD_ROOT%_datadir/rrdtool/fonts +# install correctly perl modules +pushd bindings/perl-piped +perl Makefile.PL +make DESTDIR=$RPM_BUILD_ROOT install_vendor +popd +pushd bindings/perl-shared +perl Makefile.PL +make DESTDIR=$RPM_BUILD_ROOT install_vendor +popd +%perl_process_packlist +#fix build (it would be better to split cgilib) +sed 's/[[:space:]]*-L\/usr\/src\/packages\/BUILD\/%{name}-%{version}\/lb\/lib[[:space:]]*/ /' $RPM_BUILD_ROOT/%{_libdir}/librrd.la > tmp +mv tmp $RPM_BUILD_ROOT/%{_libdir}/librrd.la +sed 's/[[:space:]]*-L\/usr\/src\/packages\/BUILD\/%{name}-%{version}\/lb\/lib[[:space:]]*/ /' $RPM_BUILD_ROOT/%{_libdir}/librrd_th.la > tmp +mv tmp $RPM_BUILD_ROOT/%{_libdir}/librrd_th.la +# documentation +install -m 644 CHANGES CONTRIBUTORS COPYING COPYRIGHT README TODO $RPM_BUILD_ROOT/%{_docdir}/%{name} +# Script libraries for Tcl extensions should be in a package-specific +# subdir of /usr/share/tcl +mkdir -p $RPM_BUILD_ROOT/usr/share/tcl/tclrrd%{version} +#mv $RPM_BUILD_ROOT/usr/lib/tclrrd%{version}/pkgIndex.tcl \ +# $RPM_BUILD_ROOT/usr/share/tcl/tclrrd%{version} + +%clean +rm -rf $RPM_BUILD_ROOT + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%defattr(-, root, root) +%doc %{_docdir}/rrdtool +%doc %{_mandir}/*/* +/usr/bin/* +%{_datadir}/tcl +%{_libdir}/librrd.so.* +%{_libdir}/librrd_th.so.* +%{_libdir}/tclrrd*.so +%{perl_vendorlib}/RRDp.pm +%{perl_vendorarch}/RRDs.pm +%{perl_vendorarch}/ntmake.pl +%{perl_vendorarch}/auto/* +/var/adm/perl-modules/rrdtool +%{_datadir}/%{name} + +%package devel +Summary: A tool for data logging and analysis - Development files +Group: Productivity/Scientific/Math +Requires: %name = %version + +%description devel +A tool to log and analyze data gathered from all kinds of data sources. +The data analysis part of RRDtool is based on the ability to quickly +generate graphical representations of the data values collected over a +definable time period. + + + +Authors: +-------- + Tobias Oetiker <oetiker@ee.ethz.ch> + +%files devel +%defattr(-, root, root) +/usr/include/* +%{_libdir}/librrd_th.so +%{_libdir}/librrd.a +%{_libdir}/librrd.la +%{_libdir}/librrd.so +%{_libdir}/librrd_th.a +%{_libdir}/librrd_th.la + +%package -n python-rrdtool +Summary: Python bindings for rrdtool +Group: Productivity/Scientific/Math +Requires: %name = %version +%py_requires + +%description -n python-rrdtool +A tool to log and analyze data gathered from all kinds of data sources. +The data analysis part of RRDtool is based on the ability to quickly +generate graphical representations of the data values collected over a +definable time period. + +This package contains the Python bindings + + + +Authors: +-------- + Tobias Oetiker <oetiker@ee.ethz.ch> + +%files -n python-rrdtool +%defattr(-, root, root) +%{py_sitedir}/* + +%changelog +* Mon Jan 14 2008 - dmueller@suse.de +- dejavu font was renamed back, adjust +* Wed Nov 28 2007 - dmueller@suse.de +- fix default font after dejavu font update +- add dejavu to the package requires +- build parallel +* Mon Jul 09 2007 - dmueller@suse.de +- apply python requires only to python-rrdtool subpackage +* Thu Jun 21 2007 - dmueller@suse.de