commit 1b00c2ae3d03d8e6a4300f61e6b0c89c92d195c9 Author: Marcin Krol <h...@tld-linux.org> Date: Tue Apr 5 15:34:12 2022 +0000
- force python 3.x libxcb-python3.patch | 12 ++++++++++++ libxcb.spec | 8 +++++--- 2 files changed, 17 insertions(+), 3 deletions(-) --- diff --git a/libxcb.spec b/libxcb.spec index bb78dc8..51ffac6 100644 --- a/libxcb.spec +++ b/libxcb.spec @@ -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 diff --git a/libxcb-python3.patch b/libxcb-python3.patch new file mode 100644 index 0000000..ddf4c04 --- /dev/null +++ b/libxcb-python3.patch @@ -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) ================================================================ ---- gitweb: http://git.pld-linux.org/gitweb.cgi/packages/libxcb.git/commitdiff/1b00c2ae3d03d8e6a4300f61e6b0c89c92d195c9 _______________________________________________ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit