]>
Commit | Line | Data |
---|---|---|
52f8f333 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with canna # Canna (Japanese Kanji) input (broken as of 5.0.0beta) | |
4 | ||
886e9cf6 | 5 | Summary: Predictive text entry application |
d561d53a | 6 | Summary(pl.UTF-8): Przewidująca aplikacja do wprowadzania tekstu |
73b9e1b6 | 7 | Name: dasher |
52f8f333 JB |
8 | Version: 5.0.0 |
9 | %define subver beta | |
10 | %define rel 1 | |
11 | %define gittag DASHER_%(echo %{version} | tr . _)_%{subver} | |
12 | Release: 0.%{subver}.%{rel} | |
7abf4bb8 | 13 | License: GPL v2 |
67281221 | 14 | Group: X11/Applications/Accessibility |
52f8f333 JB |
15 | #Source0: https://download.gnome.org/sources/dasher/4.11/%{name}-%{version}.tar.bz2 |
16 | Source0: https://github.com/dasher-project/dasher/archive/%{gittag}.tar.gz | |
17 | # Source0-md5: 02187ade611218f15aa2613a648161c2 | |
18 | Patch0: %{name}-include.patch | |
886e9cf6 | 19 | URL: http://www.inference.phy.cam.ac.uk/dasher/ |
52f8f333 | 20 | %{?with_canna:BuildRequires: Canna-devel} |
c49bf0d3 JR |
21 | BuildRequires: atk-devel >= 2.16.0 |
22 | BuildRequires: at-spi2-core-devel | |
71c29471 | 23 | BuildRequires: autoconf >= 2.59 |
4f59cfc5 | 24 | BuildRequires: automake >= 1:1.8 |
c49bf0d3 | 25 | BuildRequires: cairo-devel |
f6ab0092 | 26 | BuildRequires: docbook-dtd412-xml |
bcb4aac3 | 27 | BuildRequires: expat-devel |
2eb58731 | 28 | BuildRequires: gettext-tools |
71c29471 | 29 | BuildRequires: glib2-devel >= 1:2.16.1 |
52f8f333 JB |
30 | BuildRequires: gnome-doc-utils >= 0.9.0 |
31 | BuildRequires: gtk+3-devel >= 3.0 | |
71c29471 | 32 | BuildRequires: intltool >= 0.40.1 |
52f8f333 JB |
33 | BuildRequires: libstdc++-devel >= 6:4.3 |
34 | BuildRequires: libtool >= 2:2 | |
f6ab0092 | 35 | BuildRequires: pkgconfig |
71c29471 | 36 | BuildRequires: rpmbuild(find_lang) >= 1.23 |
1a67d3aa | 37 | BuildRequires: rpmbuild(macros) >= 1.311 |
c49bf0d3 JR |
38 | BuildRequires: speech-dispatcher-devel |
39 | BuildRequires: xorg-lib-libICE-devel | |
ff242fa3 | 40 | BuildRequires: xorg-lib-libXtst-devel |
c49bf0d3 | 41 | Requires(post,preun): glib2 >= 1:2.28.0 |
6eac09e5 | 42 | Requires(post,postun): gtk-update-icon-cache |
1a67d3aa | 43 | Requires(post,postun): hicolor-icon-theme |
4f2218de | 44 | Requires(post,postun): scrollkeeper |
886e9cf6 | 45 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
46 | ||
47 | %description | |
48 | Dasher is an information-efficient text-entry interface, driven by | |
49 | natural continuous pointing gestures. Dasher is a competitive | |
50 | text-entry system wherever a full-size keyboard cannot be used - for | |
51 | example, on a palmtop computer; on a wearable computer; when operating | |
52 | a computer one-handed, by joystick, touchscreen, trackball, or mouse; | |
53 | when operating a computer with zero hands (i.e., by head-mouse or by | |
54 | eyetracker). The eyetracking version of Dasher allows an experienced | |
55 | user to write text as fast as normal handwriting - 25 words per | |
56 | minute; using a mouse, experienced users can write at 39 words per | |
57 | minute. | |
58 | ||
0fec6184 | 59 | %description -l pl.UTF-8 |
73b9e1b6 | 60 | Dasher to wydajny interfejs do wprowadzania tekstu sterowany przez |
0fec6184 JR |
61 | naturalne ciągłe gesty urządzenia wskazującego. Dasher jest |
62 | konkurencyjnym systemem wprowadzania tekstu wszędzie tam, gdzie nie | |
63 | można użyć pełnowymiarowej klawiatury - na przykład w palmtopach czy | |
1a67d3aa MB |
64 | komputerach przenośnych, komputerach sterowanych przez jednorękich, za |
65 | pomocą joysticka, ekranu dotykowego, trackballa lub myszy albo bez | |
0fec6184 | 66 | użycia rąk (poprzez śledzenie ruchów głowy albo oczu). Wersja Dashera |
1a67d3aa MB |
67 | śledząca ruchy oczu pozwala doświadczonemu użytkownikowi pisać tekst z |
68 | podobną szybkością do normalnego pisma - 25 słów na minutę; przy | |
0fec6184 JR |
69 | użyciu myszy doświadczeni użytkownicy mogą pisać nawet 39 słów na |
70 | minutę. | |
73b9e1b6 | 71 | |
886e9cf6 | 72 | %prep |
52f8f333 JB |
73 | %setup -q -n %{name}-%{gittag} |
74 | %patch0 -p1 | |
75 | ||
76 | %{__rm} m4/glib-gettext.m4 | |
77 | ||
78 | echo '%{version}.%{subver}' > .tarball-version | |
886e9cf6 | 79 | |
80 | %build | |
1a67d3aa MB |
81 | %{__glib_gettextize} |
82 | %{__intltoolize} | |
1544d4ff | 83 | %{__libtoolize} |
71c29471 | 84 | %{__aclocal} -I m4 |
1544d4ff | 85 | %{__autoconf} |
1a67d3aa | 86 | %{__autoheader} |
1544d4ff | 87 | %{__automake} |
886e9cf6 | 88 | %configure \ |
c49bf0d3 | 89 | GLIB_COMPILE_SCHEMAS=/bin/true \ |
c49bf0d3 | 90 | --enable-atspi \ |
52f8f333 | 91 | --disable-schemas-install \ |
ff242fa3 | 92 | --disable-scrollkeeper \ |
52f8f333 JB |
93 | %{?with_canna:--enable-japanese} \ |
94 | %{?with_joystick:--enable-joystick} \ | |
95 | --enable-speech=speechdispatcher \ | |
c49bf0d3 | 96 | --with-cairo \ |
52f8f333 | 97 | --with-gnome \ |
c49bf0d3 | 98 | --with-gsettings |
52f8f333 JB |
99 | # --enable-joystick, --enable-tilt are broken (as of 5.0.0beta) |
100 | ||
886e9cf6 | 101 | %{__make} |
102 | ||
103 | %install | |
104 | rm -rf $RPM_BUILD_ROOT | |
105 | ||
106 | %{__make} install \ | |
107 | DESTDIR=$RPM_BUILD_ROOT | |
108 | ||
71c29471 | 109 | %find_lang %{name} --with-gnome --with-omf --all-name |
886e9cf6 | 110 | |
111 | %clean | |
112 | rm -rf $RPM_BUILD_ROOT | |
113 | ||
4f2218de | 114 | %post |
178db19e | 115 | %scrollkeeper_update_post |
c49bf0d3 | 116 | %update_desktop_database_post |
1a67d3aa MB |
117 | %update_icon_cache hicolor |
118 | ||
4f2218de | 119 | %postun |
178db19e | 120 | %scrollkeeper_update_postun |
c49bf0d3 | 121 | %update_desktop_database_postun |
1a67d3aa | 122 | %update_icon_cache hicolor |
b7e73afc | 123 | |
886e9cf6 | 124 | %files -f %{name}.lang |
125 | %defattr(644,root,root,755) | |
52f8f333 JB |
126 | %doc AUTHORS ChangeLog MAINTAINERS NEWS README |
127 | %attr(755,root,root) %{_bindir}/dasher | |
886e9cf6 | 128 | %{_datadir}/%{name} |
52f8f333 JB |
129 | %{_desktopdir}/dasher.desktop |
130 | %{_iconsdir}/hicolor/48x48/apps/dasher.png | |
131 | %{_iconsdir}/hicolor/scalable/apps/dasher.svg | |
132 | %{_mandir}/man1/dasher.1* |