1 |
Summary: A gesture-recognition application for X11 |
2 |
Name: easystroke |
3 |
Version: 0.6.0 |
4 |
Release: %mkrel 21 |
5 |
Group: Accessibility |
6 |
License: ISC |
7 |
Url: http://easystroke.sourceforge.net/ |
8 |
Source0: https://downloads.sourceforge.net/easystroke/%{name}-%{version}.tar.gz |
9 |
Patch0: easystroke-0.6.0-fix-desktop-file.patch |
10 |
# fix build with libsigc++ 2.6; also build in C++11 mode |
11 |
# (not sure if the lambda is correct, but seems to work) |
12 |
Patch1: replace-sigc-group-with-lambda.patch |
13 |
# https://github.com/thjaeger/easystroke/pull/8 |
14 |
Patch3: easystroke-0.6.0-abs.patch |
15 |
BuildRequires: pkgconfig(gdkmm-3.0) |
16 |
BuildRequires: pkgconfig(dbus-glib-1) |
17 |
BuildRequires: pkgconfig(x11) |
18 |
BuildRequires: pkgconfig(xext) |
19 |
BuildRequires: pkgconfig(xi) |
20 |
BuildRequires: pkgconfig(xfixes) |
21 |
BuildRequires: pkgconfig(xtst) |
22 |
BuildRequires: pkgconfig(xorg-server) |
23 |
BuildRequires: boost-devel |
24 |
BuildRequires: intltool |
25 |
BuildRequires: help2man |
26 |
|
27 |
%description |
28 |
Easystroke is a gesture-recognition application for X11. Gestures or |
29 |
strokes are movements that you make with you mouse (or your pen, |
30 |
finger etc.) while holding down a specific mouse button. Easystroke |
31 |
will execute certain actions if it recognizes the stroke; currently |
32 |
easystroke can emulate key presses, execute shell commands, hold down |
33 |
modifiers and emulate a scroll wheel. |
34 |
The program was designed with Tablet PCs in mind and can be used |
35 |
effectively even without access to a keyboard. Easystroke tries to |
36 |
provide an intuitive and efficient user interface, while at the same |
37 |
time being highly configurable and offering many advanced features. |
38 |
|
39 |
%prep |
40 |
%setup -q |
41 |
%autopatch -p1 |
42 |
|
43 |
# fix PREFIX |
44 |
sed -i -e 's:/usr/local:%{_prefix}:' Makefile |
45 |
# do not strip binary |
46 |
sed -i -e 's:install -Ds:install -D:g' Makefile |
47 |
|
48 |
%build |
49 |
%make_build CXX="g++ %{optflags}" \ |
50 |
CC="gcc -std=c99 %{optflags}" \ |
51 |
LDFLAGS="%{ldflags}" |
52 |
|
53 |
# man page |
54 |
make man |
55 |
|
56 |
%install |
57 |
%make_install |
58 |
|
59 |
# man page install |
60 |
install -D -m644 %{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1 |
61 |
|
62 |
%find_lang %{name} |
63 |
|
64 |
%files -f %{name}.lang |
65 |
%doc LICENSE changelog |
66 |
%{_bindir}/%{name} |
67 |
%{_datadir}/applications/%{name}.desktop |
68 |
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg |
69 |
%{_mandir}/man1/%{name}* |