2014-04-25 12:37:18 +02:00
|
|
|
#
|
|
|
|
# spec file for package xcb-proto
|
|
|
|
#
|
2022-05-04 00:06:01 +02:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2014-04-25 12:37:18 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2020-02-24 20:23:43 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2014-04-25 12:37:18 +02:00
|
|
|
#
|
|
|
|
|
2014-08-06 05:12:31 +02:00
|
|
|
|
2022-05-04 00:06:01 +02:00
|
|
|
%define dirsuffix 1.15
|
2018-01-17 15:10:09 +01:00
|
|
|
%if 0%{?suse_version} >= 1500
|
|
|
|
%bcond_with python2
|
2017-12-09 16:03:08 +01:00
|
|
|
%else
|
2018-01-17 15:10:09 +01:00
|
|
|
%bcond_without python2
|
2017-12-09 16:03:08 +01:00
|
|
|
%endif
|
2014-04-25 12:37:18 +02:00
|
|
|
Name: xcb-proto
|
2014-04-27 18:27:51 +02:00
|
|
|
Version: 7.6_%{dirsuffix}
|
2014-08-06 05:12:31 +02:00
|
|
|
Release: 0
|
2014-09-22 08:53:04 +02:00
|
|
|
Summary: The X11 Protocol: X Protocol C Bindings
|
|
|
|
License: X11
|
|
|
|
Group: Development/Libraries/X11
|
2020-02-24 20:23:43 +01:00
|
|
|
URL: http://xorg.freedesktop.org/
|
2018-01-17 15:10:09 +01:00
|
|
|
#Git-Web: https://cgit.freedesktop.org/xcb/proto
|
2020-02-24 20:42:28 +01:00
|
|
|
Source: http://xorg.freedesktop.org/archive/individual/proto/%{name}-%{dirsuffix}.tar.xz
|
2014-09-22 08:53:04 +02:00
|
|
|
BuildRequires: autoconf >= 2.57
|
2014-04-25 12:37:18 +02:00
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: fdupes
|
2017-11-02 11:29:25 +01:00
|
|
|
BuildRequires: pkgconfig
|
2017-12-09 16:03:08 +01:00
|
|
|
BuildRequires: python-rpm-macros
|
2018-01-17 15:10:09 +01:00
|
|
|
%if %{with python2}
|
2017-11-16 11:18:32 +01:00
|
|
|
BuildRequires: python2-base
|
2018-01-17 15:10:09 +01:00
|
|
|
%else
|
2017-11-16 11:18:32 +01:00
|
|
|
BuildRequires: python3-base
|
2018-01-17 15:10:09 +01:00
|
|
|
%endif
|
2014-04-25 12:37:18 +02:00
|
|
|
|
|
|
|
%description
|
2017-11-02 11:29:25 +01:00
|
|
|
The XCB protocol headers for X11 development. xcb-proto provides the
|
|
|
|
XML-XCB protocol descriptions that libxcb uses to generate the majority of
|
|
|
|
its code and API.
|
2014-04-25 12:37:18 +02:00
|
|
|
|
2014-09-22 08:53:04 +02:00
|
|
|
%package devel
|
|
|
|
Summary: The X11 Protocol: X Protocol C Bindings
|
2014-04-25 12:37:18 +02:00
|
|
|
Group: Development/Libraries/X11
|
2014-04-27 20:54:48 +02:00
|
|
|
Provides: xorg-x11-proto-devel = 7.6
|
|
|
|
Obsoletes: xorg-x11-proto-devel <= 7.6
|
2018-01-17 15:10:09 +01:00
|
|
|
%if %{with python2}
|
|
|
|
Requires: python2-xcb-proto-devel = %{version}
|
|
|
|
%else
|
|
|
|
Requires: python3-xcb-proto-devel = %{version}
|
|
|
|
%endif
|
2014-04-25 12:37:18 +02:00
|
|
|
|
2014-09-22 08:53:04 +02:00
|
|
|
%description devel
|
2017-11-02 11:29:25 +01:00
|
|
|
The XCB protocol headers for X11 development. xcb-proto provides the
|
|
|
|
XML-XCB protocol descriptions that libxcb uses to generate the majority of
|
|
|
|
its code and API.
|
2014-04-25 12:37:18 +02:00
|
|
|
|
2017-11-02 11:29:25 +01:00
|
|
|
%package -n python2-xcb-proto-devel
|
2014-04-25 12:37:18 +02:00
|
|
|
Summary: Python libraries mandatory for XML-XCB Development
|
|
|
|
Group: Development/Libraries/X11
|
2017-11-02 11:29:25 +01:00
|
|
|
Provides: python-xcb-proto-devel = %{version}-%{release}
|
|
|
|
Obsoletes: python-xcb-proto-devel < %{version}-%{release}
|
2015-12-17 10:51:35 +01:00
|
|
|
Provides: python-xcb-proto-devel = 7.6
|
|
|
|
Obsoletes: python-xcb-proto-devel <= 7.6
|
2014-04-25 12:37:18 +02:00
|
|
|
|
2017-11-02 11:29:25 +01:00
|
|
|
%description -n python2-xcb-proto-devel
|
|
|
|
Language-independent Python libraries that used to parse an XML description
|
|
|
|
and create objects used by Python code generators in individual language
|
|
|
|
bindings.
|
|
|
|
|
|
|
|
%package -n python3-xcb-proto-devel
|
|
|
|
Summary: Python libraries mandatory for XML-XCB Development
|
|
|
|
Group: Development/Libraries/X11
|
|
|
|
|
|
|
|
%description -n python3-xcb-proto-devel
|
|
|
|
Language-independent Python libraries that used to parse an XML description
|
|
|
|
and create objects used by Python code generators in individual language
|
|
|
|
bindings.
|
2014-04-25 12:37:18 +02:00
|
|
|
|
|
|
|
%prep
|
2014-04-27 18:27:51 +02:00
|
|
|
%setup -q -n %{name}-%{dirsuffix}
|
2018-01-17 15:10:09 +01:00
|
|
|
%autopatch -p1
|
2014-04-25 12:37:18 +02:00
|
|
|
|
|
|
|
%build
|
2017-11-02 11:29:25 +01:00
|
|
|
autoreconf -fiv
|
2018-01-17 15:10:09 +01:00
|
|
|
%if %{with python2}
|
2017-11-02 11:29:25 +01:00
|
|
|
export PYTHON="python2"
|
2018-01-17 15:10:09 +01:00
|
|
|
%else
|
2017-11-02 11:29:25 +01:00
|
|
|
export PYTHON="python3"
|
2018-01-17 15:10:09 +01:00
|
|
|
%endif
|
2017-11-02 11:29:25 +01:00
|
|
|
%configure
|
|
|
|
make %{?_smp_mflags}
|
2014-04-25 12:37:18 +02:00
|
|
|
|
|
|
|
%install
|
2018-01-17 15:10:09 +01:00
|
|
|
%make_install
|
|
|
|
%fdupes %{buildroot}/%{_prefix}
|
2014-04-25 12:37:18 +02:00
|
|
|
|
2014-09-22 08:53:04 +02:00
|
|
|
%files devel
|
2017-11-02 11:29:25 +01:00
|
|
|
%dir %{_datadir}/xcb
|
|
|
|
%doc %{_datadir}/xcb/*
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
|
2018-01-17 15:10:09 +01:00
|
|
|
%if %{with python2}
|
2017-11-02 11:29:25 +01:00
|
|
|
%files -n python2-xcb-proto-devel
|
|
|
|
%doc COPYING
|
|
|
|
%{python_sitelib}/xcbgen/
|
2018-01-17 15:10:09 +01:00
|
|
|
%else
|
2022-05-04 00:06:01 +02:00
|
|
|
|
2017-11-02 11:29:25 +01:00
|
|
|
%files -n python3-xcb-proto-devel
|
2018-01-17 15:10:09 +01:00
|
|
|
%license COPYING
|
2017-11-02 11:29:25 +01:00
|
|
|
%{python3_sitelib}/xcbgen/
|
2018-01-17 15:10:09 +01:00
|
|
|
%endif
|
2014-04-25 12:37:18 +02:00
|
|
|
|
|
|
|
%changelog
|