[packages/rrdtool] - updated to 1.5.4 - added missing patch (missing file taken from git) - separated -cached subpackag

qboosh qboosh at pld-linux.org
Sun Sep 20 17:57:53 CEST 2015


commit ca581a4b7554fd673d173507d6be3489da86d911
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Sep 20 17:56:46 2015 +0200

    - updated to 1.5.4
    - added missing patch (missing file taken from git)
    - separated -cached subpackage

 rrdtool-missing.patch | 71 ++++++++++++++++++++++++++++++++++++++++++++++
 rrdtool.spec          | 78 ++++++++++++++++++++++++++++++++++++++++-----------
 2 files changed, 132 insertions(+), 17 deletions(-)
---
diff --git a/rrdtool.spec b/rrdtool.spec
index 3651610..8432ccf 100644
--- a/rrdtool.spec
+++ b/rrdtool.spec
@@ -1,14 +1,15 @@
-## TODO:
-# - separate package with rrdcached (init script, systemd file, etc)
+# TODO:
+# - SysV init script for rrdcached, post/postun/etc.
 #
 # Conditional build:
-%bcond_without	lua	# LUA binding
-%bcond_without	perl	# Perl binding
-%bcond_without	python	# Python binding
-%bcond_without	ruby	# Ruby binding
-%bcond_without	tcl	# Tcl binding
-%bcond_without	rrd_graph	# disable all rrd_graph functions
-%bcond_without	rrdcgi	# disable building of rrdcgi
+%bcond_without	lua		# LUA binding
+%bcond_without	perl		# Perl binding
+%bcond_without	python		# Python binding
+%bcond_without	ruby		# Ruby binding
+%bcond_without	tcl		# Tcl binding
+%bcond_without	ceph		# Ceph (RADOS) storage support
+%bcond_without	rrd_graph	# all rrd_graph functions (depend on cairo+pango)
+%bcond_without	rrdcgi		# building of rrdcgi (depends on rrd_graph)
 
 %if %{without rrd_graph}
 %undefine	with_rrdcgi
@@ -22,20 +23,21 @@ Summary(pt_BR.UTF-8):	Round Robin Database, uma ferramenta para construção de
 Summary(ru.UTF-8):	RRDtool - база данных с "циклическим обновлением"
 Summary(uk.UTF-8):	RRDtool - це система зберігання та показу серійних даних
 Name:		rrdtool
-Version:	1.4.9
+Version:	1.5.4
 Release:	1
 License:	GPL v2+ + FLOSS exception
 Group:		Applications/Databases
 Source0:	http://oss.oetiker.ch/rrdtool/pub/%{name}-%{version}.tar.gz
-# Source0-md5:	1cea5a9efd6a48ac4035b0f9c7e336cf
+# Source0-md5:	4daea1e628e1c70d91800d6a06427dc1
 Patch0:		%{name}-tcl-path.patch
+Patch1:		%{name}-missing.patch
 URL:		http://oss.oetiker.ch/rrdtool/
 BuildRequires:	autoconf >= 2.60
 BuildRequires:	automake
+%{?with_ceph:BuildRequires:	ceph-devel}
 BuildRequires:	gettext-tools >= 0.18
 BuildRequires:	glib2-devel >= 1:2.28.7
 BuildRequires:	groff
-BuildRequires:	intltool
 BuildRequires:	libdbi-devel
 BuildRequires:	libtool
 BuildRequires:	libwrap-devel
@@ -45,6 +47,7 @@ BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.272
 %if %{with rrd_graph}
 BuildRequires:	cairo-devel >= 1.10.2
+BuildRequires:	libpng-devel
 BuildRequires:	pango-devel >= 1:1.28.7
 %endif
 %if %{with lua}
@@ -122,6 +125,18 @@ потрібну щільність вибірки в часі. RRD можна 
 прості wrapper-скрипти, так і через фронтенди, що опитують мережеві
 пристрої та надають дружній інтерфейс користувача.
 
+%package cached
+Summary:	Data caching daemon for RRDtool
+Summary(pl.UTF-8):	Demon pamięci podręcznej danych dla RRDtoola
+Group:		Daemons
+Requires:	%{name} = %{version}-%{release}
+
+%description cached
+Data caching daemon for RRDtool.
+
+%description cached -l pl.UTF-8
+Demon pamięci podręcznej danych dla RRDtoola.
+
 %package devel
 Summary:	RRDtool development
 Summary(pl.UTF-8):	Narzędzia programistyczne pakietu RRDtool
@@ -287,6 +302,7 @@ Rozszerzenie Tcl-a pozwalające na dostęp do biblioteki Tcl.
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 sed -i -e 's#\$TCL_PACKAGE_PATH#%{_prefix}/lib#g' configure.ac
 sed -i -e 's#/lib/lua/#/%{_lib}/lua/#g' configure.ac
@@ -309,13 +325,14 @@ mv docs/html/RRD*.html perl-docs/html
 %configure \
 	LUA=/usr/bin/lua5.1 \
 	--disable-silent-rules \
+	%{!?with_ceph:--disable-librados} \
 	%{!?with_rrd_graph:--disable-rrd_graph} \
 	%{!?with_rrdcgi:--disable-rrdcgi} \
 	%{!?with_lua:--disable-lua} \
+	%{!?with_perl:--disable-perl} \
 	%{!?with_python:--disable-python} \
 	%{!?with_ruby:--disable-ruby} \
 	%{!?with_tcl:--disable-tcl} \
-	%{!?with_perl:--disable-perl} \
 	--with-perl-options="INSTALLDIRS=vendor"
 
 # empty RUBY_MAKE_OPTIONS as workaround for some make weirdness
@@ -354,12 +371,11 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc CHANGES CONTRIBUTORS NEWS README THREADS TODO
+%doc CHANGES CONTRIBUTORS NEWS THREADS TODO
 %attr(755,root,root) %{_libdir}/librrd.so.*.*.*
 %attr(755,root,root) %ghost %{_libdir}/librrd.so.4
 %attr(755,root,root) %{_libdir}/librrd_th.so.*.*.*
 %attr(755,root,root) %ghost %{_libdir}/librrd_th.so.4
-%attr(755,root,root) %{_bindir}/rrdcached
 %{?with_rrdcgi:%attr(755,root,root) %{_bindir}/rrdcgi}
 %attr(755,root,root) %{_bindir}/rrdcreate
 %attr(755,root,root) %{_bindir}/rrdinfo
@@ -368,7 +384,34 @@ rm -rf $RPM_BUILD_ROOT
 %{_mandir}/man1/bin_dec_hex.1*
 %{_mandir}/man1/cdeftutorial.1*
 %{_mandir}/man1/rpntutorial.1*
-%{_mandir}/man1/rrd*.1*
+%{_mandir}/man1/rrd-beginners.1*
+%{_mandir}/man1/rrdbuild.1*
+%{?with_rrdcgi:%{_mandir}/man1/rrdcgi.1*}
+%{_mandir}/man1/rrdcreate.1*
+%{_mandir}/man1/rrddump.1*
+%{_mandir}/man1/rrdfetch.1*
+%{_mandir}/man1/rrdfirst.1*
+%{_mandir}/man1/rrdgraph*.1*
+%{_mandir}/man1/rrdinfo.1*
+%{_mandir}/man1/rrdlast.1*
+%{_mandir}/man1/rrdlastupdate.1*
+%{?with_ceph:%{_mandir}/man1/rrdrados.1*}
+%{_mandir}/man1/rrdresize.1*
+%{_mandir}/man1/rrdrestore.1*
+%{_mandir}/man1/rrdthreads.1*
+%{_mandir}/man1/rrdtool.1*
+%{_mandir}/man1/rrdtune.1*
+%{_mandir}/man1/rrdtutorial.1*
+%{_mandir}/man1/rrdupdate.1*
+%{_mandir}/man1/rrdxport.1*
+
+%files cached
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/rrdcached
+%{_mandir}/man1/rrdcached.1*
+%{_mandir}/man1/rrdflushcached.1*
+%{systemdunitdir}/rrdcached.service
+%{systemdunitdir}/rrdcached.socket
 
 %files devel
 %defattr(644,root,root,755)
@@ -393,6 +436,7 @@ rm -rf $RPM_BUILD_ROOT
 %files -n lua-rrdtool
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/lua/5.1/rrd.so*
+%{_mandir}/man1/rrdlua.1*
 %endif
 
 %if %{with perl}
@@ -410,7 +454,7 @@ rm -rf $RPM_BUILD_ROOT
 %if %{with python}
 %files -n python-rrdtool
 %defattr(644,root,root,755)
-%attr(755,root,root) %{py_sitedir}/rrdtoolmodule.so
+%attr(755,root,root) %{py_sitedir}/rrdtool.so
 %if "%{py_ver}" > "2.4"
 %{py_sitedir}/py_rrdtool-*.egg-info
 %endif
diff --git a/rrdtool-missing.patch b/rrdtool-missing.patch
new file mode 100644
index 0000000..af066f2
--- /dev/null
+++ b/rrdtool-missing.patch
@@ -0,0 +1,71 @@
+--- rrdtool-1.5.4/doc/rrdrados.pod.orig	1970-01-01 01:00:00.000000000 +0100
++++ rrdtool-1.5.4/doc/rrdrados.pod	2015-09-20 11:15:15.308190828 +0200
+@@ -0,0 +1,68 @@
++=head1 NAME
++
++rrdrados - Creating, updating and retrieving RRD files from Ceph
++
++=head1 SYNOPSIS
++
++E<lt>rrdfileE<gt> = B<ceph//E<lt>nameE<gt>>
++
++
++=head1 DESCRIPTION
++
++This module adds support for creating, updating and retrieving RRD files
++directly from a Ceph cluster using librados.
++
++It adds a ceph// prefix to RRD file name which is used to instruct rrdtool to
++operate on a file that is stored in Ceph.
++
++Currently the module expects to find the Ceph configuration file in the default
++location at /etc/ceph/ceph.conf. By default it uses Ceph client ID "admin" and a
++Ceph pool named "rrd".
++
++
++=head1 ENVIRONMENT VARIABLES
++
++=over 4
++
++=item B<CEPH_ID>
++
++Sets the Ceph Client ID to use when connecting. By default the client ID "admin"
++is used.
++
++=item B<CEPH_POOL>
++
++Sets the name of the Ceph Pool to connect to. By default, the pool "rrd" is
++used.
++
++=back
++
++
++=head1 EXAMPLES
++
++B<Creating an RRD file on Ceph>
++
++ rrdtool create ceph//temperature.rrd --step 300 \
++   DS:temp:GAUGE:600:-273:5000 \
++   RRA:AVERAGE:0.5:1:1200 \
++   RRA:MIN:0.5:12:2400 \
++   RRA:MAX:0.5:12:2400 \
++   RRA:AVERAGE:0.5:12:2400
++
++
++B<Importing an existing RRD into Ceph>
++
++ rrdtool dump existing.rrd | rrdtool restore - ceph//new.rrd
++
++Or you could also copy the RRD file directly into Ceph using the rados command
++line utility.
++
++
++B<Retrieving RRD data from Ceph>
++
++ rrdtool fetch ceph//file.rrd AVERAGE
++
++
++=head1 AUTHOR
++
++Simon Boulet E<lt>simon at nostalgeek.comE<gt>
++
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rrdtool.git/commitdiff/ca581a4b7554fd673d173507d6be3489da86d911



More information about the pld-cvs-commit mailing list