--- /dev/null
+GetVersionInfo() is not defined.
+However, find_display_create_optional is always called with create=False.
+
+--- libXgesture-0.1.1/src/gesture.c.orig 2013-05-07 03:10:03.000000000 +0200
++++ libXgesture-0.1.1/src/gesture.c 2020-08-28 17:50:35.806416204 +0200
+@@ -106,11 +106,7 @@
+ }
+
+ if (!(dpyinfo = XextFindDisplay (gesture_info, dpy)) && create) {
+- dpyinfo = XextAddDisplay(gesture_info, dpy,
+- GESTURE_EXT_NAME,
+- &gesture_extension_hooks,
+- GestureNumberErrors,
+- (XPointer)GetVersionInfo(dpy));
++ return NULL; // never called
+ }
+
+ return dpyinfo;
--- /dev/null
+--- libXgesture-0.1.1/src/gesture.c.orig 2020-08-28 17:52:03.599273923 +0200
++++ libXgesture-0.1.1/src/gesture.c 2020-08-28 17:53:05.705604131 +0200
+@@ -39,8 +39,8 @@
+ #include <X11/extensions/gesture.h>
+ #include <X11/extensions/gestureproto.h>
+
+-#ifdef __XGESTURE_LIB_DEBUG__
+ #include <stdio.h>
++#ifdef __XGESTURE_LIB_DEBUG__
+ #define TRACE(msg) fprintf(stderr, "[X11][GestureExt] %s\n", msg);
+ #else
+ #define TRACE(msg)
Summary(pl.UTF-8): Biblioteka rozszerzenia Xgesture
Name: xorg-lib-libXgesture
Version: 0.1.1
-Release: 1
+Release: 2
License: MIT
Group: X11/Libraries
Source0: http://download.tizen.org/releases/2.2.1/latest/repos/tizen-main/source/libXgesture-%{version}-3.3.src.rpm
# Source0-md5: 95e27d4041313b8a24746c5655282b39
-URL: http://xorg.freedesktop.org/
+Patch0: %{name}-dead-invalid-code.patch
+Patch1: %{name}-includes.patch
+URL: https://xorg.freedesktop.org/
BuildRequires: autoconf >= 2.60
BuildRequires: automake
BuildRequires: libtool
%setup -q -c -T -n libXgesture-%{version}
rpm2cpio %{SOURCE0} | cpio -i libXgesture-%{version}.tar.gz
tar xf libXgesture-%{version}.tar.gz -C ..
+%patch0 -p1
+%patch1 -p1
%build
%{__libtoolize}
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libXgesture.la
+
%clean
rm -rf $RPM_BUILD_ROOT
%files devel
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libXgesture.so
-%{_libdir}/libXgesture.la
%{_includedir}/X11/extensions/gesture.h
%{_pkgconfigdir}/xgesture.pc