]>
Commit | Line | Data |
---|---|---|
afe8472e AM |
1 | Summary: A generic touchscreen calibration program for X.Org |
2 | Name: xinput_calibrator | |
3 | Version: 0.7.5 | |
4 | Release: 1 | |
5 | License: MIT | |
6 | Group: X11/Applications | |
7 | URL: http://www.freedesktop.org/wiki/Software/xinput_calibrator | |
8 | Source0: https://github.com/tias/xinput_calibrator/archive/v%{version}.tar.gz | |
9 | # Source0-md5: b9fcb2c175a73e3c86af7688073de338 | |
10 | BuildRequires: autoconf | |
11 | BuildRequires: automake | |
12 | BuildRequires: desktop-file-utils | |
13 | BuildRequires: gtk+2-devel | |
14 | BuildRequires: libtool | |
15 | BuildRequires: pkgconfig | |
16 | BuildRequires: xorg-lib-libXtst-devel | |
17 | ||
18 | %description | |
19 | xinput_calibrator is a program for calibrating your touchscreen, when | |
20 | using the X Window System. It currently features: | |
21 | - works for any standard Xorg touchscreen driver (uses XInput | |
22 | protocol) | |
23 | - mis-click detection (prevents bogus calibration) | |
24 | - dynamically recalibrates the evdev driver | |
25 | - outputs the calibration as xorg.conf.d snippet or HAL policy file | |
26 | - and more | |
27 | ||
28 | %prep | |
29 | %setup -q | |
30 | ||
31 | %build | |
32 | %{__libtoolize} | |
33 | %{__aclocal} | |
34 | %{__autoconf} | |
35 | %{__automake} | |
36 | %configure \ | |
37 | --with-gui=gtkmm \ | |
38 | --with-gui=x11 | |
39 | ||
40 | %{__make} | |
41 | ||
42 | ||
43 | %install | |
44 | rm -rf $RPM_BUILD_ROOT | |
45 | ||
46 | %{__make} install \ | |
47 | INSTALL="install -p" \ | |
48 | DESTDIR=$RPM_BUILD_ROOT | |
49 | ||
50 | # Install xinput_calibrator.desktop : | |
51 | desktop-file-install \ | |
52 | --dir=$RPM_BUILD_ROOT%{_desktopdir} \ | |
53 | ./scripts/%{name}.desktop | |
54 | ||
55 | %clean | |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | ||
58 | %files | |
59 | %defattr(644,root,root,755) | |
60 | %doc README Changelog | |
61 | %attr(755,root,root) %{_bindir}/%{name} | |
62 | %{_mandir}/man1/%{name}.1* | |
63 | %{_desktopdir}/%{name}.desktop | |
64 | %{_pixmapsdir}/%{name}.svg | |
65 | %{_pixmapsdir}/%{name}.xpm |