%global tarball xf86-input-multitouch %global gitdate 20110303 Name: xf86-input-multitouch Version: 1.0 Release: 0.rc2.%{gitdate}.1%{?dist} Summary: Multitouch X input driver Group: User Interface/X Hardware Support License: GPLv2+ URL: http://bitmath.org/code/multitouch/ # upstream doesn't have tarballs Source0: %{tarball}-%{gitdate}.tar.bz2 Source1: 40-xf86-input-multitouch.conf Source11: xf86-input-multitouch-make-git-snapshot.sh Source12: xf86-input-multitouch-commitid Patch: xf86-input-multitouch-1.0-libdir.patch BuildRequires: mtdev-devel >= 1.1.0 Requires: mtdev xorg-x11-server-Xorg BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %description This X input driver provides gestures support for multitouch touchpads, in particular those with integrated button. %prep %setup -q -n %{tarball}-%{gitdate} %patch -p1 %build make LIBDIR=%{_libdir} %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT LIBDIR=%{_libdir} mkdir -p $RPM_BUILD_ROOT/etc/X11/xorg.conf.d install -m 0644 %{SOURCE1} $RPM_BUILD_ROOT/etc/X11/xorg.conf.d/40-xf86-input-multitouch.conf %files %defattr(-,root,root,-) %doc COPYING README CREDITS %{_libdir}/xorg/modules/input/multitouch.so %config(noreplace) /etc/X11/xorg.conf.d/40-xf86-input-multitouch.conf %changelog * Thu Mar 03 2011 Harald Hoyer 1.0-0.rc2.20110303.1 - initial version