%bcond_without python2 # CPython 2.x module
%bcond_without python3 # CPython 3.x module
-%define _enable_debug_packages 0
-
Summary: XML-XCB protocol description files
Summary(pl.UTF-8): Pliki opisu protokołu XML-XCB
Name: xcb-proto
-Version: 1.14.1
-Release: 4
+Version: 1.17.0
+Release: 1
License: MIT
Group: Development/Libraries
-#Source0: https://xcb.freedesktop.org/dist/%{name}-%{version}.tar.bz2
+#Source0: https://xcb.freedesktop.org/dist/%{name}-%{version}.tar.xz
Source0: https://xorg.freedesktop.org/releases/individual/proto/%{name}-%{version}.tar.xz
-# Source0-md5: ecd6955dab1a7b9ba9756a11b8bdb48f
+# Source0-md5: c415553d2ee1a8cea43c3234a079b53f
URL: https://xcb.freedesktop.org/
BuildRequires: autoconf >= 2.57
BuildRequires: automake >= 1:1.12.6
BuildRequires: libxml2-progs
-%{?with_python2:BuildRequires: python >= 1:2.5}
-%{?with_python3:BuildRequires: python3 >= 1:3.2}
+%if %{with python2}
+BuildRequires: python >= 1:2.5
+BuildRequires: python-modules >= 1:2.5
+%endif
+%if %{with python3}
+BuildRequires: python3 >= 1:3.2
+BuildRequires: python3-modules >= 1:3.2
+%endif
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.752
BuildRequires: tar >= 1:1.22
Requires: python3 >= 1:3.2
Requires: python3-xcbgen = %{version}-%{release}
%endif
+BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
Summary(pl.UTF-8): Moduł xcbgen dla Pythona 2
Group: Libraries/Python
Requires: python-modules >= 1:2.5
-BuildArch: noarch
%description -n python-xcbgen
Python 2 xcbgen module.
%defattr(644,root,root,755)
%doc COPYING NEWS README.md TODO doc/xml-xcb.txt
%{_datadir}/xcb
-%{_pkgconfigdir}/xcb-proto.pc
+%{_npkgconfigdir}/xcb-proto.pc
%if %{with python2}
%files -n python-xcbgen