1 # 2 # spec file for package SUNWrrdtool 3 # 4 # Copyright 2008 Sun Microsystems, Inc. 5 # This file and all modifications and additions to the pristine 6 # package are under the same license as the package itself. 7 # 8 %define owner stephen 9 # 10 11 %include Solaris.inc 12 13 %define OSR 8313:1.2.19 14 15 %define version 1.3.8 16 17 Name: SUNWrrdtool 18 Summary: Data analysis tool generating graphical representations 19 Version: %{version} 20 Source: http://oss.oetiker.ch/rrdtool/pub/rrdtool-%{version}.tar.gz 21 URL: http://oss.oetiker.ch/rrdtool/ 22 SUNW_Copyright: %{name}.copyright 23 SUNW_BaseDir: %{_basedir} 24 BuildRoot: %{_tmppath}/%{name}-%{version}-build 25 %include default-depend.inc 26 Requires: SUNWlxmlr 27 Requires: SUNWpango 28 Requires: SUNWgccruntime 29 BuildRequires: SUNWpango-devel 30 31 %prep 32 %setup -q -n rrdtool-%{version} 33 34 %build 35 36 CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` 37 if test "x$CPUS" = "x" -o $CPUS = 0; then 38 CPUS=1 39 fi 40 41 export LDFLAGS="%_ldflags" 42 43 # FIXME: Punted on building w/ perl, ruby and python enabled... 44 45 ./configure --prefix=%{_prefix} \ 46 --mandir=%{_mandir} \ 47 --disable-perl \ 48 --disable-python \ 49 --disable-ruby \ 50 --enable-tcl \ 51 --disable-libintl \ 52 --enable-static=no 53 54 make -j$CPUS 55 56 %install 57 rm -rf $RPM_BUILD_ROOT 58 59 make install DESTDIR=$RPM_BUILD_ROOT 60 61 rm ${RPM_BUILD_ROOT}%{_libdir}/*.la 62 63 %clean 64 rm -rf $RPM_BUILD_ROOT 65 66 %files 67 %defattr (-, root, bin) 68 %dir %attr (0755, root, bin) %{_bindir} 69 %{_bindir}/* 70 %dir %attr (0755, root, bin) %{_libdir} 71 %{_libdir}/*.so* 72 %{_libdir}/rrdtool 73 %dir %attr (0755, root, other) %{_libdir}/pkgconfig 74 %{_libdir}/pkgconfig/* 75 %dir %attr (0755, root, bin) %{_includedir} 76 %{_includedir}/* 77 %dir %attr (0755, root, sys) %{_datadir} 78 %dir %attr (0755, root, bin) %{_mandir} 79 %dir %attr (0755, root, bin) %{_mandir}/man1 80 %{_mandir}/man1/* 81 %dir %attr (0755, root, other) %{_datadir}/doc 82 %{_datadir}/doc/* 83 %dir %attr (0755, root, other) %{_datadir}/rrdtool 84 %{_datadir}/rrdtool/* 85 86 %changelog 87 * Tue Jun 02 2009 - dave.lin@sun.com 88 - fixed dependency issue(CR6845030). 89 * Tue Jan 13 2009 - dave.lin@sun.com 90 - Fixed attribute issue /usr/lib/pkgconfig. 91 * Mon Jan 12 2009 - stephen.browne@sun.com 92 - Fix owner, uprev tarball, fix build issues, enable tcl, compile with SunStudio 93 * Thu Mar 15 2008 - lin.ma@sun.com 94 - Add SUNWgccruntime dependency. 95 * Tue Mar 11 2008 - damien.carbery.com 96 - Add SUNWgnome-base-libs/-devel dependencies so that pango found. 97 * Mon Mar 3 2008 - damien.carbery.com 98 - Define version and tarball_version so that pkg version is only numeric. 99 * Wed Feb 20 2008 - takao.fujiwara@sun.com 100 - Use 1.3beta4 to support cairo/pango. 101 * Fri Feb 15 2008 - dermot.mccluskey@sun.com 102 - use %gcc_optflags 103 * Tue Feb 12 2008 - dermot.mccluskey@sun.com 104 - initial version 105 106