rrdtool-vl.spec 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. # Basic Information
  2. Name: rrdtool
  3. Version: 1.4.8
  4. Release: 1%{?_dist_release}
  5. License: GPLv2
  6. Group: Applications/System
  7. URL: http://oss.oetiker.ch/rrdtool/
  8. Source0: http://oss.oetiker.ch/%{name}/pub/%{name}-%{version}.tar.gz
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  10. Vendor: Project Vine
  11. Distribution: Vine Linux
  12. Packager: yasumichi
  13. Summary: RRDtool - Round Robin Database tool
  14. Summary(ja): RRDtool - ラウンドロビンデータベースツール
  15. # Dependency
  16. BuildRequires: glib2-devel
  17. BuildRequires: glibc-devel
  18. BuildRequires: libxml2-devel
  19. BuildRequires: lua-devel
  20. BuildRequires: pango-devel
  21. BuildRequires: tcl
  22. %description
  23. It is pretty easy to gather status information from all sorts of things,
  24. ranging from the temperature in your office to the number of octets which
  25. have passed through the FDDI interface of your router. But it is not so
  26. trivial to store this data in a efficient and systematic manner. This is
  27. where RRDtool kicks in. It lets you log and analyze the data you gather from
  28. all kinds of data-sources (DS). The data analysis part of RRDtool is based
  29. on the ability to quickly generate graphical representations of the data
  30. values collected over a definable time period.
  31. #%%description -l ja
  32. %package devel
  33. Summary: Libraries and include files of RRDtool
  34. Requires: %{name} = %{version}
  35. %description devel
  36. Libraries and include files of RRDtool
  37. %package tcl
  38. Summary: RRDTool modules for tcl
  39. Requires: %{name} = %{version}
  40. %description tcl
  41. RRDTool modules for tcl
  42. %package -n perl-rrdtool
  43. Summary: RRDTool module for perl
  44. Requires: %{name} = %{version}
  45. %description -n perl-rrdtool
  46. RRDTool module for perl
  47. %package -n python-rrdtool
  48. Summary: RRDTool module for python
  49. Requires: %{name} = %{version}
  50. BuildRequires: python-devel
  51. %description -n python-rrdtool
  52. RDTool module for python
  53. %prep
  54. %setup -q
  55. %build
  56. %configure \
  57. --disable-ruby \
  58. --enable-perl-site-install \
  59. --with-perl-options="INSTALLDIRS=vendor"
  60. perl -pi -e 's/(rrdcached_LDADD =)/$1 \$(ALL_LIBS) /' src/Makefile
  61. %{__make} %{?_smp_mflags}
  62. %install
  63. %{__rm} -rf ${RPM_BUILD_ROOT}
  64. %{__make} install DESTDIR=${RPM_BUILD_ROOT}
  65. %{__rm} -f ${RPM_BUILD_ROOT}%{_prefix}/lib/lua/*/rrd.a
  66. %{__rm} -f ${RPM_BUILD_ROOT}%{_prefix}/lib/lua/*/rrd.la
  67. %{__rm} -f ${RPM_BUILD_ROOT}%{_libdir}/librrd*.a
  68. %{__rm} -f ${RPM_BUILD_ROOT}%{_libdir}/librrd*.la
  69. %{__rm} -f ${RPM_BUILD_ROOT}%{_mandir}/man3/RRD?.3pm*
  70. %{__rm} -f ${RPM_BUILD_ROOT}%{perl_archlib}/perllocal.pod
  71. %{__rm} -f ${RPM_BUILD_ROOT}%{perl_vendorarch}/auto/RRDp/.packlist
  72. %{__rm} -f ${RPM_BUILD_ROOT}%{perl_vendorarch}/auto/RRDs/.packlist
  73. %clean
  74. %{__rm} -rf ${RPM_BUILD_ROOT}
  75. %files
  76. %defattr(-,root,root)
  77. %doc COPYING NEWS README TODO
  78. #/usr/local/lib64/site_ruby/1.8/x86_64-linux/RRD.so
  79. %{_bindir}/rrd*
  80. %{_prefix}/lib/lua/*/rrd.so.*
  81. %{_libdir}/librrd*.so.*
  82. %{_mandir}/man1/*.1*
  83. %{_mandir}/man3/librrd.3*
  84. %{_datadir}/rrdtool/examples/cgi-demo.cgi
  85. %files devel
  86. %defattr(-,root,root)
  87. %{_includedir}/rrd*.h
  88. %{_prefix}/lib/lua/*/rrd.so
  89. %{_libdir}/librrd.so
  90. %{_libdir}/librrd_th.so
  91. %{_libdir}/pkgconfig/librrd.pc
  92. %files tcl
  93. %defattr(-,root,root)
  94. %{_datadir}/rrdtool/ifOctets.tcl
  95. %{_datadir}/rrdtool/pkgIndex.tcl
  96. %{_libdir}/tclrrd*.so
  97. %files -n perl-rrdtool
  98. %defattr(-,root,root)
  99. %{perl_vendorlib}/RRDp.pm
  100. %{perl_vendorarch}/RRDs.pm
  101. %{perl_vendorarch}/auto/RRDs/RRDs.bs
  102. %{perl_vendorarch}/auto/RRDs/RRDs.so
  103. %{_datadir}/rrdtool/examples/*.pl
  104. %{_datadir}/rrdtool/examples/rrdcached/RRDCached.pm
  105. %{_datadir}/rrdtool/examples/rrdcached/rrdcached-size.pl
  106. %files -n python-rrdtool
  107. %defattr(-,root,root)
  108. %{python_sitearch}/py_rrdtool-*-py*.egg-info
  109. %{python_sitearch}/rrdtoolmodule.so
  110. %changelog
  111. * Tue Jul 1 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.4.8-1
  112. - new upstream release.
  113. * Fri Feb 17 2012 Yasumichi Akahoshi <yasumichi@vinelinux.org> 1.4.7-1
  114. - initial build for Vine Linux