1 | %define tarball BlueDragonX-xf86-input-mtrack |
---|
2 | %define moduledir %(pkg-config xorg-server --variable=moduledir ) |
---|
3 | %define driverdir %{moduledir}/input |
---|
4 | %define githash 71abf32 |
---|
5 | |
---|
6 | Summary: Xorg X11 Multitouch Trackpad Driver |
---|
7 | Summary(ja): Xorg X11 マルチタッチトラックパッド用ドライバ |
---|
8 | Name: xorg-x11-drv-mtrack |
---|
9 | Version: 0.2.0 |
---|
10 | Release: 2.git%{githash}%{?_dist_release} |
---|
11 | URL: https://github.com/BlueDragonX/xf86-input-mtrack |
---|
12 | License: GPLv2+ |
---|
13 | Group: User Interface/X Hardware Support |
---|
14 | |
---|
15 | Source0: %{tarball}-v%{version}-1-g%{githash}.tar.gz |
---|
16 | |
---|
17 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
18 | BuildRequires: xorg-x11-server-sdk |
---|
19 | BuildRequires: libxkbfile-devel |
---|
20 | BuildRequires: xorg-x11-util-macros >= 1.3.0 |
---|
21 | BuildRequires: mtdev-devel >= 1.0.10 |
---|
22 | Requires: xorg-x11-server-Xorg |
---|
23 | Requires: mtdev >= 1.0.10 |
---|
24 | |
---|
25 | %description |
---|
26 | This X input driver provides gestures support for multitouch touchpads, |
---|
27 | with or without an integrated button. |
---|
28 | |
---|
29 | %prep |
---|
30 | %setup -q -n %{tarball}-%{githash} |
---|
31 | |
---|
32 | %build |
---|
33 | aclocal |
---|
34 | autoheader |
---|
35 | autoconf |
---|
36 | libtoolize --copy --force |
---|
37 | automake -a --gnu --include-deps |
---|
38 | %configure --disable-static |
---|
39 | make |
---|
40 | |
---|
41 | %install |
---|
42 | rm -rf $RPM_BUILD_ROOT |
---|
43 | |
---|
44 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
45 | |
---|
46 | # FIXME: Remove all libtool archives (*.la) from modules directory. This |
---|
47 | # should be fixed in upstream Makefile.am or whatever. |
---|
48 | find $RPM_BUILD_ROOT -regex ".*\.la$" | xargs rm -f -- |
---|
49 | |
---|
50 | %clean |
---|
51 | rm -rf $RPM_BUILD_ROOT |
---|
52 | |
---|
53 | %files |
---|
54 | %defattr(-,root,root,-) |
---|
55 | %doc COPYING CREDITS README.md |
---|
56 | %{driverdir}/mtrack_drv.so |
---|
57 | |
---|
58 | %changelog |
---|
59 | * Wed Nov 02 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.2.0-2.71abf32 |
---|
60 | - rebuild with xserver-1.11.1.902 |
---|
61 | |
---|
62 | * Fri Sep 23 2011 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.2.0-1.71abf32 |
---|
63 | - initial build for Vine Linux |
---|