Hello community, here is the log from the commit of package xcb-proto for openSUSE:Factory checked in at 2017-12-13 11:56:24 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/xcb-proto (Old) and /work/SRC/openSUSE:Factory/.xcb-proto.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "xcb-proto" Wed Dec 13 11:56:24 2017 rev:9 rq:555546 version:7.6_1.12 Changes: -------- --- /work/SRC/openSUSE:Factory/xcb-proto/xcb-proto.changes 2017-11-19 11:10:35.597132961 +0100 +++ /work/SRC/openSUSE:Factory/.xcb-proto.new/xcb-proto.changes 2017-12-13 11:56:26.386264713 +0100 @@ -1,0 +2,5 @@ +Tue Dec 5 12:37:37 UTC 2017 - m...@suse.com + +- Python2 is gone since suse_version >= 1500. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ xcb-proto.spec ++++++ --- /var/tmp/diff_new_pack.UI8m5i/_old 2017-12-13 11:56:27.074231502 +0100 +++ /var/tmp/diff_new_pack.UI8m5i/_new 2017-12-13 11:56:27.078231309 +0100 @@ -16,6 +16,12 @@ # +%if %suse_version >= 1500 +%define have_python2 0 +%else +%define have_python2 1 +%endif + %define dirsuffix 1.12 Name: xcb-proto Version: 7.6_%{dirsuffix} @@ -31,7 +37,10 @@ BuildRequires: automake BuildRequires: fdupes BuildRequires: pkgconfig +BuildRequires: python-rpm-macros +%if %{have_python2} BuildRequires: python2-base +%endif BuildRequires: python3-base %description @@ -51,6 +60,7 @@ XML-XCB protocol descriptions that libxcb uses to generate the majority of its code and API. +%if %{have_python2} %package -n python2-xcb-proto-devel Summary: Python libraries mandatory for XML-XCB Development Group: Development/Libraries/X11 @@ -63,6 +73,7 @@ Language-independent Python libraries that used to parse an XML description and create objects used by Python code generators in individual language bindings. +%endif %package -n python3-xcb-proto-devel Summary: Python libraries mandatory for XML-XCB Development @@ -80,10 +91,13 @@ autoreconf -fiv # In order to build both python2 and python3 version we need to run # configure and install twice + +%if %{have_python2} export PYTHON="python2" %configure make %{?_smp_mflags} %make_install +%endif export PYTHON="python3" %configure @@ -98,9 +112,11 @@ %doc %{_datadir}/xcb/* %{_libdir}/pkgconfig/*.pc +%if %{have_python2} %files -n python2-xcb-proto-devel %doc COPYING %{python_sitelib}/xcbgen/ +%endif %files -n python3-xcb-proto-devel %doc COPYING