[packages/xorg-driver-input-mtrack: 1/2] new, version 1.0rc2 (20110303)

glen glen at pld-linux.org
Sun Feb 3 02:43:57 CET 2013


commit d4efeefac0c0f9f9339318fdb6418e9d0076c922
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Feb 3 03:27:12 2013 +0200

    new, version 1.0rc2 (20110303)
    
    based on fedora review request src.rpm
    https://bugzilla.redhat.com/show_bug.cgi?id=681826

 libdir.patch                      | 15 ++++++++++++
 xf86-input-multitouch.conf        |  7 ++++++
 xorg-driver-input-multitouch.spec | 51 +++++++++++++++++++++++++++++++++++++++
 3 files changed, 73 insertions(+)
---
diff --git a/xorg-driver-input-multitouch.spec b/xorg-driver-input-multitouch.spec
new file mode 100644
index 0000000..b768ac4
--- /dev/null
+++ b/xorg-driver-input-multitouch.spec
@@ -0,0 +1,51 @@
+%define		subver 20110303
+%define		rel		1
+Summary:	Multitouch X input driver
+Name:		xorg-driver-input-multitouch
+Version:	1.0
+Release:	0.rc2.%{subver}.%{rel}
+License:	GPL v2+
+Group:		X11/Applications
+Source0:	xf86-input-multitouch-%{subver}.tar.bz2
+Source1:	xf86-input-multitouch.conf
+Patch0:		libdir.patch
+URL:		http://bitmath.org/code/multitouch/
+BuildRequires:	mtdev-devel >= 1.1.0
+BuildRequires:	pixman-devel
+BuildRequires:	sed >= 4.0
+%{?requires_xorg_xserver_xinput}
+BuildRoot:	%{tmpdir}/%{name}-%{version}-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 xf86-input-multitouch-%{subver}
+%patch0 -p1
+
+%{__sed} -i -e 's,gcc,$(CC),g' Makefile
+
+%build
+%{__make} \
+	CC="%{__cc}" \
+	OPTS="%{rpmcflags} -fPIC" \
+	LIBDIR=%{_libdir}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__make} install \
+	LIBDIR=%{_libdir} \
+	DESTDIR=$RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{_datadir}/X11/xorg.conf.d
+cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/X11/xorg.conf.d/40-xf86-input-multitouch.conf
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README CREDITS
+%{_datadir}/X11/xorg.conf.d/40-xf86-input-multitouch.conf
+%{_libdir}/xorg/modules/input/multitouch.so
diff --git a/libdir.patch b/libdir.patch
new file mode 100644
index 0000000..803cee9
--- /dev/null
+++ b/libdir.patch
@@ -0,0 +1,15 @@
+diff --git a/Makefile b/Makefile
+index c61f955..4ad3597 100644
+--- a/Makefile
++++ b/Makefile
+@@ -25,8 +25,9 @@ TOBJ	= $(addprefix obj/,$(addsuffix .o,$(TARGETS)))
+ OBJS	= $(addprefix obj/,$(OBJECTS))
+ XOBJS	= $(addprefix obj/,$(XOBJECTS))
+ LIBS	= -lmtdev -lm
++LIBDIR  = /usr/lib
+ 
+-DLIB	= usr/lib/xorg/modules/input
++DLIB	= $(LIBDIR)/xorg/modules/input
+ 
+ INCLUDE = -Iinclude -I/usr/include/xorg -I/usr/include/pixman-1
+ OPTS	= -O3 -fPIC
diff --git a/xf86-input-multitouch.conf b/xf86-input-multitouch.conf
new file mode 100644
index 0000000..5f40910
--- /dev/null
+++ b/xf86-input-multitouch.conf
@@ -0,0 +1,7 @@
+Section "InputClass"
+	MatchIsTouchpad "true"
+	Identifier "Multitouch Touchpad"
+	MatchProduct "bcm5974"
+	Driver "multitouch"
+	MatchDevicePath "/dev/input/event*"
+EndSection
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/xorg-driver-input-mtrack.git/commitdiff/1b31c0ea3ff60278c2dd2780b333a9ef4c434189



More information about the pld-cvs-commit mailing list