Hello community, here is the log from the commit of package unbound for openSUSE:Factory checked in at 2017-12-08 21:45:26 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/unbound (Old) and /work/SRC/openSUSE:Factory/.unbound.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "unbound" Fri Dec 8 21:45:26 2017 rev:21 rq:547893 version:1.6.7 Changes: -------- --- /work/SRC/openSUSE:Factory/unbound/unbound.changes 2017-11-30 12:36:32.297232178 +0100 +++ /work/SRC/openSUSE:Factory/.unbound.new/unbound.changes 2017-12-08 21:45:28.500007034 +0100 @@ -1,0 +2,5 @@ +Fri Dec 1 09:31:03 UTC 2017 - cbosdon...@suse.com + +- Use python3 instead of python2 (fate#323526) + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ unbound.spec ++++++ --- /var/tmp/diff_new_pack.mooP0l/_old 2017-12-08 21:45:29.843949224 +0100 +++ /var/tmp/diff_new_pack.mooP0l/_new 2017-12-08 21:45:29.843949224 +0100 @@ -52,7 +52,7 @@ %define piddir %{_localstatedir}/run %endif -%if %{with python} +%if 0%{?suse_version} < 1330 && %{with python} %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} %endif @@ -69,7 +69,12 @@ BuildRequires: libexpat-devel BuildRequires: libsodium-devel BuildRequires: openssl-devel +%if 0%{?suse_version} < 1330 BuildRequires: python-devel +%else +BuildRequires: python-rpm-macros +BuildRequires: python3-devel +%endif %if %{with dnstap} BuildRequires: libfstrm-devel BuildRequires: libprotobuf-c-devel >= 1.0.0 @@ -212,7 +217,11 @@ --with-conf-file=%{_sysconfdir}/%{name}/unbound.conf \ --with-pidfile=%{piddir}%{name}/%{name}.pid \ %if %{with python} - --with-pythonmodule --with-pyunbound \ +%if 0%{?suse_version} < 1330 + --with-pythonmodule --with-pyunbound\ +%else + --with-pythonmodule --with-pyunbound PYTHON=%{__python3}\ +%endif %endif --with-rootkey-file=%{_sharedstatedir}/unbound/root.key @@ -267,7 +276,11 @@ # remove static library from install (fedora packaging guidelines) rm %{buildroot}%{_libdir}/*.la %if %{with python} +%if 0%{?suse_version} < 1330 rm %{buildroot}%{python_sitearch}/*.la +%else +rm %{buildroot}%{python3_sitearch}/*.la +%endif %endif # create softlink for all functions of libunbound man pages @@ -370,7 +383,11 @@ %if %{with python} %files python %defattr(-,root,root,-) +%if 0%{?suse_version} < 1330 %{python_sitearch}/* +%else +%{python3_sitearch}/* +%endif %doc libunbound/python/examples/* %doc pythonmod/examples/* %endif