# # Conditional build: %bcond_with canna # Canna (Japanese Kanji) input (broken as of 5.0.0beta) Summary: Predictive text entry application Summary(pl.UTF-8): Przewidująca aplikacja do wprowadzania tekstu Name: dasher Version: 5.0.0 %define subver beta %define rel 1 %define gittag DASHER_%(echo %{version} | tr . _)_%{subver} Release: 0.%{subver}.%{rel} License: GPL v2 Group: X11/Applications/Accessibility #Source0: https://download.gnome.org/sources/dasher/4.11/%{name}-%{version}.tar.bz2 Source0: https://github.com/dasher-project/dasher/archive/%{gittag}.tar.gz # Source0-md5: 02187ade611218f15aa2613a648161c2 Patch0: %{name}-include.patch URL: http://www.inference.phy.cam.ac.uk/dasher/ %{?with_canna:BuildRequires: Canna-devel} BuildRequires: atk-devel >= 2.16.0 BuildRequires: at-spi2-core-devel BuildRequires: autoconf >= 2.59 BuildRequires: automake >= 1:1.8 BuildRequires: cairo-devel BuildRequires: docbook-dtd412-xml BuildRequires: expat-devel BuildRequires: gettext-tools BuildRequires: glib2-devel >= 1:2.16.1 BuildRequires: gnome-doc-utils >= 0.9.0 BuildRequires: gtk+3-devel >= 3.0 BuildRequires: intltool >= 0.40.1 BuildRequires: libstdc++-devel >= 6:4.3 BuildRequires: libtool >= 2:2 BuildRequires: pkgconfig BuildRequires: rpmbuild(find_lang) >= 1.23 BuildRequires: rpmbuild(macros) >= 1.311 BuildRequires: speech-dispatcher-devel BuildRequires: xorg-lib-libICE-devel BuildRequires: xorg-lib-libXtst-devel Requires(post,preun): glib2 >= 1:2.28.0 Requires(post,postun): gtk-update-icon-cache Requires(post,postun): hicolor-icon-theme Requires(post,postun): scrollkeeper BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description Dasher is an information-efficient text-entry interface, driven by natural continuous pointing gestures. Dasher is a competitive text-entry system wherever a full-size keyboard cannot be used - for example, on a palmtop computer; on a wearable computer; when operating a computer one-handed, by joystick, touchscreen, trackball, or mouse; when operating a computer with zero hands (i.e., by head-mouse or by eyetracker). The eyetracking version of Dasher allows an experienced user to write text as fast as normal handwriting - 25 words per minute; using a mouse, experienced users can write at 39 words per minute. %description -l pl.UTF-8 Dasher to wydajny interfejs do wprowadzania tekstu sterowany przez naturalne ciągłe gesty urządzenia wskazującego. Dasher jest konkurencyjnym systemem wprowadzania tekstu wszędzie tam, gdzie nie można użyć pełnowymiarowej klawiatury - na przykład w palmtopach czy komputerach przenośnych, komputerach sterowanych przez jednorękich, za pomocą joysticka, ekranu dotykowego, trackballa lub myszy albo bez użycia rąk (poprzez śledzenie ruchów głowy albo oczu). Wersja Dashera śledząca ruchy oczu pozwala doświadczonemu użytkownikowi pisać tekst z podobną szybkością do normalnego pisma - 25 słów na minutę; przy użyciu myszy doświadczeni użytkownicy mogą pisać nawet 39 słów na minutę. %prep %setup -q -n %{name}-%{gittag} %patch0 -p1 %{__rm} m4/glib-gettext.m4 echo '%{version}.%{subver}' > .tarball-version %build %{__glib_gettextize} %{__intltoolize} %{__libtoolize} %{__aclocal} -I m4 %{__autoconf} %{__autoheader} %{__automake} %configure \ GLIB_COMPILE_SCHEMAS=/bin/true \ --enable-atspi \ --disable-schemas-install \ --disable-scrollkeeper \ %{?with_canna:--enable-japanese} \ %{?with_joystick:--enable-joystick} \ --enable-speech=speechdispatcher \ --with-cairo \ --with-gnome \ --with-gsettings # --enable-joystick, --enable-tilt are broken (as of 5.0.0beta) %{__make} %install rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT %find_lang %{name} --with-gnome --with-omf --all-name %clean rm -rf $RPM_BUILD_ROOT %post %scrollkeeper_update_post %update_desktop_database_post %update_icon_cache hicolor %postun %scrollkeeper_update_postun %update_desktop_database_postun %update_icon_cache hicolor %files -f %{name}.lang %defattr(644,root,root,755) %doc AUTHORS ChangeLog MAINTAINERS NEWS README %attr(755,root,root) %{_bindir}/dasher %{_datadir}/%{name} %{_desktopdir}/dasher.desktop %{_iconsdir}/hicolor/48x48/apps/dasher.png %{_iconsdir}/hicolor/scalable/apps/dasher.svg %{_mandir}/man1/dasher.1*