File x11-input-mtrack.spec of Package x11-input-mtrack

#
# spec file for package x11-input-mtrack
#
# Copyright (c) 2012 SUSE LINUX Products 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 http://bugs.opensuse.org/
#

# norootforbuild


Name:           x11-input-mtrack
BuildRequires:  mtdev-devel pkgconfig xorg-x11-proto-devel xorg-x11-server-sdk
BuildRequires:  autoconf automake libtool
Summary:        An Xorg driver for multitouch trackpads
Version:        0.2.0
Release:        1
License:        GPL-2.0
Group:          System/X11/Servers/XF86_4
Source:         xf86-input-mtrack-0.2.0-1-g71abf32.tar.bz2
Source1:        mtrack.conf
Patch:          multitouch-missing-include.diff
Patch1:         mtrack-xorg112.patch
ExcludeArch:    s390 s390x
Conflicts:      x11-input-multitouch
Url:            http://github.com/BlueDragonX/xf86-input-mtrack
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%x11_abi_xinput_req

%description
An Xorg driver for multitouch trackpads. Supports any trackpad whose kernel driver uses the slotted multitouch protocol. For more information on the protocol see the kernel documentation.

This driver is compatible with Xorg server versions 1.7, 1.8, and 1.10. It requires the mtdev library to operate.

%prep
%setup -q -n xf86-input-mtrack
%patch -p1
%patch1 -p1

%build
export CFLAGS="%{optflags} -lxf86config"
autoreconf -fi
%configure
%{__make} V=1

%install
%makeinstall
mkdir -p $RPM_BUILD_ROOT/etc/X11/xorg.conf.d
# higher priority than synaptics (50-synaptics.conf), apparently the last
# driver entry wins ...
install -c -m 0644 %{S:1} $RPM_BUILD_ROOT/etc/X11/xorg.conf.d/60-mtrack.conf

%clean
rm -rf $RPM_BUILD_ROOT

%files 
%defattr(-,root,root)
%doc COPYING README.md
%{_libdir}/xorg/modules/input
/etc/X11/xorg.conf.d/*.conf

%changelog
openSUSE Build Service is sponsored by