Hi!
I have got a SPEC file for all the dependencies for rrdtool 1.3, which I
have attached.
This will create the dependencies needed for building rrdtool 1.3 on a
RH/Centos/UL4 in /opt/rrdtool-dependencies/ (in my case a 30MB package)
Then it should be relatively easy to add the line
PATH=/opt/rrdtool-dependencies/bin:$PATH as a first in the %build
section to the specs file that comes with the rrdtool distribution and
then build it. Obviously you should also add a dependency on
rrdtool-deps, so that the dependencies also get installed...
Attached the SPEC file for the dependency package - fetch the sources as
written in the SPEC file...
So far I have not built the rpm package itself, as I am still migrating
the libdbi patches to rrdtool and have still some "Open" points
(application modifications) before I can start talking about deploying...
Hope this helps...
Martin
Karl Fischer wrote:
Hi there,
I've asked this question months ago, but could get any really useful answer
yet, so I retry.
Is there any good source for rrdtool rpms, especially for CentOS 4 (RH EL 4) ?
Dag's repository is far from beeing up2date and also on rpmforge I've had no
luck.
On rpmforge, rrdtool-1.2.28-1.el4.rf.i386.rpm is listed, but the links are
broken,
there's nothing behind it.
I'm especially looking for a version of rrdtools 1.2.28+ or 1.3.x where the
xport function
has been fixed already, running on CentOS 4, i386 & x86_64 ...
Many thanks for any help. I'd really love not having to set up a CentOS 4 devel
environment
just to be able to compile it myself.
Rgds
- Karl
_______________________________________________
rrd-users mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
%define BASEDIR /opt/rrdtool-dependencies
%define PKG_VERSION 0.23
%define GLIB_VERSION 2.15.4
%define PIXMAN_VERSION 0.10.0
%define CAIRO_VERSION 1.6.4
%define PANGO_VERSION 1.21.1
%define FONTCONF_VERSION 2.4.2
Summary: dependencies for rrdtool
Name: rrdtool-deps
Version: 1
Release: 1
License: mixed
Group: System/Libraries
Source0:
http://pkgconfig.freedesktop.org/releases/pkg-config-%{PKG_VERSION}.tar.gz
Source1: http://oss.oetiker.ch/rrdtool/pub/libs/glib-%{GLIB_VERSION}.tar.gz
Source2: http://oss.oetiker.ch/rrdtool/pub/libs/pixman-%{PIXMAN_VERSION}.tar.gz
Source3:
http://oss.oetiker.ch/rrdtool/pub/libs/fontconfig-%{FONTCONF_VERSION}.tar.gz
Source4: http://oss.oetiker.ch/rrdtool/pub/libs/cairo-%{CAIRO_VERSION}.tar.gz
Source5: http://oss.oetiker.ch/rrdtool/pub/libs/pango-%{PANGO_VERSION}.tar.bz2
BuildRequires: libpng-devel >= 1.2.7
Requires: libpng >= 1.2.7
BuildRequires: libxml2 >= 2.6.16
Requires: libxml2 >= 2.6.16
BuildRequires: freetype-devel >= 2.1.9
Requires: freetype >= 2.1.9
Requires: zlib
AutoReq: no
AutoProv: no
Requires: /usr/bin/perl
%description
%prep
%setup -cn %{name} -a0
%setup -Dn %{name} -a1
%setup -Dn %{name} -a2
%setup -Dn %{name} -a3
%setup -Dn %{name} -a4
%setup -Dn %{name} -a5
%build
BASEDIR=`pwd`
# the installdir
INSTALLDIR=%{BASEDIR}
rm -rf $INSTALLDIR/*
# something fixed
export PATH=$INSTALLDIR/bin:$PATH
export LDFLAGS="-Wl,--rpath -Wl,${INSTALL_DIR}/lib"
# build/install pkg_config
cd $BASEDIR/pkg-config-%{PKG_VERSION}
./configure --prefix=$INSTALLDIR
'--with-pc-path=${libdir}/pkgconfig:${datadir}/pkgconfig:/usr/lib/pkgconfig'
make
make install
# build/install glib
cd $BASEDIR/glib-%{GLIB_VERSION}
./configure --prefix=$INSTALLDIR
make
make install
# build/install pixman
cd $BASEDIR/pixman-%{PIXMAN_VERSION}
./configure --prefix=$INSTALLDIR
make
make install
# build/install fontconfig
cd $BASEDIR/fontconfig-%{FONTCONF_VERSION}
./configure --prefix=$INSTALLDIR
make
make install
# build/install cairo
cd $BASEDIR/cairo-%{CAIRO_VERSION}
./configure --prefix=$INSTALLDIR \
--enable-xlib=no \
--enable-xlib-render=no \
--enable-win32=no
make
make install
# build/install pango
cd $BASEDIR/pango-%{PANGO_VERSION}
./configure --prefix=$INSTALLDIR
make
make install
%install
rm -rf %{BASEDIR}/var/cache/fontcache
mkdir %{BASEDIR}/var/cache/fontcache
%clean
%post
if [ -x %{BASEDIR}/bin/fc-cache ] ; then
HOME=/root %{BASEDIR}/bin/fc-cache -f 2>/dev/null
fi
%files
%defattr(-,root,root,-)
%{BASEDIR}/bin
%{BASEDIR}/etc
%{BASEDIR}/include
%{BASEDIR}/lib
%{BASEDIR}/share
%dir %{BASEDIR}/var/cache/fontcache
%changelog
* Sat Nov 1 2008 Martin Sperl <[EMAIL PROTECTED]>
- Initial build._______________________________________________
rrd-users mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users