]> git.pld-linux.org Git - packages/libxcb.git/commitdiff
- force python 3.x
authorMarcin Krol <hawk@tld-linux.org>
Tue, 5 Apr 2022 15:34:12 +0000 (15:34 +0000)
committerMarcin Krol <hawk@tld-linux.org>
Tue, 5 Apr 2022 15:34:12 +0000 (15:34 +0000)
libxcb-python3.patch [new file with mode: 0644]
libxcb.spec

diff --git a/libxcb-python3.patch b/libxcb-python3.patch
new file mode 100644 (file)
index 0000000..ddf4c04
--- /dev/null
@@ -0,0 +1,12 @@
+diff -ur libxcb-1.14.orig/configure.ac libxcb-1.14/configure.ac
+--- libxcb-1.14.orig/configure.ac      2020-02-22 20:50:14.000000000 +0000
++++ libxcb-1.14/configure.ac   2022-04-05 12:56:51.059604090 +0000
+@@ -12,7 +12,7 @@
+ # Initialize Automake
+ AM_INIT_AUTOMAKE([foreign dist-xz])
+-AM_PATH_PYTHON([2.6])
++AM_PATH_PYTHON([3])
+ # Set common system defines for POSIX extensions, such as _GNU_SOURCE
+ # Must be called before any macros that run the compiler (like AC_PROG_LIBTOOL)
index bb78dc81886a83190b418b558960499e0f626e06..51ffac6284adeecdae0d351c9f13c3d43e60c1e4 100644 (file)
@@ -7,12 +7,13 @@ Summary:      X protocol C-language Binding library
 Summary(pl.UTF-8):     XCB - biblioteka dowiązań języka C do protokołu X
 Name:          libxcb
 Version:       1.14
-Release:       1
+Release:       2
 License:       MIT
 Group:         Libraries
 #Source0:      https://xcb.freedesktop.org/dist/%{name}-%{version}.tar.bz2
 Source0:       https://xorg.freedesktop.org/releases/individual/lib/%{name}-%{version}.tar.xz
 # Source0-md5: f90b6e4541e9518b4c373b734f475ae7
+Patch0:                %{name}-python3.patch
 URL:           https://xcb.freedesktop.org/
 BuildRequires: autoconf >= 2.60
 BuildRequires: automake
@@ -22,8 +23,8 @@ BuildRequires:        doxygen
 BuildRequires: libtool >= 2:2.2
 BuildRequires: libxslt-progs
 BuildRequires: pkgconfig
-BuildRequires: python >= 1:2.6
-BuildRequires: python-modules >= 1:2.6
+BuildRequires: python3
+BuildRequires: python3-modules
 BuildRequires: tar >= 1:1.22
 BuildRequires: xcb-proto >= 1.14
 BuildRequires: xorg-lib-libXau-devel >= 0.99.2
@@ -117,6 +118,7 @@ Dokumentacja API biblioteki XCB.
 
 %prep
 %setup -q
+%patch0 -p1
 %if %{without graphviz}
 %{__sed} -i -e 's/HAVE_DOT               = YES/HAVE_DOT               = NO/g' doc/xcb.doxygen.in
 %endif
This page took 0.177147 seconds and 4 git commands to generate.