Changes of Revision 7
[-] | Added | rrdtool.spec |
x 1
2 +# 3 +# spec file for package rrdtool (Version 1.2.23) 4 +# 5 +# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. 6 +# This file and all modifications and additions to the pristine 7 +# package are under the same license as the package itself. 8 +# 9 +# Please submit bugfixes or comments via http://bugs.opensuse.org/ 10 +# 11 + 12 +# norootforbuild 13 + 14 +Name: rrdtool 15 +BuildRequires: freetype2-devel libart_lgpl-devel libpng-devel python-devel tcl-devel 16 +License: GPL v2 or later 17 +Group: Productivity/Scientific/Math 18 +AutoReqProv: on 19 +Requires: perl = %{perl_version} 20 +Version: 1.2.23 21 +Release: 73 22 +Source: %{name}-%{version}.tar.bz2 23 +Source1: cgilib-0.5.tar.bz2 24 +Patch: %{name}-%{version}-ssize.diff 25 +Patch1: %{name}-%{version}-python.diff 26 +Url: http://ee-staff.ethz.ch/~oetiker/webtools/rrdtool/ 27 +BuildRoot: %{_tmppath}/%{name}-%{version}-build 28 +Summary: A tool for data logging and analysis 29 +Requires: dejavu >= 2.21 30 + 31 +%description 32 +A tool to log and analyze data gathered from all kinds of data sources. 33 +The data analysis part of RRDtool is based on the ability to quickly 34 +generate graphical representations of the data values collected over a 35 +definable time period. 36 + 37 + 38 + 39 +Authors: 40 +-------- 41 + Tobias Oetiker <oetiker@ee.ethz.ch> 42 + 43 +%prep 44 +%setup -q -a1 45 +%patch 46 +%patch1 47 + 48 +%build 49 +# first prepare cgilib 50 +cd cgilib* 51 +make CC=gcc CFLAGS="$RPM_OPT_FLAGS -fPIC -I." 52 +mkdir -p ../lb/include 53 +cp *.h ../lb/include 54 +mkdir -p ../lb/lib 55 +cp libcgi* ../lb/lib 56 +cd .. 57 +# build rrdtool 58 +%{suse_update_config} 59 +libtoolize --force 60 +#autoreconf --force --install 61 +aclocal --force 62 +autoconf -f 63 +automake -fca 64 +CFLAGS="$RPM_OPT_FLAGS -fPIC" CXXFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-L`pwd`/lb/lib" CPPFLAGS="-I`pwd`/lb/include" \ 65 +./configure \ 66 + --mandir=%{_mandir} \ 67 + --prefix=%{_prefix} \ 68 + --libdir=%{_libdir} \ 69 + --datadir=%{_datadir} \ 70 + --infodir=%{_infodir} \ 71 + --sysconfdir=%{_sysconfdir} \ 72 + --enable-shared \ 73 + --with-tcllib=%{_libdir} \ 74 + --with-gnu-ld \ 75 + --with-rrd-default-font=/usr/share/fonts/truetype/DejaVuSansMono.ttf 76 +make %{?jobs:-j %jobs} 77 + 78 +%install 79 +#eval `perl -V:installarchlib` 80 +make \ 81 + DESTDIR=$RPM_BUILD_ROOT \ 82 + idocdir=%{_docdir}/%{name}/txt/ \ 83 + ihtmldir=%{_docdir}/%{name}/html/ \ 84 + examplesdir=%{_docdir}/%{name}/examples/ \ 85 + libdir=%{_libdir} \ 86 + pkglibdir=%_datadir/tcl/tclrrd%version \ 87 + TCL_PACKAGE_DIR=%_datadir/tcl/tclrrd%version \ 88 + TCL_PACKAGE_PATH=%_datadir/tcl \ 89 + install 90 +# we install this later again 91 +rm -r $RPM_BUILD_ROOT%{_prefix}/lib/perl 92 +# do not install fonts (use system fonts instead) 93 +rm -rf $RPM_BUILD_ROOT%_datadir/rrdtool/fonts 94 +# install correctly perl modules 95 +pushd bindings/perl-piped 96 +perl Makefile.PL 97 +make DESTDIR=$RPM_BUILD_ROOT install_vendor 98 +popd 99 +pushd bindings/perl-shared 100 +perl Makefile.PL 101 +make DESTDIR=$RPM_BUILD_ROOT install_vendor 102 +popd 103 +%perl_process_packlist 104 +#fix build (it would be better to split cgilib) 105 +sed 's/[[:space:]]*-L\/usr\/src\/packages\/BUILD\/%{name}-%{version}\/lb\/lib[[:space:]]*/ /' $RPM_BUILD_ROOT/%{_libdir}/librrd.la > tmp 106 +mv tmp $RPM_BUILD_ROOT/%{_libdir}/librrd.la 107 +sed 's/[[:space:]]*-L\/usr\/src\/packages\/BUILD\/%{name}-%{version}\/lb\/lib[[:space:]]*/ /' $RPM_BUILD_ROOT/%{_libdir}/librrd_th.la > tmp 108 +mv tmp $RPM_BUILD_ROOT/%{_libdir}/librrd_th.la 109 +# documentation 110 +install -m 644 CHANGES CONTRIBUTORS COPYING COPYRIGHT README TODO $RPM_BUILD_ROOT/%{_docdir}/%{name} 111 +# Script libraries for Tcl extensions should be in a package-specific 112 +# subdir of /usr/share/tcl 113 +mkdir -p $RPM_BUILD_ROOT/usr/share/tcl/tclrrd%{version} 114 +#mv $RPM_BUILD_ROOT/usr/lib/tclrrd%{version}/pkgIndex.tcl \ 115 +# $RPM_BUILD_ROOT/usr/share/tcl/tclrrd%{version} 116 + 117 +%clean 118 +rm -rf $RPM_BUILD_ROOT 119 + 120 +%post -p /sbin/ldconfig 121 + 122 +%postun -p /sbin/ldconfig 123 + 124 +%files 125 +%defattr(-, root, root) 126 +%doc %{_docdir}/rrdtool 127 +%doc %{_mandir}/*/* 128 +/usr/bin/* 129 +%{_datadir}/tcl 130 +%{_libdir}/librrd.so.* 131 +%{_libdir}/librrd_th.so.* 132 +%{_libdir}/tclrrd*.so 133 +%{perl_vendorlib}/RRDp.pm 134 +%{perl_vendorarch}/RRDs.pm 135 +%{perl_vendorarch}/ntmake.pl 136 +%{perl_vendorarch}/auto/* 137 +/var/adm/perl-modules/rrdtool 138 +%{_datadir}/%{name} 139 + 140 +%package devel 141 +Summary: A tool for data logging and analysis - Development files 142 +Group: Productivity/Scientific/Math 143 +Requires: %name = %version 144 + 145 +%description devel 146 +A tool to log and analyze data gathered from all kinds of data sources. 147 +The data analysis part of RRDtool is based on the ability to quickly 148 +generate graphical representations of the data values collected over a 149 +definable time period. 150 + 151 + 152 + 153 +Authors: 154 +-------- 155 + Tobias Oetiker <oetiker@ee.ethz.ch> 156 + 157 +%files devel 158 +%defattr(-, root, root) 159 +/usr/include/* 160 +%{_libdir}/librrd_th.so 161 +%{_libdir}/librrd.a 162 +%{_libdir}/librrd.la 163 +%{_libdir}/librrd.so 164 +%{_libdir}/librrd_th.a 165 +%{_libdir}/librrd_th.la 166 + 167 +%package -n python-rrdtool 168 +Summary: Python bindings for rrdtool 169 +Group: Productivity/Scientific/Math 170 +Requires: %name = %version 171 +%py_requires 172 + 173 +%description -n python-rrdtool 174 +A tool to log and analyze data gathered from all kinds of data sources. 175 +The data analysis part of RRDtool is based on the ability to quickly 176 +generate graphical representations of the data values collected over a 177 +definable time period. 178 + 179 +This package contains the Python bindings 180 + 181 + 182 + 183 +Authors: 184 +-------- 185 + Tobias Oetiker <oetiker@ee.ethz.ch> 186 + 187 +%files -n python-rrdtool 188 +%defattr(-, root, root) 189 +%{py_sitedir}/* 190 + 191 +%changelog 192 +* Mon Jan 14 2008 - dmueller@suse.de 193 +- dejavu font was renamed back, adjust 194 +* Wed Nov 28 2007 - dmueller@suse.de 195 +- fix default font after dejavu font update 196 +- add dejavu to the package requires 197 +- build parallel 198 +* Mon Jul 09 2007 - dmueller@suse.de 199 +- apply python requires only to python-rrdtool subpackage 200 +* Thu Jun 21 2007 - dmueller@suse.de 201 |