2007-01-04 02:07:28 +01:00
|
|
|
#
|
2011-05-12 11:01:13 +02:00
|
|
|
# spec file for package rrdtool
|
2007-01-04 02:07:28 +01:00
|
|
|
#
|
2022-01-11 22:16:33 +01:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2007-01-04 02:07:28 +01:00
|
|
|
#
|
2008-09-13 12:09:05 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-09-23 09:23:32 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-04 02:07:28 +01:00
|
|
|
#
|
|
|
|
|
2012-03-06 09:38:38 +01:00
|
|
|
|
2019-09-23 09:23:32 +02:00
|
|
|
%define python python
|
|
|
|
%if 0%{?suse_version} >= 1500
|
|
|
|
%define python python3
|
|
|
|
%endif
|
2017-11-23 16:03:07 +01:00
|
|
|
#Compat macro for new _fillupdir macro introduced in Nov 2017
|
|
|
|
%if ! %{defined _fillupdir}
|
2019-09-23 09:23:32 +02:00
|
|
|
%define _fillupdir %{_localstatedir}/adm/fillup-templates
|
2017-11-23 16:03:07 +01:00
|
|
|
%endif
|
2015-11-19 10:14:21 +01:00
|
|
|
%bcond_without lua
|
|
|
|
%bcond_without python
|
|
|
|
%bcond_without ruby
|
|
|
|
%bcond_without tcl
|
|
|
|
%bcond_without libdbi
|
|
|
|
%bcond_without libwrap
|
|
|
|
%bcond_with rados
|
2007-01-04 02:07:28 +01:00
|
|
|
Name: rrdtool
|
2022-03-29 19:45:17 +02:00
|
|
|
Version: 1.8.0
|
2015-11-19 10:14:21 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Round Robin Database Tool to store and display time-series data
|
2019-02-13 13:56:30 +01:00
|
|
|
License: GPL-2.0-or-later AND LGPL-2.0-or-later
|
2015-11-19 10:14:21 +01:00
|
|
|
Group: Productivity/Scientific/Math
|
2019-09-23 09:23:32 +02:00
|
|
|
URL: https://oss.oetiker.ch/rrdtool/
|
2022-03-29 19:45:17 +02:00
|
|
|
Source0: https://github.com/oetiker/%{name}-1.x/releases/download/v%{version}/%{name}-%{version}.tar.gz
|
2015-11-19 10:14:21 +01:00
|
|
|
Source2: sysconfig.rrdcached
|
|
|
|
Source4: rrdcached-systemd-pre
|
|
|
|
Source5: rrdcached.service
|
|
|
|
Source99: %{name}.changes
|
2022-04-13 15:42:45 +02:00
|
|
|
# PATCH-FIX-UPSTREAM -- Fix BUILD_DATE in rrdtool help output (fix segfault)
|
|
|
|
Patch1: https://github.com/oetiker/rrdtool-1.x/commit/e59f703bbcc0af949ee365206426b6394c340c6f.patch
|
2015-11-19 10:14:21 +01:00
|
|
|
# PATCH-FIX-UPSTREAM -- Prevent possible segfault
|
|
|
|
Patch3: rrdtool-tclsegfault.patch
|
|
|
|
# PATCH-FIX-UPSTREAM -- bnc#793636
|
|
|
|
Patch12: rrdtool-zero_vs_nothing.patch
|
2017-07-05 07:24:33 +02:00
|
|
|
# Needed for tests
|
|
|
|
BuildRequires: bc
|
2015-11-19 10:14:21 +01:00
|
|
|
BuildRequires: cairo-devel >= 1.2
|
2012-01-30 19:28:30 +01:00
|
|
|
BuildRequires: freetype2-devel
|
2015-11-19 10:14:21 +01:00
|
|
|
BuildRequires: gcc-c++
|
2013-10-04 14:07:36 +02:00
|
|
|
BuildRequires: gettext-tools
|
2012-01-30 19:28:30 +01:00
|
|
|
BuildRequires: glib2-devel
|
2012-10-26 17:57:50 +02:00
|
|
|
BuildRequires: groff
|
2015-11-19 10:14:21 +01:00
|
|
|
BuildRequires: intltool >= 0.35.0
|
2012-01-30 19:28:30 +01:00
|
|
|
BuildRequires: libpng-devel
|
2013-10-04 14:07:36 +02:00
|
|
|
BuildRequires: libtool
|
2012-01-30 19:28:30 +01:00
|
|
|
BuildRequires: libxml2-devel
|
2015-11-19 10:14:21 +01:00
|
|
|
BuildRequires: openssl-devel
|
|
|
|
BuildRequires: pango-devel >= 1.14
|
2022-01-11 22:16:33 +01:00
|
|
|
BuildRequires: python-rpm-macros
|
2015-08-03 13:34:23 +02:00
|
|
|
BuildRequires: systemd-rpm-macros
|
2015-11-19 10:14:21 +01:00
|
|
|
BuildRequires: zlib-devel
|
2017-07-05 07:24:33 +02:00
|
|
|
Requires: dejavu
|
2022-01-11 22:16:33 +01:00
|
|
|
Patch14: harden_rrdcached.service.patch
|
2017-07-05 07:24:33 +02:00
|
|
|
%if %{with python}
|
2018-02-08 09:43:54 +01:00
|
|
|
BuildRequires: %{python}-devel
|
|
|
|
BuildRequires: %{python}-setuptools
|
2017-07-05 07:24:33 +02:00
|
|
|
%endif
|
|
|
|
%if %{with lua}
|
|
|
|
BuildRequires: lua-devel
|
|
|
|
%endif
|
|
|
|
%if %{with ruby}
|
|
|
|
BuildRequires: ruby-devel
|
|
|
|
%endif
|
|
|
|
%if %{with tcl}
|
|
|
|
BuildRequires: tcl-devel >= 8.0
|
|
|
|
%endif
|
2015-11-19 10:14:21 +01:00
|
|
|
%if %{with libdbi}
|
|
|
|
BuildRequires: libdbi-devel
|
|
|
|
%endif
|
|
|
|
%if %{with libwrap}
|
2013-10-04 14:07:36 +02:00
|
|
|
BuildRequires: tcpd-devel
|
2015-11-19 10:14:21 +01:00
|
|
|
%endif
|
|
|
|
%if %{with rados}
|
|
|
|
BuildRequires: librados2-devel
|
|
|
|
%endif
|
|
|
|
|
2007-01-04 02:07:28 +01:00
|
|
|
%description
|
2017-01-01 18:27:50 +01:00
|
|
|
RRD stands for Round Robin Database. RRD is a system to store and
|
2015-11-19 10:14:21 +01:00
|
|
|
display time-series data (i.e. network bandwidth, machine-room temperature,
|
2017-01-01 18:27:50 +01:00
|
|
|
server load average). It stores the data in a compact way that will not
|
2015-11-19 10:14:21 +01:00
|
|
|
expand over time, and it presents useful graphs by processing the data to
|
|
|
|
enforce a certain data density. It can be used either via simple wrapper
|
|
|
|
scripts (from shell or Perl) or via frontends that poll network devices and
|
|
|
|
put a friendly user interface on it.
|
|
|
|
|
2017-01-01 18:27:50 +01:00
|
|
|
%package -n librrd8
|
|
|
|
Summary: Round Robin Database tool library
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n librrd8
|
|
|
|
RRD stands for Round Robin Database. RRD is a system to store and
|
|
|
|
display time-series data.
|
|
|
|
|
2013-10-03 16:55:51 +02:00
|
|
|
%package devel
|
2017-01-01 18:27:50 +01:00
|
|
|
Summary: RRDtool header files
|
2015-08-03 13:34:23 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2017-01-01 18:27:50 +01:00
|
|
|
Requires: librrd8 = %{version}-%{release}
|
2013-10-03 16:55:51 +02:00
|
|
|
|
|
|
|
%description devel
|
2017-01-01 18:27:50 +01:00
|
|
|
RRD stands for Round Robin Database. RRD is a system to store and
|
2015-11-19 10:14:21 +01:00
|
|
|
display time-series data (i.e. network bandwidth, machine-room temperature,
|
2017-01-01 18:27:50 +01:00
|
|
|
server load average). This package allow you to build programs making
|
|
|
|
use of the library.
|
2015-11-19 10:14:21 +01:00
|
|
|
|
|
|
|
%package doc
|
2017-01-01 18:27:50 +01:00
|
|
|
Summary: Documentation for rrdtool
|
2017-07-05 07:24:33 +02:00
|
|
|
Group: Documentation/Howto
|
2015-11-19 10:14:21 +01:00
|
|
|
|
|
|
|
%description doc
|
|
|
|
RRD is the Acronym for Round Robin Database. RRD is a system to store and
|
|
|
|
display time-series data (i.e. network bandwidth, machine-room temperature,
|
|
|
|
server load average). This package contains documentation on using RRD.
|
2013-10-03 16:55:51 +02:00
|
|
|
|
2015-11-19 10:14:21 +01:00
|
|
|
%package -n perl-%{name}
|
|
|
|
Summary: Perl bindings for RRDtool
|
|
|
|
Group: Development/Languages/Perl
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
Requires: perl = %{perl_version}
|
|
|
|
|
|
|
|
%description -n perl-%{name}
|
|
|
|
RRD is the Acronym for Round Robin Database. RRD is a system to store and
|
|
|
|
display time-series data (i.e. network bandwidth, machine-room temperature,
|
|
|
|
server load average). This package contains documentation on using RRD.
|
2013-10-03 16:55:51 +02:00
|
|
|
|
2015-11-19 10:14:21 +01:00
|
|
|
This package contains the Perl bindings.
|
2013-10-03 16:55:51 +02:00
|
|
|
|
2015-11-19 10:14:21 +01:00
|
|
|
%if %{with lua}
|
|
|
|
%package -n lua-%{name}
|
|
|
|
Summary: Lua bindings for RRDtool
|
2015-08-03 13:34:23 +02:00
|
|
|
Group: Development/Languages/Other
|
2015-11-19 10:14:21 +01:00
|
|
|
Requires: %{name} = %{version}-%{release}
|
2013-10-03 16:55:51 +02:00
|
|
|
|
2015-11-19 10:14:21 +01:00
|
|
|
%description -n lua-%{name}
|
|
|
|
RRD is the Acronym for Round Robin Database. RRD is a system to store and
|
|
|
|
display time-series data (i.e. network bandwidth, machine-room temperature,
|
|
|
|
server load average). This package contains documentation on using RRD.
|
2013-10-03 16:55:51 +02:00
|
|
|
|
2015-11-19 10:14:21 +01:00
|
|
|
This package contains the Lua bindings.
|
|
|
|
%endif
|
2013-10-03 16:55:51 +02:00
|
|
|
|
2015-11-19 10:14:21 +01:00
|
|
|
%if %{with python}
|
2018-02-08 09:43:54 +01:00
|
|
|
%package -n %{python}-%{name}
|
2015-11-19 10:14:21 +01:00
|
|
|
Summary: Python bindings for RRDtool
|
|
|
|
Group: Development/Languages/Python
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
2018-02-08 09:43:54 +01:00
|
|
|
Requires: %{python}
|
2015-11-19 10:14:21 +01:00
|
|
|
|
2018-02-08 09:43:54 +01:00
|
|
|
%description -n %{python}-%{name}
|
2015-11-19 10:14:21 +01:00
|
|
|
Python RRDtool bindings.
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with ruby}
|
|
|
|
%package -n ruby-%{name}
|
|
|
|
Summary: Ruby bindings for RRDtool
|
2015-08-03 13:34:23 +02:00
|
|
|
Group: Development/Languages/Ruby
|
2015-11-19 10:14:21 +01:00
|
|
|
Requires: %{name} = %{version}-%{release}
|
2014-01-13 11:55:42 +01:00
|
|
|
Requires: ruby(abi) >= %{rb_ver}
|
2013-10-03 16:55:51 +02:00
|
|
|
|
2015-11-19 10:14:21 +01:00
|
|
|
%description -n ruby-%{name}
|
|
|
|
RRD is the Acronym for Round Robin Database. RRD is a system to store and
|
|
|
|
display time-series data (i.e. network bandwidth, machine-room temperature,
|
|
|
|
server load average). This package contains documentation on using RRD.
|
2013-10-03 16:55:51 +02:00
|
|
|
|
2015-11-19 10:14:21 +01:00
|
|
|
This package contains the Ruby bindings.
|
|
|
|
%endif
|
2013-10-03 16:55:51 +02:00
|
|
|
|
2015-11-19 10:14:21 +01:00
|
|
|
%if %{with tcl}
|
|
|
|
%package -n tcl-%{name}
|
|
|
|
Summary: Tcl bindings for RRDtool
|
2015-08-03 13:34:23 +02:00
|
|
|
Group: Development/Languages/Tcl
|
2015-11-19 10:14:21 +01:00
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
Requires: tcl >= 8.0
|
2013-10-03 16:55:51 +02:00
|
|
|
|
2015-11-19 10:14:21 +01:00
|
|
|
%description -n tcl-%{name}
|
|
|
|
RRD is the Acronym for Round Robin Database. RRD is a system to store and
|
|
|
|
display time-series data (i.e. network bandwidth, machine-room temperature,
|
|
|
|
server load average). This package contains documentation on using RRD.
|
2013-10-03 16:55:51 +02:00
|
|
|
|
2015-11-19 10:14:21 +01:00
|
|
|
This package contains the Tcl bindings.
|
|
|
|
%endif
|
2013-10-03 16:55:51 +02:00
|
|
|
|
|
|
|
%package cached
|
2015-11-19 10:14:21 +01:00
|
|
|
%define rrdcached_user rrdcached
|
|
|
|
%define rrdcached_group rrdcached
|
2013-10-03 16:55:51 +02:00
|
|
|
Summary: Data caching daemon for RRDtool
|
|
|
|
Group: Productivity/Scientific/Math
|
2015-11-19 10:14:21 +01:00
|
|
|
Requires: %{name} = %{version}-%{release}
|
2017-07-05 07:24:33 +02:00
|
|
|
Requires(post): %fillup_prereq
|
|
|
|
Requires(pre): shadow
|
2013-10-03 16:55:51 +02:00
|
|
|
|
|
|
|
%description cached
|
|
|
|
rrdcached is a daemon that receives updates to existing RRD files,
|
|
|
|
accumulates them and, if enough have been received or a defined time has
|
|
|
|
passed, writes the updates to the RRD file. The daemon was written with
|
|
|
|
big setups in mind which usually runs into I/O related problems. This
|
|
|
|
daemon was written to alleviate these problems.
|
|
|
|
|
2007-01-04 02:07:28 +01:00
|
|
|
%prep
|
2015-11-19 10:14:21 +01:00
|
|
|
%setup -q
|
2022-04-13 15:42:45 +02:00
|
|
|
%patch1 -p1
|
2011-05-13 19:34:23 +02:00
|
|
|
%patch3
|
2013-11-18 12:57:24 +01:00
|
|
|
%patch12 -p1
|
2021-11-22 11:20:06 +01:00
|
|
|
%patch14 -p1
|
2015-11-19 10:14:21 +01:00
|
|
|
|
|
|
|
# rrd_tool/rrd_cgi: use the date of the last change
|
2015-03-07 00:09:06 +01:00
|
|
|
modified="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{_sourcedir}/%{name}.changes")"
|
2015-11-19 10:14:21 +01:00
|
|
|
DATE="\"$(date -d "${modified}" "+%%b %%e %%Y")\""
|
|
|
|
TIME="\"$(date -d "${modified}" "+%%R")\""
|
2017-01-01 18:27:50 +01:00
|
|
|
find . -name '*.c' -exec sed -i "s/__DATE__/${DATE}/g;s/__TIME__/${TIME}/g" "{}" "+"
|
2007-01-04 02:07:28 +01:00
|
|
|
|
|
|
|
%build
|
Accepting request 561648 from openSUSE:Factory:Staging:O
- build bindings for Python 3 instead of Python 2
- Only move the lua bindings from /usr/local when needed: this was
generally only a hack as our lua.pc 'forgot' to expose the
variables INSTALL_CMOD. As lua is now being fixed, this hack is
no longer needed (for compatibility with older/broken lua
packages we keep it in place, but don't abort if the move
failed).
- Cleanup bit with spec-cleaner
- Move all BR to the top so it is obvious what is needed for which
part
- Build with latest lua not 5.1
- Version update to 1.7.0:
* Many coverity scan bugfixes
* For full detailed log see CHANGES file
- Add dependency on python-setuptools for python building
- Implement shared library packaging guideline
- Reduce %serivce_* calls, speed up find by using {}+ instead,
rectify RPM groups, trim descriptions.
- Abort package installation when user/group cannot be created.
- Update to 1.6.0
Features
* librrd is now fully thread-safe. librrd_th is gone
* make lua bindings work with lua 5.1
* configure option to disable doc building --enable-docs=no
* new CDEF function SMIN: a,b,c,3,SMIN -> min(a,b,c)
* new CDEF function SMAX: a,b,c,3,SMAX -> max(a,b,c)
* new CDEF function STDEV: a,b,c,3,STDEV -> stdev(a,b,c)
* new CDEF function POW: a,b,POW -> a**b
* new CDEF function PERCENT: a,b,c,95,3,PERCENT -> find 95percentile of a,b,c
* re-introducted --showtime option on rrdxport
* be more careful in determining the locales idea of first day of the week
* lots of spelling fixes all around
- Removed rrdtool-1.5.4-lua-5.2.patch as upstream already supports lua 5.2 since
https://github.com/oetiker/rrdtool-1.x/commit/7af5f76227330504d4d16234488c1118d4409621
However, spec still requires explicitily lua51-devel (but lua52-devel also works)
- librrd_th* references are gone
- Patches refreshed
- Update to 1.5.5
Bugfixes
* fix JSON output in xport with legend and gprint blocks
* fix parse_time mutex unlocking in the error case
* don't crash on invalid variable names in CDEF
* add mutex locking in rrdc_fetch
* fix buffer overflow in rrd_restore
* shorten test precision to 7 digits ...
* never exit from a library function
* buffer overflow in rrd_restore.c fixed #669
- Added rrdtool-1.5.4-lua-5.2.patch: lua >= 5.2 uses lua_callk
- Update to 1.5.4
Bug Fixes
* parse floating point numbers according to C locale in rrdtool create
arguments, regardless of the systems locale setting.
* include missing rrd_rados.h into distribution archive
* make rrdtool work on ARM again
* make rrdtool test suit pass on 32bit OSs
* fix --grid-dash option regression in graph
* fix systemd support
* fix link dependency for libpng since we are using functions directly
* fix python module name
* fix rrdtool tune to accept U in minimum and maximum options
* fi
* rrd_parsetime now uses a mutex lock to become thread safe
* rrd_xport is now thread safe
* stop using MAX_PATH and make everything dynamic and make rrdtool work on
Gnu HURD ... thanks nirgal!
Features
* new RPN operators: STEPWIDTH, NEWDAY, NEWWEEK, NEWMONTH and NEWWEEK
together they allow to draw graphs where a rate is converted back to
absolute numbers and accumulated over a period..
- Changelog 1.5.3
Bug Fixes
* Brought commmand-line options and documentation back into sync.
* Make LINE dashes option work again
- Changelog 1.5.2
Bug Fixes
* paramters in VDEF are vnames and not data source names, hence
they can be 255 chars long and not only 20
- Changelog 1.5.1
Bug Fixes
* parse numbers up to 40 characters long ..
* fix install rules for Python and Lua
* include missing VERSION and LICENSE file
* unlink before rename in rrd_create when running on WIN32
- Changelog 1.5.0
New Features
* automatic x-axis labels that work from 1s to 30y on a single chart
* librados integration
* new datasource types: DCOUNTER and DDERIVE (they work the same as the
original DS, except that they can deal with floatingpoint numbers).
* compile without graphics libraries: ./configure --disable-rrd_graph
* updated windows port (see WIN32-BUILD-TIPS.txt)
* single step RRAs for MIN,MAX,LAST are generated virtually from
an AVERAGE RRA
* ignore updates in the past with rrdtool update --skip-past-updates
* ignore a LINE when scaling a chart using the skipscale option
* detect 32bit timeoverflows
* massive performance boost for charts with more than 100 DEF line by
switching form a linear search to a HASH when searching for data
* improved cross compilation support
* .Net bindings
* allow rrdtool graph to silently skip non-existing source files using the
--use-nan-for-all-missing-data option
* restore from a pipe (rrdtool restore - y.rrd)
* in rrdtool create, row count and step can be defined in absolute time
* all new "create on steroids" can pull both data and configuration from
existing rrd files
* use rrdtool graph to chart arbitrary data via a callback function for data fetching
support is integrated in the perl bindings.
* re-written parser for rrdtool graph commands. It now follows a simple key
value pattern, compatible with the previous syntax.
* MEDIAN op for CDEF expressions
* DEPTH,INDEX,COPY,ROL ops for CDEF (as seen in PostScript)
* gradient AREA backgrounds
* no more locale magic while reading numeric data.
Bugfixes
* all the bugs fixed in 1.4.x during 1.5 development
- Changelog 1.4.9
New Features
* allows rrdrestore to read input from stdin
* add documentation for RRDs::xport
* RPN operators MINNAN and MAXNAN
* --left-axis-format option to rrd_graph
Bugfixes
* properly verify validity of user suplied format strings
* remove graph functions from python module when compiled without graphing
support
* verify that only short integers are used in COMPUTE rpn expressions
* eliminate duplicate setlocale calls
* fixed endless loop and double frees in rrd_restore
* fixed missing variable initializations in rrd_graph
* fixed JSON output format to actually be valid JSON
* detect failing fallocate and fall back to seeking
* fixed format string in ruby bindings
- Changelog 1.4.8
Highlights
* rrd_graph now uses a map to lookup variable names causing graphs with many
items to be drawn magnitudes faster as the linear search of the variable
tables is gone now.
* the optional argument :skipscale allows for a LINE or AREA instruction to be
excluded from having an effect on the scaling of the graph
* TRENDNAN is now working properly and als not crashing anymore
* Added a no-op string positioning combo "\." this allows to write
COMMENT:OS\2\. which would otherwise not be possible.
* JSON output of xport is now actually json compilant by its keys
being properly quoted now.
* The label positioner in rrd_graph is now properly ignoring the current
state of DST.
* fixes and enhancements for Python, Ruby, TCL and Perl bindings
* improved error reporting in rrd_graph
* portability and cross compilation
* code and bugtracker moved to https://github.com/oetiker/rrdtool-1.x
- Dropped patches (included upstream):
- rrdtool-1.4.7-CVE-2013-2131-imginfo_format_check.patch
- Dropped patches (resolved otherwise):
- rrdtool-lua-ruby_lib64.patch
- rrdtool-tclversion.patch
- Dropped cgilib-0.7.tar.gz + cgilib-fix_automake.patch (no
references to cgilib or cgi.h found, so benefit unclear)
- Spec cleanup
+ Added new perl-rrdtool subpackage containing the perl bindings
+ Added new -doc subpackge
* bcond_without for lua, python, ruby and tcl
* bcond_without for libdbi, libwrap (tcpd)
* bcond_with for rados (ceph)
- Dropped BuildRequires: autoconf + automake (was needed for cgilib)
- Dropped BuildRequires: libart_lgpl-devel (replaced by cairo/pango
in earlier releases)
- Do not hard-depend on systemd, the macros support soft fails.
- Ignore errors from useradd/groupadd
- Update RPM groups
- Ignore absence of systemd-tmpfiles, it won't be present in the
build env.
- add rddtool.changes to sources list
- modify a %prep phase to replace all timestamps in *.c and *.h
with the date and time obtained from the last changelog entry
bnc#915946
- add rrdtool-1.4.7-CVE-2013-2131-imginfo_format_check.patch that
adds check to the imginfo format to prevent crash or exploit
bnc#828003, CVE-2013-2131.
- fix bashisms in rrdcached-systemd-pre script
- Replace systemd BuildRequires with pkgconfig(systemd): we do not
require the full installation / dep chain of systemd.
- again fix PIDfile handling for rrdcached in systemd file
(ugly now: because of removal of declaration in sysconfig file;
it has to be declared twice in service file)
- add PIDfile directory using tmpfiles now
- don't require ruby, the package but the right version of the abi
- fix build for ruby 2.1
- Fix bnc#793636 almost undistinguishable wheter there is "no data"
or "zero valued data" on the rendered graph - rrdtool-zero_vs_nothing.patch
- I did this to prepare rrdtool for SLE12 - bnc#831773 - [openSUSE goes SLE12]: rrdtool: Change and/or patches may have been lost
- Remove PIDfile definition of sysconfig file and add it in systemd
service file
- Fix PIDfile location to /run instead of var/lib/rccached
- fix rrdcached service file (type=forking), add pid file variable
- Build is disable for SLE; remove sysvinit support
- CLean obsolete conditionnal macros
- Fix devel package Group; it have to be Development/Libraries
- add systemd service for rrdcached
- rename rrdtool-lua_lib64.patch to rrdtool-lua-ruby_lib64.patch
since it sets libdir for ruby as well
- Package ruby bindings into ruby-rrdtool package
- Work around makefile dependencies on installed ruby headers during
installation
- Avoid running autoreconf, remove rrdtool-automake.patch
- Fix the hack from previous entry to work everywhere
- Fix build failure: make looks for ruby.h in wrong place.
- Add Source URL, see https://en.opensuse.org/SourceUrls
- remove suse_update_config
- add explicit buildrequire on groff for man pages
- Fix build with new automake
- Only require lua51-devel on openSUSE_12.2 or later
- update to 1.4.7
* check in /usr/lib64 for tclConfig.sh too
* remove perl 5.004 compatibility hack and make RRDs compile with newer
perls.
* added support for rrdgraph to use the yotta, zetta, zepto, yocto prefixes.
* configure option to disable building rrd_graph: --disable-rrd_graph
With support from Ulf Zimmermann (OpenLane)
* fixed segfault in rrdtool (xport, fetch, graph) when handling
error conditions. -- James Brown
* fix uninitialized variable in rrd_graph (#322)
* improved data reduction algorithm in graph: after fetching, data must be
reduced to at least chart resolution, else some data will not get plotted.
fix for #298
* plug memory leak in lua bindings #301
* improve cross compiling -- Michael Olbrich
- require lua51-devel
- Fix two segfaults in the Tcl binding.
- Move the Tcl bindings into a separate subpackage.
- Remove the superfluous call to (bnc#693085).
- Adopt the current practice of packaging Tcl extensions.
- build lua bindings (new subpackage lua-rrdtool)
- update to 1.4.5:
* rrdcached: print \n at the end of log messages when running rrdcached in the foreground
* rrdcached: Let the -s, -m and -P options affect the default socket as well
* rrdgraph: font related memory leaks fixed #208
* rrdgraph-libdbi: print error message instead of dumping core on sql problem
* rrdgraph-libdbi: properly allocated response buffer
* rrdtool: in remote mode, make argument count for remote commmands strict
* rrdgraph: fix problems with second %s in right-axis format
* everywhere: fix locale handling. locales were not properly reset after calling set locale
* rrdgraph: fix use of %s in strftime (G)PRINT commands #277
* ruby: fix bindings to be compatible with curent ruby implementations #279
* rrdcached: Ensure that response_read() always calls fflush() or fclose() #278
* rrd_client: free addrinfo list after use ...
* rrdupdate: follow the normal code path for exiting rrd_update if there is a problem with rrdc, plugging a memory leak on the way
* rrdgraph: make sure we do not try to draw points all that far outside the drawing area since some versions of cairo seem to go unstable when this happens
* rrdgraph: fix an endles loop near 2^31 timestamp (32bit platform problem)
* rrdcached: fix permissions of the default socket
* rrdgraph-libdbi: Fix sigma calculation
* rrdcreate: better checks for RRA arguments
* rrdgraph: if there is no right label, do not reserve any space for it
* Enhancements:
+ rrdcached: add hosts_access support
+ rrdfetch/graph: introduce "epoch" as a new base time reference, meaning timestamp 0: you can now write epoch+11111111s or epoch+19711205s
* update in-tree cgilib to 0.7:
+ allow cookies without regular CGI POST/GET variables
+ support for ';' as delimiter
+ support for multipart/form-data
+ support for file upload
+ decode variable names and data
- fix perl file list on factory
- update to 1.4.4
* legal: Relicense the RRDCacheD client interface under the MIT
license
* legal: Updted FLOSS Exception for latest PHP license
* rrd_cached: better help output
* bugfixes
- remove last patch, fixed in upstream
- disable calling autoreconf (needs too new gettext)
- fixed bnc#594981 (-double.diff)
- update to 1.4.3
* rrdcached: Log to stderr (in addition to syslog) when running
in foreground.
* rrdcached: Added -m command line option.
* rrdcached: Added -s option so set group permissions of the
UNIX domain socket.
* rrd_create: added --no-overwrite option. It prevents rrdtool
from clobbering existing rrd files.
* ruby bindings: rb_rrd_xport function
* use locale settings and _NL_TIME_WEEK_1STDAY to determine
the first day of the week. Works on Linux at least
* rrd_graph: \u to backup one line for special legend placement
tricks
* rrd_update: new (better) checker for incoming COUNTER
or DERIVED data.
- update to 1.4.2
* RRD Caching Daemon (rrdcached)
See rrdcached documentation.
* The output of rrdtool dump has been adjusted to be simpler to parse by
existing xml parsers.
* RRD Graphing functions (rrdtool graph)
+ VDEF PERCENTNAN (a PRECENT that ignores NAN)
+ CDEF PREDICT and PREDICTSIGMA functions for on-the-fly
data prediction without the need to modify existing rrd files as it is
required for HoltWinters.
+ LibDBI integration provides a path to read data directly of a supported
SQL database into rrdtool graph. See rrdgraph_libdbi documentation.
* quite some more - see NEWS and CHANGES
- use --disable-static instead of removing static libraries
- update to 1.3.7
* many small updates to the POD documents.
* improved win32 source
* OSX compilation fixes
* rrd_fetch: fix memory leak
* rrd_cgi: fix segfault in error reporting routine
* rrd_graph: fix TICK for negative numbers
* rrd_graph: fix image size reporting for LP64BE architectures
* rrd_resize: fix GROW for mmap (it was totally broken)
- bnc#467362: use --with-rrd-default-font="monospace" instead of
--with-rrd-default-font=/usr/share/fonts/truetype/DejaVuSansMono.ttf,
rrdtools uses fontconfig now, not only freetype and the latter
is not a correct font name for fontconfig.
- update to 1.3.6
* bugfixes, documentation improvements
- update to 1.3.4
* detect short/truncated files on open (rrdtool used to crash
later on some platforms)
* stop rrd_resize from altering the original file (mmap side
effect)
* fix VDEF and SHIFT use. Now it returns correct data and does
not crash anymore.
* fix rrd_xport when used on datasources with different
resolutions. This has been broken from day 1 of this tools
exsitance.
* fixed default prefix for ruby install
* added rpath for perl bindings on bsd
* do not [fm]advise past the end of the file since this
causes crashes on sparc.
- update to 1.3.2
* fix for data corruption bug:
http://oss.oetiker.ch/rrdtool-trac/ticket/178
- remove la files and static libs (to fix depending packages)
- Fix configure script and use of libtool.
- update to 1.3.0
* Multiplicative Holt-Winters Forecasting
* MMAP IO
* Graphing with Cairo/Pango
* New graphv Interface
* many more changes - major release
- update to 1.2.27
* bindings/ruby/main.c: be more helpful when raising rb_eTypeError
in string_arr string_arr_new(VALUE rb_strings).
* src/rrd_update.c: dropping cache after update does not help (in
this implementation)
* bindings/Makefile.am, bindings/python/setup.py: yet another
attempt to make the python build environment REALY cool
* bindings/Makefile.am, bindings/python/setup.py: make sure the
python extension gets the final resting place of the rrdlibrary
compiled in ...
* src/rrd_graph.c: don't use round since it is c99 ... use
floor(x+0.5) for positive numbers instead.
* src/rrd_graph.c: added some more rounding for int to float
comparisons
* src/rrd_graph.c: Testing an double and an integer for equality is
bound to produce odd results on times. Don't do it! --
* bugfixes, documentation fixes
- remove python patch (fixed in upstream)
- make dejavu font requirement unversioned again, as
there was no released openSUSE distro with the wrongly
named font
- dejavu font was renamed back, adjust
- fix default font after dejavu font update
- add dejavu to the package requires
- build parallel
- apply python requires only to python-rrdtool subpackage
- split off python and -devel package to reduce
size and make the python dependency optional
(needed for 1 CD installer)
- added ldconfig to post scripts
- fix rpath in python module
- update to 2.1.23
* many bugfixes (mostly python)
- remove stderr.diff and buffer.diff (fixed in upstream)
- update to 1.2.18
* many bugfixes
* DoS in rrd_graph.c fixed [#231212]
- fix overflow in rrd_tool.c
- fix librrd_th.la
- remove packaged fonts and use system fonts instead
- fix last patch
- fix memory allocation bug when graphing logarithmic data
with upstream patch [#231212]
- use %py_requires [#207920]
- store value returned with PyTuple_Size in
Py_ssize_t instead of int
- update to 1.2.15
* vnames can be up to MAX_VNAME_LEN long
* bugfixes, documentation fixes
- converted neededforbuild to BuildRequires
- update to 1.2.12
- Fixed installation of the Tcl bindings.
- fix build - return proper value from strerror_r
- fix build
- moved pkgIndex.tcl to /usr/share/tcl/tclrrd
- update to 1.2.11
- update to 1.2.10
- drop no longer neccessary rrdtool-tcl.patch
- update to 1.2.8
- reneabled tcl (copilation fixed by rrdtool-tcl.patch)
- added python bindings
- update to 1.2.6
- dropped tcl for now, it's somewhat broken
- include correct config.h
- update to 1.0.49
- update to 1.0.48
- do not use its own (and old) libpng and libz
- update to version 1.0.46
- build as user
- require the perl version we build with
- removed %{vendor_perl}/auto from filelist
- update to version 1.0.45
- fixed file list
- require perl
- install perl files to vendor location
- fix build with current libtool
- update to 1.0.40
- run full autoreconf and extend configure.in for that
- use sitearch macro
- update to version 1.0.39
- fix build on lib64 platforms
- omitted prefix i386-suse-linux from names of binaries
and example scripts (bug #16105)
- added rrdtool-1.0.33-zlib-zfree.dif against duplicate free() in
zlib
- fix for new autoconf (add libtoolize --force)
- updated to version 1.0.33
- fixed call of suse_update_config
- package created
OBS-URL: https://build.opensuse.org/request/show/561648
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/rrdtool?expand=0&rev=81
2018-01-04 15:13:31 +01:00
|
|
|
# we are patching configure, we need to reconf
|
|
|
|
autoreconf -fi
|
|
|
|
|
2017-07-05 07:24:33 +02:00
|
|
|
# --disable-nls: there is only partial hungarian translation, does not make %{?_smp_mflags}
|
|
|
|
# much sense to ship package for it
|
2015-11-19 10:14:21 +01:00
|
|
|
%configure \
|
2017-07-05 07:24:33 +02:00
|
|
|
--disable-nls \
|
|
|
|
--disable-silent-rules \
|
2015-11-19 10:14:21 +01:00
|
|
|
--enable-shared \
|
|
|
|
--disable-static\
|
|
|
|
--disable-rpath \
|
|
|
|
%if %{with lua}
|
|
|
|
--enable-lua \
|
|
|
|
--enable-lua-site-install \
|
|
|
|
%else
|
|
|
|
--disable-lua \
|
|
|
|
%endif
|
|
|
|
--enable-perl \
|
|
|
|
--enable-perl-site-install \
|
|
|
|
--with-perl-options='INSTALLDIRS="vendor"' \
|
|
|
|
%if %{with python}
|
|
|
|
--enable-python \
|
|
|
|
%else
|
|
|
|
--disable-python \
|
|
|
|
%endif
|
|
|
|
%if %{with ruby}
|
|
|
|
--enable-ruby \
|
|
|
|
--enable-ruby-site-install \
|
|
|
|
--with-ruby-options='sitedir="%{rb_sitearchdir}"' \
|
|
|
|
%else
|
|
|
|
--disable-ruby \
|
|
|
|
%endif
|
|
|
|
%if %{with tcl}
|
|
|
|
--enable-tcl \
|
|
|
|
--enable-tcl-site \
|
|
|
|
--with-tcllib=%{_libdir} \
|
|
|
|
%else
|
|
|
|
--disable-tcl \
|
|
|
|
%endif
|
|
|
|
--with-rrd-default-font="monospace" \
|
|
|
|
--with-pic \
|
|
|
|
--with-gnu-ld \
|
|
|
|
--with-systemdsystemunitdir=%{_unitdir}
|
|
|
|
|
|
|
|
make %{?_smp_mflags}
|
2007-01-04 02:07:28 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
make \
|
2017-07-05 07:24:33 +02:00
|
|
|
DESTDIR=%{buildroot} \
|
2015-11-19 10:14:21 +01:00
|
|
|
idocdir=%{_docdir}/%{name}/txt/ \
|
|
|
|
ihtmldir=%{_docdir}/%{name}/html/ \
|
|
|
|
examplesdir=%{_docdir}/%{name}/examples/ \
|
|
|
|
libdir=%{_libdir} \
|
|
|
|
%if %{with tcl}
|
|
|
|
pkglibdir=%{tcl_archdir}/tclrrd%{version} \
|
|
|
|
%endif
|
|
|
|
install
|
|
|
|
|
2007-01-04 02:07:28 +01:00
|
|
|
%perl_process_packlist
|
2015-11-19 10:14:21 +01:00
|
|
|
|
|
|
|
%if %{with lua}
|
2017-07-24 20:53:36 +02:00
|
|
|
# Move lua lib to the right point, in case lua did not expose the right INSTALL_CMOD variable
|
|
|
|
mv %{buildroot}%{_prefix}/local/lib/lua %{buildroot}%{_libdir}/lua || true
|
2015-11-19 10:14:21 +01:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with ruby}
|
|
|
|
install -D bindings/ruby/RRD.so %{buildroot}%{rb_sitearchdir}/RRD.so
|
|
|
|
%endif
|
|
|
|
|
|
|
|
# remove cruft
|
2017-07-05 07:24:33 +02:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2015-11-19 10:14:21 +01:00
|
|
|
|
2007-01-04 02:07:28 +01:00
|
|
|
# documentation
|
2015-11-19 10:14:21 +01:00
|
|
|
rm %{buildroot}%{_docdir}/%{name}/txt/*.pod
|
2017-01-01 18:27:50 +01:00
|
|
|
find %{buildroot}%{_docdir}/%{name}/examples/ -type f -exec chmod 0644 "{}" "+"
|
2015-11-19 10:14:21 +01:00
|
|
|
|
2013-10-03 16:16:18 +02:00
|
|
|
# install rrdcached specials
|
2017-11-23 16:03:07 +01:00
|
|
|
install -D -m 644 %{SOURCE2} %{buildroot}%{_fillupdir}/sysconfig.rrdcached
|
2015-11-19 10:14:21 +01:00
|
|
|
|
2013-10-03 16:16:18 +02:00
|
|
|
# install systemd specific files
|
2015-11-19 10:14:21 +01:00
|
|
|
install -D -m 0755 %{SOURCE4} %{buildroot}%{_datadir}/rrdcached/rrdcached-systemd-pre
|
|
|
|
install -D -m 0644 %{SOURCE5} %{buildroot}%{_unitdir}/rrdcached.service
|
|
|
|
install -d -m 0755 %{buildroot}%{_tmpfilesdir}
|
|
|
|
echo "d /run/rrdcached 0755 %{rrdcached_user} %{rrdcached_group}" > %{buildroot}%{_tmpfilesdir}/rrdcached.conf
|
|
|
|
chmod 644 %{buildroot}%{_tmpfilesdir}/rrdcached.conf
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_sbindir}
|
|
|
|
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rcrrdcached
|
|
|
|
|
2017-07-05 07:24:33 +02:00
|
|
|
%check
|
|
|
|
make %{?_smp_mflags} check
|
|
|
|
|
2015-11-19 10:14:21 +01:00
|
|
|
%pre cached
|
2017-01-01 18:27:50 +01:00
|
|
|
getent group %{rrdcached_group} >/dev/null || groupadd %{rrdcached_group}
|
|
|
|
getent passwd %{rrdcached_user} >/dev/null || useradd -s /sbin/nologin -g %{rrdcached_group} -c %{rrdcached_user} -d %{_localstatedir}/lib %{rrdcached_user}
|
|
|
|
%service_add_pre rrdcached.service rrdcached.socket
|
2015-11-19 10:14:21 +01:00
|
|
|
|
|
|
|
%post cached
|
|
|
|
%fillup_only rrdcached
|
2017-01-01 18:27:50 +01:00
|
|
|
%service_add_post rrdcached.servicet rrdcached.socket
|
2015-11-19 10:14:21 +01:00
|
|
|
%tmpfiles_create %{_tmpfilesdir}/rddcached.conf
|
|
|
|
|
|
|
|
%preun cached
|
2017-01-01 18:27:50 +01:00
|
|
|
%service_del_preun rrdcached.service rrdcached.socket
|
2015-11-19 10:14:21 +01:00
|
|
|
|
|
|
|
%postun cached
|
2017-01-01 18:27:50 +01:00
|
|
|
%service_del_postun rrdcached.service rrdcached.socket
|
2007-05-24 02:10:24 +02:00
|
|
|
|
2017-01-01 18:27:50 +01:00
|
|
|
%post -n librrd8 -p /sbin/ldconfig
|
|
|
|
%postun -n librrd8 -p /sbin/ldconfig
|
2007-05-24 02:10:24 +02:00
|
|
|
|
2007-01-04 02:07:28 +01:00
|
|
|
%files
|
2015-11-19 10:14:21 +01:00
|
|
|
%exclude %{_docdir}/%{name}
|
|
|
|
%{_mandir}/*/*
|
|
|
|
%exclude %{_mandir}/man1/rrdcached*
|
|
|
|
%exclude %{_mandir}/man3/RRD*
|
2013-10-03 16:55:51 +02:00
|
|
|
%{_bindir}/*
|
2013-10-03 16:16:18 +02:00
|
|
|
%exclude %{_bindir}/rrdcached
|
2017-01-01 18:27:50 +01:00
|
|
|
|
|
|
|
%files -n librrd8
|
2007-06-22 00:12:35 +02:00
|
|
|
%{_libdir}/librrd.so.*
|
2007-11-28 23:48:25 +01:00
|
|
|
|
2007-06-22 00:12:35 +02:00
|
|
|
%files devel
|
2015-11-19 10:14:21 +01:00
|
|
|
%{_includedir}/*.h
|
2007-06-22 00:12:35 +02:00
|
|
|
%{_libdir}/librrd.so
|
2008-10-06 19:07:19 +02:00
|
|
|
%{_libdir}/pkgconfig/librrd.pc
|
2007-11-28 23:48:25 +01:00
|
|
|
|
2015-11-19 10:14:21 +01:00
|
|
|
%files doc
|
|
|
|
%doc CONTRIBUTORS COPYRIGHT NEWS THREADS TODO
|
|
|
|
%doc %{_docdir}/rrdtool
|
|
|
|
%exclude %{_docdir}/rrdtool/html/RRD*.html
|
|
|
|
|
|
|
|
%files -n perl-%{name}
|
|
|
|
%doc %{_docdir}/rrdtool/html/RRD*.html
|
|
|
|
%{_mandir}/man3/RRD*
|
|
|
|
%{perl_vendorlib}/RRDp.pm
|
|
|
|
%{perl_vendorarch}/RRDs.pm
|
|
|
|
%{perl_vendorarch}/auto/*
|
2007-01-04 02:07:28 +01:00
|
|
|
|
2015-11-19 10:14:21 +01:00
|
|
|
%if %{with lua}
|
|
|
|
%files -n lua-%{name}
|
|
|
|
%doc bindings/lua/README
|
2010-12-28 04:15:35 +01:00
|
|
|
%dir %{_libdir}/lua
|
|
|
|
%dir %{_libdir}/lua/*
|
2010-12-28 04:02:19 +01:00
|
|
|
%{_libdir}/lua/*/rrd.so
|
|
|
|
%{_libdir}/lua/*/rrd.so.*
|
2015-11-19 10:14:21 +01:00
|
|
|
%endif
|
2010-12-28 04:02:19 +01:00
|
|
|
|
2015-11-19 10:14:21 +01:00
|
|
|
%if %{with python}
|
2018-02-08 09:43:54 +01:00
|
|
|
%files -n %{python}-%{name}
|
2019-09-23 09:23:32 +02:00
|
|
|
%license bindings/python/COPYING
|
|
|
|
%doc bindings/python/README.md
|
2018-02-08 09:43:54 +01:00
|
|
|
%if 0%{?suse_version} >= 1500
|
Accepting request 561648 from openSUSE:Factory:Staging:O
- build bindings for Python 3 instead of Python 2
- Only move the lua bindings from /usr/local when needed: this was
generally only a hack as our lua.pc 'forgot' to expose the
variables INSTALL_CMOD. As lua is now being fixed, this hack is
no longer needed (for compatibility with older/broken lua
packages we keep it in place, but don't abort if the move
failed).
- Cleanup bit with spec-cleaner
- Move all BR to the top so it is obvious what is needed for which
part
- Build with latest lua not 5.1
- Version update to 1.7.0:
* Many coverity scan bugfixes
* For full detailed log see CHANGES file
- Add dependency on python-setuptools for python building
- Implement shared library packaging guideline
- Reduce %serivce_* calls, speed up find by using {}+ instead,
rectify RPM groups, trim descriptions.
- Abort package installation when user/group cannot be created.
- Update to 1.6.0
Features
* librrd is now fully thread-safe. librrd_th is gone
* make lua bindings work with lua 5.1
* configure option to disable doc building --enable-docs=no
* new CDEF function SMIN: a,b,c,3,SMIN -> min(a,b,c)
* new CDEF function SMAX: a,b,c,3,SMAX -> max(a,b,c)
* new CDEF function STDEV: a,b,c,3,STDEV -> stdev(a,b,c)
* new CDEF function POW: a,b,POW -> a**b
* new CDEF function PERCENT: a,b,c,95,3,PERCENT -> find 95percentile of a,b,c
* re-introducted --showtime option on rrdxport
* be more careful in determining the locales idea of first day of the week
* lots of spelling fixes all around
- Removed rrdtool-1.5.4-lua-5.2.patch as upstream already supports lua 5.2 since
https://github.com/oetiker/rrdtool-1.x/commit/7af5f76227330504d4d16234488c1118d4409621
However, spec still requires explicitily lua51-devel (but lua52-devel also works)
- librrd_th* references are gone
- Patches refreshed
- Update to 1.5.5
Bugfixes
* fix JSON output in xport with legend and gprint blocks
* fix parse_time mutex unlocking in the error case
* don't crash on invalid variable names in CDEF
* add mutex locking in rrdc_fetch
* fix buffer overflow in rrd_restore
* shorten test precision to 7 digits ...
* never exit from a library function
* buffer overflow in rrd_restore.c fixed #669
- Added rrdtool-1.5.4-lua-5.2.patch: lua >= 5.2 uses lua_callk
- Update to 1.5.4
Bug Fixes
* parse floating point numbers according to C locale in rrdtool create
arguments, regardless of the systems locale setting.
* include missing rrd_rados.h into distribution archive
* make rrdtool work on ARM again
* make rrdtool test suit pass on 32bit OSs
* fix --grid-dash option regression in graph
* fix systemd support
* fix link dependency for libpng since we are using functions directly
* fix python module name
* fix rrdtool tune to accept U in minimum and maximum options
* fi
* rrd_parsetime now uses a mutex lock to become thread safe
* rrd_xport is now thread safe
* stop using MAX_PATH and make everything dynamic and make rrdtool work on
Gnu HURD ... thanks nirgal!
Features
* new RPN operators: STEPWIDTH, NEWDAY, NEWWEEK, NEWMONTH and NEWWEEK
together they allow to draw graphs where a rate is converted back to
absolute numbers and accumulated over a period..
- Changelog 1.5.3
Bug Fixes
* Brought commmand-line options and documentation back into sync.
* Make LINE dashes option work again
- Changelog 1.5.2
Bug Fixes
* paramters in VDEF are vnames and not data source names, hence
they can be 255 chars long and not only 20
- Changelog 1.5.1
Bug Fixes
* parse numbers up to 40 characters long ..
* fix install rules for Python and Lua
* include missing VERSION and LICENSE file
* unlink before rename in rrd_create when running on WIN32
- Changelog 1.5.0
New Features
* automatic x-axis labels that work from 1s to 30y on a single chart
* librados integration
* new datasource types: DCOUNTER and DDERIVE (they work the same as the
original DS, except that they can deal with floatingpoint numbers).
* compile without graphics libraries: ./configure --disable-rrd_graph
* updated windows port (see WIN32-BUILD-TIPS.txt)
* single step RRAs for MIN,MAX,LAST are generated virtually from
an AVERAGE RRA
* ignore updates in the past with rrdtool update --skip-past-updates
* ignore a LINE when scaling a chart using the skipscale option
* detect 32bit timeoverflows
* massive performance boost for charts with more than 100 DEF line by
switching form a linear search to a HASH when searching for data
* improved cross compilation support
* .Net bindings
* allow rrdtool graph to silently skip non-existing source files using the
--use-nan-for-all-missing-data option
* restore from a pipe (rrdtool restore - y.rrd)
* in rrdtool create, row count and step can be defined in absolute time
* all new "create on steroids" can pull both data and configuration from
existing rrd files
* use rrdtool graph to chart arbitrary data via a callback function for data fetching
support is integrated in the perl bindings.
* re-written parser for rrdtool graph commands. It now follows a simple key
value pattern, compatible with the previous syntax.
* MEDIAN op for CDEF expressions
* DEPTH,INDEX,COPY,ROL ops for CDEF (as seen in PostScript)
* gradient AREA backgrounds
* no more locale magic while reading numeric data.
Bugfixes
* all the bugs fixed in 1.4.x during 1.5 development
- Changelog 1.4.9
New Features
* allows rrdrestore to read input from stdin
* add documentation for RRDs::xport
* RPN operators MINNAN and MAXNAN
* --left-axis-format option to rrd_graph
Bugfixes
* properly verify validity of user suplied format strings
* remove graph functions from python module when compiled without graphing
support
* verify that only short integers are used in COMPUTE rpn expressions
* eliminate duplicate setlocale calls
* fixed endless loop and double frees in rrd_restore
* fixed missing variable initializations in rrd_graph
* fixed JSON output format to actually be valid JSON
* detect failing fallocate and fall back to seeking
* fixed format string in ruby bindings
- Changelog 1.4.8
Highlights
* rrd_graph now uses a map to lookup variable names causing graphs with many
items to be drawn magnitudes faster as the linear search of the variable
tables is gone now.
* the optional argument :skipscale allows for a LINE or AREA instruction to be
excluded from having an effect on the scaling of the graph
* TRENDNAN is now working properly and als not crashing anymore
* Added a no-op string positioning combo "\." this allows to write
COMMENT:OS\2\. which would otherwise not be possible.
* JSON output of xport is now actually json compilant by its keys
being properly quoted now.
* The label positioner in rrd_graph is now properly ignoring the current
state of DST.
* fixes and enhancements for Python, Ruby, TCL and Perl bindings
* improved error reporting in rrd_graph
* portability and cross compilation
* code and bugtracker moved to https://github.com/oetiker/rrdtool-1.x
- Dropped patches (included upstream):
- rrdtool-1.4.7-CVE-2013-2131-imginfo_format_check.patch
- Dropped patches (resolved otherwise):
- rrdtool-lua-ruby_lib64.patch
- rrdtool-tclversion.patch
- Dropped cgilib-0.7.tar.gz + cgilib-fix_automake.patch (no
references to cgilib or cgi.h found, so benefit unclear)
- Spec cleanup
+ Added new perl-rrdtool subpackage containing the perl bindings
+ Added new -doc subpackge
* bcond_without for lua, python, ruby and tcl
* bcond_without for libdbi, libwrap (tcpd)
* bcond_with for rados (ceph)
- Dropped BuildRequires: autoconf + automake (was needed for cgilib)
- Dropped BuildRequires: libart_lgpl-devel (replaced by cairo/pango
in earlier releases)
- Do not hard-depend on systemd, the macros support soft fails.
- Ignore errors from useradd/groupadd
- Update RPM groups
- Ignore absence of systemd-tmpfiles, it won't be present in the
build env.
- add rddtool.changes to sources list
- modify a %prep phase to replace all timestamps in *.c and *.h
with the date and time obtained from the last changelog entry
bnc#915946
- add rrdtool-1.4.7-CVE-2013-2131-imginfo_format_check.patch that
adds check to the imginfo format to prevent crash or exploit
bnc#828003, CVE-2013-2131.
- fix bashisms in rrdcached-systemd-pre script
- Replace systemd BuildRequires with pkgconfig(systemd): we do not
require the full installation / dep chain of systemd.
- again fix PIDfile handling for rrdcached in systemd file
(ugly now: because of removal of declaration in sysconfig file;
it has to be declared twice in service file)
- add PIDfile directory using tmpfiles now
- don't require ruby, the package but the right version of the abi
- fix build for ruby 2.1
- Fix bnc#793636 almost undistinguishable wheter there is "no data"
or "zero valued data" on the rendered graph - rrdtool-zero_vs_nothing.patch
- I did this to prepare rrdtool for SLE12 - bnc#831773 - [openSUSE goes SLE12]: rrdtool: Change and/or patches may have been lost
- Remove PIDfile definition of sysconfig file and add it in systemd
service file
- Fix PIDfile location to /run instead of var/lib/rccached
- fix rrdcached service file (type=forking), add pid file variable
- Build is disable for SLE; remove sysvinit support
- CLean obsolete conditionnal macros
- Fix devel package Group; it have to be Development/Libraries
- add systemd service for rrdcached
- rename rrdtool-lua_lib64.patch to rrdtool-lua-ruby_lib64.patch
since it sets libdir for ruby as well
- Package ruby bindings into ruby-rrdtool package
- Work around makefile dependencies on installed ruby headers during
installation
- Avoid running autoreconf, remove rrdtool-automake.patch
- Fix the hack from previous entry to work everywhere
- Fix build failure: make looks for ruby.h in wrong place.
- Add Source URL, see https://en.opensuse.org/SourceUrls
- remove suse_update_config
- add explicit buildrequire on groff for man pages
- Fix build with new automake
- Only require lua51-devel on openSUSE_12.2 or later
- update to 1.4.7
* check in /usr/lib64 for tclConfig.sh too
* remove perl 5.004 compatibility hack and make RRDs compile with newer
perls.
* added support for rrdgraph to use the yotta, zetta, zepto, yocto prefixes.
* configure option to disable building rrd_graph: --disable-rrd_graph
With support from Ulf Zimmermann (OpenLane)
* fixed segfault in rrdtool (xport, fetch, graph) when handling
error conditions. -- James Brown
* fix uninitialized variable in rrd_graph (#322)
* improved data reduction algorithm in graph: after fetching, data must be
reduced to at least chart resolution, else some data will not get plotted.
fix for #298
* plug memory leak in lua bindings #301
* improve cross compiling -- Michael Olbrich
- require lua51-devel
- Fix two segfaults in the Tcl binding.
- Move the Tcl bindings into a separate subpackage.
- Remove the superfluous call to (bnc#693085).
- Adopt the current practice of packaging Tcl extensions.
- build lua bindings (new subpackage lua-rrdtool)
- update to 1.4.5:
* rrdcached: print \n at the end of log messages when running rrdcached in the foreground
* rrdcached: Let the -s, -m and -P options affect the default socket as well
* rrdgraph: font related memory leaks fixed #208
* rrdgraph-libdbi: print error message instead of dumping core on sql problem
* rrdgraph-libdbi: properly allocated response buffer
* rrdtool: in remote mode, make argument count for remote commmands strict
* rrdgraph: fix problems with second %s in right-axis format
* everywhere: fix locale handling. locales were not properly reset after calling set locale
* rrdgraph: fix use of %s in strftime (G)PRINT commands #277
* ruby: fix bindings to be compatible with curent ruby implementations #279
* rrdcached: Ensure that response_read() always calls fflush() or fclose() #278
* rrd_client: free addrinfo list after use ...
* rrdupdate: follow the normal code path for exiting rrd_update if there is a problem with rrdc, plugging a memory leak on the way
* rrdgraph: make sure we do not try to draw points all that far outside the drawing area since some versions of cairo seem to go unstable when this happens
* rrdgraph: fix an endles loop near 2^31 timestamp (32bit platform problem)
* rrdcached: fix permissions of the default socket
* rrdgraph-libdbi: Fix sigma calculation
* rrdcreate: better checks for RRA arguments
* rrdgraph: if there is no right label, do not reserve any space for it
* Enhancements:
+ rrdcached: add hosts_access support
+ rrdfetch/graph: introduce "epoch" as a new base time reference, meaning timestamp 0: you can now write epoch+11111111s or epoch+19711205s
* update in-tree cgilib to 0.7:
+ allow cookies without regular CGI POST/GET variables
+ support for ';' as delimiter
+ support for multipart/form-data
+ support for file upload
+ decode variable names and data
- fix perl file list on factory
- update to 1.4.4
* legal: Relicense the RRDCacheD client interface under the MIT
license
* legal: Updted FLOSS Exception for latest PHP license
* rrd_cached: better help output
* bugfixes
- remove last patch, fixed in upstream
- disable calling autoreconf (needs too new gettext)
- fixed bnc#594981 (-double.diff)
- update to 1.4.3
* rrdcached: Log to stderr (in addition to syslog) when running
in foreground.
* rrdcached: Added -m command line option.
* rrdcached: Added -s option so set group permissions of the
UNIX domain socket.
* rrd_create: added --no-overwrite option. It prevents rrdtool
from clobbering existing rrd files.
* ruby bindings: rb_rrd_xport function
* use locale settings and _NL_TIME_WEEK_1STDAY to determine
the first day of the week. Works on Linux at least
* rrd_graph: \u to backup one line for special legend placement
tricks
* rrd_update: new (better) checker for incoming COUNTER
or DERIVED data.
- update to 1.4.2
* RRD Caching Daemon (rrdcached)
See rrdcached documentation.
* The output of rrdtool dump has been adjusted to be simpler to parse by
existing xml parsers.
* RRD Graphing functions (rrdtool graph)
+ VDEF PERCENTNAN (a PRECENT that ignores NAN)
+ CDEF PREDICT and PREDICTSIGMA functions for on-the-fly
data prediction without the need to modify existing rrd files as it is
required for HoltWinters.
+ LibDBI integration provides a path to read data directly of a supported
SQL database into rrdtool graph. See rrdgraph_libdbi documentation.
* quite some more - see NEWS and CHANGES
- use --disable-static instead of removing static libraries
- update to 1.3.7
* many small updates to the POD documents.
* improved win32 source
* OSX compilation fixes
* rrd_fetch: fix memory leak
* rrd_cgi: fix segfault in error reporting routine
* rrd_graph: fix TICK for negative numbers
* rrd_graph: fix image size reporting for LP64BE architectures
* rrd_resize: fix GROW for mmap (it was totally broken)
- bnc#467362: use --with-rrd-default-font="monospace" instead of
--with-rrd-default-font=/usr/share/fonts/truetype/DejaVuSansMono.ttf,
rrdtools uses fontconfig now, not only freetype and the latter
is not a correct font name for fontconfig.
- update to 1.3.6
* bugfixes, documentation improvements
- update to 1.3.4
* detect short/truncated files on open (rrdtool used to crash
later on some platforms)
* stop rrd_resize from altering the original file (mmap side
effect)
* fix VDEF and SHIFT use. Now it returns correct data and does
not crash anymore.
* fix rrd_xport when used on datasources with different
resolutions. This has been broken from day 1 of this tools
exsitance.
* fixed default prefix for ruby install
* added rpath for perl bindings on bsd
* do not [fm]advise past the end of the file since this
causes crashes on sparc.
- update to 1.3.2
* fix for data corruption bug:
http://oss.oetiker.ch/rrdtool-trac/ticket/178
- remove la files and static libs (to fix depending packages)
- Fix configure script and use of libtool.
- update to 1.3.0
* Multiplicative Holt-Winters Forecasting
* MMAP IO
* Graphing with Cairo/Pango
* New graphv Interface
* many more changes - major release
- update to 1.2.27
* bindings/ruby/main.c: be more helpful when raising rb_eTypeError
in string_arr string_arr_new(VALUE rb_strings).
* src/rrd_update.c: dropping cache after update does not help (in
this implementation)
* bindings/Makefile.am, bindings/python/setup.py: yet another
attempt to make the python build environment REALY cool
* bindings/Makefile.am, bindings/python/setup.py: make sure the
python extension gets the final resting place of the rrdlibrary
compiled in ...
* src/rrd_graph.c: don't use round since it is c99 ... use
floor(x+0.5) for positive numbers instead.
* src/rrd_graph.c: added some more rounding for int to float
comparisons
* src/rrd_graph.c: Testing an double and an integer for equality is
bound to produce odd results on times. Don't do it! --
* bugfixes, documentation fixes
- remove python patch (fixed in upstream)
- make dejavu font requirement unversioned again, as
there was no released openSUSE distro with the wrongly
named font
- dejavu font was renamed back, adjust
- fix default font after dejavu font update
- add dejavu to the package requires
- build parallel
- apply python requires only to python-rrdtool subpackage
- split off python and -devel package to reduce
size and make the python dependency optional
(needed for 1 CD installer)
- added ldconfig to post scripts
- fix rpath in python module
- update to 2.1.23
* many bugfixes (mostly python)
- remove stderr.diff and buffer.diff (fixed in upstream)
- update to 1.2.18
* many bugfixes
* DoS in rrd_graph.c fixed [#231212]
- fix overflow in rrd_tool.c
- fix librrd_th.la
- remove packaged fonts and use system fonts instead
- fix last patch
- fix memory allocation bug when graphing logarithmic data
with upstream patch [#231212]
- use %py_requires [#207920]
- store value returned with PyTuple_Size in
Py_ssize_t instead of int
- update to 1.2.15
* vnames can be up to MAX_VNAME_LEN long
* bugfixes, documentation fixes
- converted neededforbuild to BuildRequires
- update to 1.2.12
- Fixed installation of the Tcl bindings.
- fix build - return proper value from strerror_r
- fix build
- moved pkgIndex.tcl to /usr/share/tcl/tclrrd
- update to 1.2.11
- update to 1.2.10
- drop no longer neccessary rrdtool-tcl.patch
- update to 1.2.8
- reneabled tcl (copilation fixed by rrdtool-tcl.patch)
- added python bindings
- update to 1.2.6
- dropped tcl for now, it's somewhat broken
- include correct config.h
- update to 1.0.49
- update to 1.0.48
- do not use its own (and old) libpng and libz
- update to version 1.0.46
- build as user
- require the perl version we build with
- removed %{vendor_perl}/auto from filelist
- update to version 1.0.45
- fixed file list
- require perl
- install perl files to vendor location
- fix build with current libtool
- update to 1.0.40
- run full autoreconf and extend configure.in for that
- use sitearch macro
- update to version 1.0.39
- fix build on lib64 platforms
- omitted prefix i386-suse-linux from names of binaries
and example scripts (bug #16105)
- added rrdtool-1.0.33-zlib-zfree.dif against duplicate free() in
zlib
- fix for new autoconf (add libtoolize --force)
- updated to version 1.0.33
- fixed call of suse_update_config
- package created
OBS-URL: https://build.opensuse.org/request/show/561648
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/rrdtool?expand=0&rev=81
2018-01-04 15:13:31 +01:00
|
|
|
%{python3_sitearch}/*
|
2018-02-08 09:43:54 +01:00
|
|
|
%else
|
|
|
|
%{python_sitearch}/*
|
|
|
|
%endif
|
2015-11-19 10:14:21 +01:00
|
|
|
%endif
|
2013-07-11 09:38:09 +02:00
|
|
|
|
2015-11-19 10:14:21 +01:00
|
|
|
%if %{with ruby}
|
|
|
|
%files -n ruby-%{name}
|
|
|
|
%doc bindings/ruby/README
|
2013-10-03 16:16:18 +02:00
|
|
|
%{rb_sitearchdir}/RRD.so
|
2015-11-19 10:14:21 +01:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with tcl}
|
|
|
|
%files -n tcl-%{name}
|
|
|
|
%doc bindings/tcl/README
|
|
|
|
%{tcl_archdir}/*
|
|
|
|
%{_libdir}/tclrrd*.so
|
|
|
|
%endif
|
2013-10-03 16:16:18 +02:00
|
|
|
|
|
|
|
%files cached
|
2015-11-19 10:14:21 +01:00
|
|
|
%{_mandir}/man1/rrdcached*
|
2013-10-03 16:16:18 +02:00
|
|
|
%{_bindir}/rrdcached
|
2015-11-19 10:14:21 +01:00
|
|
|
%{_sbindir}/rcrrdcached
|
2017-11-23 16:03:07 +01:00
|
|
|
%{_fillupdir}/sysconfig.rrdcached
|
2013-10-03 16:16:18 +02:00
|
|
|
%{_datadir}/rrdcached
|
|
|
|
%{_datadir}/rrdcached/rrdcached-systemd-pre
|
|
|
|
%{_unitdir}/rrdcached.service
|
2015-11-19 10:14:21 +01:00
|
|
|
%{_unitdir}/rrdcached.socket
|
2015-08-03 13:34:23 +02:00
|
|
|
%if 0%{?suse_version} <= 1320
|
2015-11-19 10:14:21 +01:00
|
|
|
%dir %{_libexecdir}/tmpfiles.d
|
2015-08-03 13:34:23 +02:00
|
|
|
%endif
|
2014-02-09 20:33:54 +01:00
|
|
|
%{_tmpfilesdir}/rrdcached.conf
|
2015-11-19 10:14:21 +01:00
|
|
|
%ghost /run/rrdcached
|
2013-07-11 09:38:09 +02:00
|
|
|
|
2007-05-06 17:18:04 +02:00
|
|
|
%changelog
|