Accepting request 552427 from home:michalsrb:branches:X11:XOrg
- Python2 is gone since suse_version >= 1500. OBS-URL: https://build.opensuse.org/request/show/552427 OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/xcb-proto?expand=0&rev=21
This commit is contained in:
parent
d58dce0e31
commit
2ac0eb5a8b
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Dec 5 12:37:37 UTC 2017 - msrb@suse.com
|
||||||
|
|
||||||
|
- Python2 is gone since suse_version >= 1500.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Nov 16 10:09:19 UTC 2017 - dimstar@opensuse.org
|
Thu Nov 16 10:09:19 UTC 2017 - dimstar@opensuse.org
|
||||||
|
|
||||||
|
@ -16,6 +16,12 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%if %suse_version >= 1500
|
||||||
|
%define have_python2 0
|
||||||
|
%else
|
||||||
|
%define have_python2 1
|
||||||
|
%endif
|
||||||
|
|
||||||
%define dirsuffix 1.12
|
%define dirsuffix 1.12
|
||||||
Name: xcb-proto
|
Name: xcb-proto
|
||||||
Version: 7.6_%{dirsuffix}
|
Version: 7.6_%{dirsuffix}
|
||||||
@ -31,7 +37,10 @@ BuildRequires: autoconf >= 2.57
|
|||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
|
%if %{have_python2}
|
||||||
BuildRequires: python2-base
|
BuildRequires: python2-base
|
||||||
|
%endif
|
||||||
BuildRequires: python3-base
|
BuildRequires: python3-base
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -51,6 +60,7 @@ The XCB protocol headers for X11 development. xcb-proto provides the
|
|||||||
XML-XCB protocol descriptions that libxcb uses to generate the majority of
|
XML-XCB protocol descriptions that libxcb uses to generate the majority of
|
||||||
its code and API.
|
its code and API.
|
||||||
|
|
||||||
|
%if %{have_python2}
|
||||||
%package -n python2-xcb-proto-devel
|
%package -n python2-xcb-proto-devel
|
||||||
Summary: Python libraries mandatory for XML-XCB Development
|
Summary: Python libraries mandatory for XML-XCB Development
|
||||||
Group: Development/Libraries/X11
|
Group: Development/Libraries/X11
|
||||||
@ -63,6 +73,7 @@ Obsoletes: python-xcb-proto-devel <= 7.6
|
|||||||
Language-independent Python libraries that used to parse an XML description
|
Language-independent Python libraries that used to parse an XML description
|
||||||
and create objects used by Python code generators in individual language
|
and create objects used by Python code generators in individual language
|
||||||
bindings.
|
bindings.
|
||||||
|
%endif
|
||||||
|
|
||||||
%package -n python3-xcb-proto-devel
|
%package -n python3-xcb-proto-devel
|
||||||
Summary: Python libraries mandatory for XML-XCB Development
|
Summary: Python libraries mandatory for XML-XCB Development
|
||||||
@ -80,10 +91,13 @@ bindings.
|
|||||||
autoreconf -fiv
|
autoreconf -fiv
|
||||||
# In order to build both python2 and python3 version we need to run
|
# In order to build both python2 and python3 version we need to run
|
||||||
# configure and install twice
|
# configure and install twice
|
||||||
|
|
||||||
|
%if %{have_python2}
|
||||||
export PYTHON="python2"
|
export PYTHON="python2"
|
||||||
%configure
|
%configure
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
%make_install
|
%make_install
|
||||||
|
%endif
|
||||||
|
|
||||||
export PYTHON="python3"
|
export PYTHON="python3"
|
||||||
%configure
|
%configure
|
||||||
@ -98,9 +112,11 @@ make %{?_smp_mflags}
|
|||||||
%doc %{_datadir}/xcb/*
|
%doc %{_datadir}/xcb/*
|
||||||
%{_libdir}/pkgconfig/*.pc
|
%{_libdir}/pkgconfig/*.pc
|
||||||
|
|
||||||
|
%if %{have_python2}
|
||||||
%files -n python2-xcb-proto-devel
|
%files -n python2-xcb-proto-devel
|
||||||
%doc COPYING
|
%doc COPYING
|
||||||
%{python_sitelib}/xcbgen/
|
%{python_sitelib}/xcbgen/
|
||||||
|
%endif
|
||||||
|
|
||||||
%files -n python3-xcb-proto-devel
|
%files -n python3-xcb-proto-devel
|
||||||
%doc COPYING
|
%doc COPYING
|
||||||
|
Loading…
Reference in New Issue
Block a user