File libXi.spec of Package libXi.3538

# spec file for package libXi
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# 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.

# Please submit bugfixes or comments via

Name:           libXi
%define lname	libXi6
Version:        1.7.4
Release:        0
Summary:        X Input Extension library
License:        MIT
Group:          Development/Libraries/C and C++

#Git-Clone:	git://
Patch0:         U_Advance-the-request-buffer-by-the-right-amount-in-XIChangeHierarchy.patch
Patch1:         U_Fix-double-unlock-when-_XiCheckExtInit-return-1.patch
Patch2:         U_XIChangeHierarchy-Add-missing-unlock.patch
Patch3:         U_Do-not-return-NoSuchExtension-casted-to-pointer-as-an-error.patch
Patch4:         U_XIGetClientPointer-Return-False-on-error.patch
Patch5:         U_Fix-logic-in-_XIAllowEvents-and-prevent-double-unlock.patch
Patch6:         U_Refactor-XGetExtensionVersion.patch
Patch7:         U_XIGrabDevice-Unlock-display-in-error-path.patch
Patch8:         U_Fix-version-check-in-_XIAllowEvents.patch
Patch9:         U_Properly-validate-server-responses.patch

BuildRoot:      %{_tmppath}/%{name}-%{version}-build
#git#BuildRequires:	autoconf >= 2.60, automake, libtool
BuildRequires:  fdupes
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(inputproto) >=
BuildRequires:  pkgconfig(x11) >=
BuildRequires:  pkgconfig(xext) >=
BuildRequires:  pkgconfig(xextproto) >= 7.0.3
BuildRequires:  pkgconfig(xfixes)
BuildRequires:  pkgconfig(xorg-macros) >= 1.12
BuildRequires:  pkgconfig(xproto) >= 7.0.13

libXi is the client-side library for the X Input Extension.

%package -n %lname
Summary:        X Input Extension library
Group:          System/Libraries

%description -n %lname
libXi is the client-side library for the X Input Extension.

%package devel
Summary:        Development files for the X Input Extension library
Group:          Development/Libraries/C and C++
Requires:       %lname = %version
# O/P added for 12.2
Provides:       libXi6-devel = %version-%release
Obsoletes:      libXi6-devel < %version-%release

%description devel
libXi is the client-side library for the X Input Extension.

This package contains the development headers for the library found
in %lname.

%setup -q

%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
%patch9 -p1

%configure --docdir=%_docdir/%name --disable-static
make %{?_smp_mflags}

make install DESTDIR="%buildroot"
rm -f "%buildroot/%_libdir"/*.la
%fdupes %buildroot/%_prefix

%post -n %lname -p /sbin/ldconfig

%postun -n %lname -p /sbin/ldconfig

%files -n %lname

%files devel

openSUSE Build Service is sponsored by