%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 - Initial build.