X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=rrdtool.spec;h=5b9ab93bce609df66c87fbed30f9c1bebb32af1b;hb=59b2aeb768d80978ebee2f3cdc5cb1a5411c2a9b;hp=e1df5baaf5f93779c2982d561c0f4f21be78ff91;hpb=45b476d7b011e39e4c8486ded2c8b2edd52f4e6b;p=rrdtool.git diff --git a/rrdtool.spec b/rrdtool.spec index e1df5ba..5b9ab93 100644 --- a/rrdtool.spec +++ b/rrdtool.spec @@ -1,19 +1,19 @@ -%define cvsdate 2004-04-30 +%define cvsdate cvs-snap %define cvsver %(echo %{cvsdate} | tr -d -) -%define sover 1.0.2 +%define sover 1.0.0 Summary: Round Robin Database Tools Name: rrdtool Version: 1.1.0 -Release: 0.1.%{cvsver} +Release: %{cvsver} License: GPL -Group: Applications/Networking +Group: Applications/Databases Source: http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/pub/beta/rrdtool-cvs-snap.tar.gz URL: http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/ Buildroot: /tmp/%{name}-root BuildRequires: perl -BuildRequires: cgilib +BuildRequires: cgilib-devel BuildRequires: freetype-devel libart_lgpl-devel libpng-devel zlib-devel %description @@ -29,15 +29,15 @@ values collected over a definable time period. %package devel Summary: RRD Tool development libraries and header files Group: Development/Libraries -Requires: rrdtool = %{version}-%{release} +Requires: %{name} = %{version} %description devel The RRD Tools development library. %package perl Summary: RRD Tool Perl interface -Group: Applications/Networking -Requires: rrdtool = %{version}-%{release} +Group: Applications/Databases +Requires: %{name} = %{version} %description perl The RRD Tools Perl modules. @@ -45,17 +45,15 @@ The RRD Tools Perl modules. %prep %setup -q -n rrdtool-%{cvsdate} -mkdir config -cd config -ln -s ../mkinstalldirs . -cd .. - %define deffont %{_datadir}/fonts/VeraMono.ttf perl -pi -e 's!^(#define\s+RRD_DEFAULT_FONT\s+).*!$1"%{deffont}"!' src/rrd_graph.c %build CPPFLAGS="-I/usr/include/libart-2.0 -I/usr/include/freetype2" export CPPFLAGS +aclocal > /tmp/aclocal.out 2>&1 +automake +autoconf %configure make @@ -70,6 +68,7 @@ install -m 644 src/VeraMono.ttf %{buildroot}%{deffont} # Fix up the documentation [ -d docs ] && mv docs docs.src mv %{buildroot}/usr/doc docs +rm -f docs/*.pod [ -d examples ] && mv examples examples.src mv %{buildroot}/usr/examples examples [ -d html ] && mv html html.src @@ -82,7 +81,7 @@ mv %{buildroot}%{_libdir}/perl/* %{buildroot}%{perlsite} rmdir %{buildroot}%{_libdir}/perl # Fix up the man pages -if [ "%{_mandir}" != "/usr/man" ]; then +if [ "%{_mandir}" != "/usr/share/man" ]; then mkdir -p %{buildroot}%{_mandir} mv %{buildroot}/usr/man/* %{buildroot}%{_mandir}/ fi