Accepting request 508000 from home:scarabeus_iv:branches:devel:languages:python

- 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

OBS-URL: https://build.opensuse.org/request/show/508000
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/rrdtool?expand=0&rev=75
This commit is contained in:
Thomas Bechtold 2017-07-05 05:24:33 +00:00 committed by Git OBS Bridge
parent 58ee84e770
commit df269f9318
4 changed files with 53 additions and 49 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:cd948e89cd2d8825fab4a6fb0323f810948d934af7d92c9ee8b5e9e1350e52d7
size 2186538

3
rrdtool-1.7.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f97d348935b91780f2cd80399719e20c0b91f0a23537c0a85f9ff306d4c5526b
size 2849994

View File

@ -1,3 +1,19 @@
-------------------------------------------------------------------
Mon Jul 3 11:22:55 UTC 2017 - tchvatal@suse.com
- 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
-------------------------------------------------------------------
Mon Jul 3 11:14:05 UTC 2017 - tchvatal@suse.com
- 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
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Dec 6 12:59:16 UTC 2016 - jengelh@inai.de Tue Dec 6 12:59:16 UTC 2016 - jengelh@inai.de

View File

@ -1,7 +1,7 @@
# #
# spec file for package rrdtool # spec file for package rrdtool
# #
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -20,16 +20,14 @@
%bcond_without python %bcond_without python
%bcond_without ruby %bcond_without ruby
%bcond_without tcl %bcond_without tcl
%bcond_without libdbi %bcond_without libdbi
%bcond_without libwrap %bcond_without libwrap
%bcond_with rados %bcond_with rados
Name: rrdtool Name: rrdtool
Version: 1.6.0 Version: 1.7.0
Release: 0 Release: 0
Summary: Round Robin Database Tool to store and display time-series data Summary: Round Robin Database Tool to store and display time-series data
License: GPL-2.0+ and LGPL-2.0+ License: GPL-2.0+ AND LGPL-2.0+
Group: Productivity/Scientific/Math Group: Productivity/Scientific/Math
Url: http://oss.oetiker.ch/rrdtool/ Url: http://oss.oetiker.ch/rrdtool/
Source0: http://oss.oetiker.ch/%{name}/pub/%{name}-%{version}.tar.gz Source0: http://oss.oetiker.ch/%{name}/pub/%{name}-%{version}.tar.gz
@ -41,8 +39,8 @@ Source99: %{name}.changes
Patch3: rrdtool-tclsegfault.patch Patch3: rrdtool-tclsegfault.patch
# PATCH-FIX-UPSTREAM -- bnc#793636 # PATCH-FIX-UPSTREAM -- bnc#793636
Patch12: rrdtool-zero_vs_nothing.patch Patch12: rrdtool-zero_vs_nothing.patch
# Needed for tests
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: bc
BuildRequires: cairo-devel >= 1.2 BuildRequires: cairo-devel >= 1.2
BuildRequires: freetype2-devel BuildRequires: freetype2-devel
BuildRequires: gcc-c++ BuildRequires: gcc-c++
@ -57,7 +55,20 @@ BuildRequires: openssl-devel
BuildRequires: pango-devel >= 1.14 BuildRequires: pango-devel >= 1.14
BuildRequires: systemd-rpm-macros BuildRequires: systemd-rpm-macros
BuildRequires: zlib-devel BuildRequires: zlib-devel
Requires: dejavu
%if %{with python}
BuildRequires: python-devel
BuildRequires: python-setuptools
%endif
%if %{with lua}
BuildRequires: lua-devel
%endif
%if %{with ruby}
BuildRequires: ruby-devel
%endif
%if %{with tcl}
BuildRequires: tcl-devel >= 8.0
%endif
%if %{with libdbi} %if %{with libdbi}
BuildRequires: libdbi-devel BuildRequires: libdbi-devel
%endif %endif
@ -68,8 +79,6 @@ BuildRequires: tcpd-devel
BuildRequires: librados2-devel BuildRequires: librados2-devel
%endif %endif
Requires: dejavu
%description %description
RRD stands for Round Robin Database. RRD is a system to store and RRD stands for Round Robin Database. RRD is a system to store and
display time-series data (i.e. network bandwidth, machine-room temperature, display time-series data (i.e. network bandwidth, machine-room temperature,
@ -79,7 +88,6 @@ 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 scripts (from shell or Perl) or via frontends that poll network devices and
put a friendly user interface on it. put a friendly user interface on it.
%package -n librrd8 %package -n librrd8
Summary: Round Robin Database tool library Summary: Round Robin Database tool library
Group: System/Libraries Group: System/Libraries
@ -99,17 +107,15 @@ display time-series data (i.e. network bandwidth, machine-room temperature,
server load average). This package allow you to build programs making server load average). This package allow you to build programs making
use of the library. use of the library.
%package doc %package doc
Summary: Documentation for rrdtool Summary: Documentation for rrdtool
Group: Documentation Group: Documentation/Howto
%description doc %description doc
RRD is the Acronym for Round Robin Database. RRD is a system to store and 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, display time-series data (i.e. network bandwidth, machine-room temperature,
server load average). This package contains documentation on using RRD. server load average). This package contains documentation on using RRD.
%package -n perl-%{name} %package -n perl-%{name}
Summary: Perl bindings for RRDtool Summary: Perl bindings for RRDtool
Group: Development/Languages/Perl Group: Development/Languages/Perl
@ -123,12 +129,10 @@ server load average). This package contains documentation on using RRD.
This package contains the Perl bindings. This package contains the Perl bindings.
%if %{with lua} %if %{with lua}
%package -n lua-%{name} %package -n lua-%{name}
Summary: Lua bindings for RRDtool Summary: Lua bindings for RRDtool
Group: Development/Languages/Other Group: Development/Languages/Other
BuildRequires: lua51-devel
Requires: %{name} = %{version}-%{release} Requires: %{name} = %{version}-%{release}
%description -n lua-%{name} %description -n lua-%{name}
@ -143,9 +147,8 @@ This package contains the Lua bindings.
%package -n python-%{name} %package -n python-%{name}
Summary: Python bindings for RRDtool Summary: Python bindings for RRDtool
Group: Development/Languages/Python Group: Development/Languages/Python
BuildRequires: python-devel >= 2.3
Requires: %{name} = %{version}-%{release} Requires: %{name} = %{version}-%{release}
Requires: python >= %{python_version} Requires: python
%description -n python-%{name} %description -n python-%{name}
Python RRDtool bindings. Python RRDtool bindings.
@ -155,7 +158,6 @@ Python RRDtool bindings.
%package -n ruby-%{name} %package -n ruby-%{name}
Summary: Ruby bindings for RRDtool Summary: Ruby bindings for RRDtool
Group: Development/Languages/Ruby Group: Development/Languages/Ruby
BuildRequires: ruby-devel
Requires: %{name} = %{version}-%{release} Requires: %{name} = %{version}-%{release}
Requires: ruby(abi) >= %{rb_ver} Requires: ruby(abi) >= %{rb_ver}
@ -171,7 +173,6 @@ This package contains the Ruby bindings.
%package -n tcl-%{name} %package -n tcl-%{name}
Summary: Tcl bindings for RRDtool Summary: Tcl bindings for RRDtool
Group: Development/Languages/Tcl Group: Development/Languages/Tcl
BuildRequires: tcl-devel >= 8.0
Requires: %{name} = %{version}-%{release} Requires: %{name} = %{version}-%{release}
Requires: tcl >= 8.0 Requires: tcl >= 8.0
@ -189,9 +190,8 @@ This package contains the Tcl bindings.
Summary: Data caching daemon for RRDtool Summary: Data caching daemon for RRDtool
Group: Productivity/Scientific/Math Group: Productivity/Scientific/Math
Requires: %{name} = %{version}-%{release} Requires: %{name} = %{version}-%{release}
Requires(pre): %fillup_prereq Requires(post): %fillup_prereq
Requires(pre): /usr/sbin/useradd Requires(pre): shadow
Requires(pre): /usr/sbin/groupadd
%description cached %description cached
rrdcached is a daemon that receives updates to existing RRD files, rrdcached is a daemon that receives updates to existing RRD files,
@ -200,7 +200,6 @@ 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 big setups in mind which usually runs into I/O related problems. This
daemon was written to alleviate these problems. daemon was written to alleviate these problems.
%prep %prep
%setup -q %setup -q
%patch3 %patch3
@ -213,7 +212,11 @@ TIME="\"$(date -d "${modified}" "+%%R")\""
find . -name '*.c' -exec sed -i "s/__DATE__/${DATE}/g;s/__TIME__/${TIME}/g" "{}" "+" find . -name '*.c' -exec sed -i "s/__DATE__/${DATE}/g;s/__TIME__/${TIME}/g" "{}" "+"
%build %build
# --disable-nls: there is only partial hungarian translation, does not make %{?_smp_mflags}
# much sense to ship package for it
%configure \ %configure \
--disable-nls \
--disable-silent-rules \
--enable-shared \ --enable-shared \
--disable-static\ --disable-static\
--disable-rpath \ --disable-rpath \
@ -254,7 +257,7 @@ make %{?_smp_mflags}
%install %install
make \ make \
DESTDIR="%{buildroot}" \ DESTDIR=%{buildroot} \
idocdir=%{_docdir}/%{name}/txt/ \ idocdir=%{_docdir}/%{name}/txt/ \
ihtmldir=%{_docdir}/%{name}/html/ \ ihtmldir=%{_docdir}/%{name}/html/ \
examplesdir=%{_docdir}/%{name}/examples/ \ examplesdir=%{_docdir}/%{name}/examples/ \
@ -268,19 +271,15 @@ make \
%if %{with lua} %if %{with lua}
# install ruby bindings manually # install ruby bindings manually
mv %{buildroot}/usr/local/lib/lua %{buildroot}%{_libdir}/lua mv %{buildroot}%{_prefix}/local/lib/lua %{buildroot}%{_libdir}/lua
%endif %endif
%if %{with ruby} %if %{with ruby}
# install ruby bindings manually
%if 0%{?suse_version} == 1310
rm -r %{buildroot}%{rb_sitearchdir}/*
%endif
install -D bindings/ruby/RRD.so %{buildroot}%{rb_sitearchdir}/RRD.so install -D bindings/ruby/RRD.so %{buildroot}%{rb_sitearchdir}/RRD.so
%endif %endif
# remove cruft # remove cruft
find %{buildroot}%{_libdir} -type f -name "*.la" -delete -print find %{buildroot} -type f -name "*.la" -delete -print
# documentation # documentation
rm %{buildroot}%{_docdir}/%{name}/txt/*.pod rm %{buildroot}%{_docdir}/%{name}/txt/*.pod
@ -299,6 +298,9 @@ chmod 644 %{buildroot}%{_tmpfilesdir}/rrdcached.conf
mkdir -p %{buildroot}%{_sbindir} mkdir -p %{buildroot}%{_sbindir}
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rcrrdcached ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rcrrdcached
%check
make %{?_smp_mflags} check
%pre cached %pre cached
getent group %{rrdcached_group} >/dev/null || groupadd %{rrdcached_group} 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} getent passwd %{rrdcached_user} >/dev/null || useradd -s /sbin/nologin -g %{rrdcached_group} -c %{rrdcached_user} -d %{_localstatedir}/lib %{rrdcached_user}
@ -307,11 +309,7 @@ getent passwd %{rrdcached_user} >/dev/null || useradd -s /sbin/nologin -g %{rrdc
%post cached %post cached
%fillup_only rrdcached %fillup_only rrdcached
%service_add_post rrdcached.servicet rrdcached.socket %service_add_post rrdcached.servicet rrdcached.socket
%if 0%{?suse_version} <= 1320
systemd-tmpfiles --create %{_tmpfilesdir}/rddcached.conf >/dev/null 2>&1 || :
%else
%tmpfiles_create %{_tmpfilesdir}/rddcached.conf %tmpfiles_create %{_tmpfilesdir}/rddcached.conf
%endif
%preun cached %preun cached
%service_del_preun rrdcached.service rrdcached.socket %service_del_preun rrdcached.service rrdcached.socket
@ -323,7 +321,6 @@ systemd-tmpfiles --create %{_tmpfilesdir}/rddcached.conf >/dev/null 2>&1 || :
%postun -n librrd8 -p /sbin/ldconfig %postun -n librrd8 -p /sbin/ldconfig
%files %files
%defattr(-,root,root,-)
%exclude %{_docdir}/%{name} %exclude %{_docdir}/%{name}
%{_mandir}/*/* %{_mandir}/*/*
%exclude %{_mandir}/man1/rrdcached* %exclude %{_mandir}/man1/rrdcached*
@ -332,23 +329,19 @@ systemd-tmpfiles --create %{_tmpfilesdir}/rddcached.conf >/dev/null 2>&1 || :
%exclude %{_bindir}/rrdcached %exclude %{_bindir}/rrdcached
%files -n librrd8 %files -n librrd8
%defattr(-,root,root)
%{_libdir}/librrd.so.* %{_libdir}/librrd.so.*
%files devel %files devel
%defattr(-,root,root,-)
%{_includedir}/*.h %{_includedir}/*.h
%{_libdir}/librrd.so %{_libdir}/librrd.so
%{_libdir}/pkgconfig/librrd.pc %{_libdir}/pkgconfig/librrd.pc
%files doc %files doc
%defattr(-,root,root,-)
%doc CONTRIBUTORS COPYRIGHT NEWS THREADS TODO %doc CONTRIBUTORS COPYRIGHT NEWS THREADS TODO
%doc %{_docdir}/rrdtool %doc %{_docdir}/rrdtool
%exclude %{_docdir}/rrdtool/html/RRD*.html %exclude %{_docdir}/rrdtool/html/RRD*.html
%files -n perl-%{name} %files -n perl-%{name}
%defattr(-,root,root,-)
%doc %{_docdir}/rrdtool/html/RRD*.html %doc %{_docdir}/rrdtool/html/RRD*.html
%{_mandir}/man3/RRD* %{_mandir}/man3/RRD*
%{perl_vendorlib}/RRDp.pm %{perl_vendorlib}/RRDp.pm
@ -357,7 +350,6 @@ systemd-tmpfiles --create %{_tmpfilesdir}/rddcached.conf >/dev/null 2>&1 || :
%if %{with lua} %if %{with lua}
%files -n lua-%{name} %files -n lua-%{name}
%defattr(-,root,root,-)
%doc bindings/lua/README %doc bindings/lua/README
%dir %{_libdir}/lua %dir %{_libdir}/lua
%dir %{_libdir}/lua/* %dir %{_libdir}/lua/*
@ -367,28 +359,24 @@ systemd-tmpfiles --create %{_tmpfilesdir}/rddcached.conf >/dev/null 2>&1 || :
%if %{with python} %if %{with python}
%files -n python-%{name} %files -n python-%{name}
%defattr(-,root,root,-) %doc bindings/python/COPYING bindings/python/README.md
%doc bindings/python/AUTHORS bindings/python/COPYING bindings/python/README
%{py_sitedir}/* %{py_sitedir}/*
%endif %endif
%if %{with ruby} %if %{with ruby}
%files -n ruby-%{name} %files -n ruby-%{name}
%defattr(-,root,root,-)
%doc bindings/ruby/README %doc bindings/ruby/README
%{rb_sitearchdir}/RRD.so %{rb_sitearchdir}/RRD.so
%endif %endif
%if %{with tcl} %if %{with tcl}
%files -n tcl-%{name} %files -n tcl-%{name}
%defattr(-,root,root,-)
%doc bindings/tcl/README %doc bindings/tcl/README
%{tcl_archdir}/* %{tcl_archdir}/*
%{_libdir}/tclrrd*.so %{_libdir}/tclrrd*.so
%endif %endif
%files cached %files cached
%defattr(-,root,root,-)
%{_mandir}/man1/rrdcached* %{_mandir}/man1/rrdcached*
%{_bindir}/rrdcached %{_bindir}/rrdcached
%{_sbindir}/rcrrdcached %{_sbindir}/rcrrdcached