File xorg-x11-driver-input.spec of Package xorg-x11-driver-input
#
# spec file for package xorg-x11-driver-input
#
# Copyright (c) 2011 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: xorg-x11-driver-input
#!BuildIgnore: xorg-x11-Mesa xorg-x11-Mesa-devel
BuildRequires: Mesa-devel pkgconfig udev xorg-x11-proto-devel xorg-x11-server-sdk
Url: http://xorg.freedesktop.org/
Version: 7.6
Release: 5
License: MIT License (or similar)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Group: System/X11/Servers/XF86_4
Requires: xkeyboard-config >= 1.5 udev
Provides: xorg-x11-server:/usr/X11R6/%{_lib}/modules/input/mouse_drv.so x11-input-synaptics x11-input-wacom x11-input-wacom-devel x11-input-wacom-tools
Requires: INPUT_ABI_VERSION = 11
Obsoletes: x11-input-synaptics x11-input-wacom x11-input-wacom-devel x11-input-wacom-tools
Supplements: xorg-x11-server
Summary: X.Org input drivers
ExcludeArch: s390 s390x
Source0: xf86-input-acecad-1.4.0.tar.bz2
Source1: xf86-input-aiptek-1.3.1.tar.bz2
Source8: xf86-input-elographics-1.2.4.tar.bz2
Source10: xf86-input-fpit-1.3.0.tar.bz2
Source11: xf86-input-hyperpen-1.3.0.tar.bz2
Source12: xf86-input-jamstudio-1.2.0.tar.bz2
Source13: xf86-input-joystick-1.5.0.tar.bz2
Source14: xf86-input-keyboard-1.5.0.tar.bz2
Source18: xf86-input-mouse-1.6.0.tar.bz2
Source19: xf86-input-mutouch-1.2.1.tar.bz2
Source21: xf86-input-penmount-1.4.1.tar.bz2
Source26: xf86-input-vmmouse-12.6.99.901.tar.bz2
Source27: xf86-input-void-1.3.1.tar.bz2
Source29: xf86-input-synaptics-1.3.0.tar.bz2
Source30: xf86-input-evdev-2.6.0.tar.bz2
Source33: xf86-input-wacom-0.10.8.tar.bz2
Source42: 11-mouse.conf
Source45: 65-xorg-wacom.rules
Patch2: xf86-input-jamstudio.diff
Patch23: xf86-input-synaptics-wait.diff
Patch24: xf86-input-synaptics-settings.diff
Patch39: xf86-input-fpit.diff
Patch40: xf86-input-hyperpen.diff
Patch41: xf86-input-mutouch.diff
Patch47: xf86-input-vmmouse-iopl.diff
Patch48: xf86-input-synaptics-xorg.conf.d_snippet.diff
Patch49: xf86-input-synaptics-add-clickpad-support.diff
Patch50: xf86-input-synaptics-clickpad-doc-update.diff
Patch51: xf86-input-synaptics-add-led-support.diff
Patch52: xf86-input-synaptics-led-double-tap.diff
Patch53: xf86-input-synaptics-64bit-fix.diff
Patch54: xf86-input-synaptics-fix-clickpad-capabilities.diff
Patch55: xf86-input-synaptics-clickpad-threshold.diff
Patch56: xf86-input-synaptics-move-threshold.diff
Patch57: xf86-input-synaptics-filter-bogus-coord.diff
%description
This package contains X.Org input drivers.
%package devel
License: MIT License (or similar)
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
Summary: Development files for X.org input drivers
%description devel
Development files for X.org input drivers in the package xorg-x11-drivers-input.
%prep
%setup -q -c -a1 -a8 -a10
%setup -q -D -T -a11 -a12 -a13 -a14 -a18 -a19
%setup -q -D -T -a21 -a26 -a27 -a29
%setup -q -D -T -a30 -a33
pushd xf86-input-jamstudio-*
%patch2
popd
pushd xf86-input-synaptics-*
%patch23 -p0
%patch24 -p0
%patch48 -p0
%patch49 -p1
%patch50 -p1
%patch51 -p1
%patch52 -p1
%patch53 -p1
%patch54 -p1
%patch55 -p1
%patch56 -p1
%patch57 -p1
popd
pushd xf86-input-fpit-*
%patch39 -p1
popd
pushd xf86-input-hyperpen-*
%patch40 -p1
popd
pushd xf86-input-mutouch-*
%patch41 -p1
popd
%ifnarch %ix86 x86_64
rm -rf xf86-input-vmmouse*
%else
pushd xf86-input-vmmouse-*
%patch47 -p1
%endif
%build
for dir in $(ls); do
pushd $dir
option="--with-xorg-conf-dir=/etc/X11/xorg.conf.d/"
%configure CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" $option
make %{?jobs:-j%jobs}
popd
done
%install
for dir in $(ls); do
make -C $dir install DESTDIR=$RPM_BUILD_ROOT
done
rm -f $RPM_BUILD_ROOT/usr/share/hal/fdi/policy/20thirdparty/wacom.fdi
rm -f $RPM_BUILD_ROOT/usr/share/hal/fdi/policy/20thirdparty/11-x11-vmmouse.fdi
rm -f $RPM_BUILD_ROOT/usr/%{_lib}/hal/hal-probe-vmmouse
mkdir -p $RPM_BUILD_ROOT/etc/X11/xorg.conf.d
install -m 644 %{S:42} xf86-input-wacom-*/conf/50-wacom.conf \
$RPM_BUILD_ROOT/etc/X11/xorg.conf.d
mkdir -p $RPM_BUILD_ROOT/lib/udev/rules.d/
install -m 644 %{S:45} $RPM_BUILD_ROOT/lib/udev/rules.d/
%clean
rm -rf "$RPM_BUILD_ROOT"
%post
# re-plug the input devices
udevadm trigger --subsystem-match=input --action=change
exit 0
%postun
# re-plug the input devices
udevadm trigger --subsystem-match=input --action=change
exit 0
%files
%defattr(-,root,root)
%dir /etc/X11/xorg.conf.d
%ifarch %ix86 x86_64
%dir /lib/udev
%dir /lib/udev/rules.d
/lib/udev/rules.d/69-xorg-vmmouse.rules
%endif
/usr/%{_lib}/xorg/modules/input/
%{_mandir}/man1/*
%{_mandir}/man4/*
/usr/bin/isdv4-serial-debugger
/usr/bin/syn*
/usr/bin/xsetwacom
%ifarch %ix86 x86_64
/usr/bin/vmmouse_detect
/usr/share/man/man1/vmmouse_detect.1.gz
%endif
%config /etc/X11/xorg.conf.d/*
/lib/udev/rules.d/65-xorg-wacom.rules
%files devel
%defattr(-,root,root)
/usr/include/xorg/evdev-properties.h
/usr/include/xorg/isdv4.h
/usr/include/xorg/joystick-properties.h
/usr/include/xorg/synaptics-properties.h
/usr/include/xorg/synaptics.h
/usr/include/xorg/Xwacom.h
/usr/include/xorg/wacom-properties.h
/usr/%{_lib}/pkgconfig/xorg-evdev.pc
/usr/%{_lib}/pkgconfig/xorg-joystick.pc
/usr/%{_lib}/pkgconfig/xorg-synaptics.pc
/usr/%{_lib}/pkgconfig/xorg-wacom.pc
%changelog