Hello community, here is the log from the commit of package rrdtool for openSUSE:Factory checked in at 2018-02-12 10:09:21 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rrdtool (Old) and /work/SRC/openSUSE:Factory/.rrdtool.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rrdtool" Mon Feb 12 10:09:21 2018 rev:68 rq:574121 version:1.7.0 Changes: -------- --- /work/SRC/openSUSE:Factory/rrdtool/rrdtool.changes 2018-01-16 09:35:19.301484366 +0100 +++ /work/SRC/openSUSE:Factory/.rrdtool.new/rrdtool.changes 2018-02-12 10:09:24.654055148 +0100 @@ -1,0 +2,5 @@ +Sun Feb 4 08:56:33 UTC 2018 - o...@botter.cc + +- fix building bindings for Python 2 for suse_version < 1500 + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rrdtool.spec ++++++ --- /var/tmp/diff_new_pack.FL8NzX/_old 2018-02-12 10:09:26.313995325 +0100 +++ /var/tmp/diff_new_pack.FL8NzX/_new 2018-02-12 10:09:26.313995325 +0100 @@ -28,6 +28,10 @@ %bcond_without libdbi %bcond_without libwrap %bcond_with rados +%define python python +%if 0%{?suse_version} >= 1500 + %define python python3 +%endif Name: rrdtool Version: 1.7.0 Release: 0 @@ -44,7 +48,9 @@ Patch3: rrdtool-tclsegfault.patch # PATCH-FIX-UPSTREAM -- bnc#793636 Patch12: rrdtool-zero_vs_nothing.patch +%if 0%{?suse_version} >= 1500 Patch13: python3.patch +%endif # Needed for tests BuildRequires: bc BuildRequires: cairo-devel >= 1.2 @@ -63,8 +69,8 @@ BuildRequires: zlib-devel Requires: dejavu %if %{with python} -BuildRequires: python3-devel -BuildRequires: python3-setuptools +BuildRequires: %{python}-devel +BuildRequires: %{python}-setuptools %endif %if %{with lua} BuildRequires: lua-devel @@ -150,13 +156,13 @@ %endif %if %{with python} -%package -n python3-%{name} +%package -n %{python}-%{name} Summary: Python bindings for RRDtool Group: Development/Languages/Python Requires: %{name} = %{version}-%{release} -Requires: python3 +Requires: %{python} -%description -n python3-%{name} +%description -n %{python}-%{name} Python RRDtool bindings. %endif @@ -210,7 +216,9 @@ %setup -q %patch3 %patch12 -p1 +%if 0%{?suse_version} >= 1500 %patch13 -p1 +%endif # rrd_tool/rrd_cgi: use the date of the last change modified="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{_sourcedir}/%{name}.changes")" @@ -368,9 +376,13 @@ %endif %if %{with python} -%files -n python3-%{name} +%files -n %{python}-%{name} %doc bindings/python/COPYING bindings/python/README.md +%if 0%{?suse_version} >= 1500 %{python3_sitearch}/* +%else +%{python_sitearch}/* +%endif %endif %if %{with ruby}