]> git.pld-linux.org Git - SPECS.git/blob - dasher.spec
SPECS updated Sun 1 Aug 20:13:02 CEST 2021
[SPECS.git] / dasher.spec
1 #
2 # Conditional build:
3 %bcond_with     canna           # Canna (Japanese Kanji) input (broken as of 5.0.0beta)
4
5 Summary:        Predictive text entry application
6 Summary(pl.UTF-8):      Przewidująca aplikacja do wprowadzania tekstu
7 Name:           dasher
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}
13 License:        GPL v2
14 Group:          X11/Applications/Accessibility
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
19 URL:            http://www.inference.phy.cam.ac.uk/dasher/
20 %{?with_canna:BuildRequires:    Canna-devel}
21 BuildRequires:  atk-devel >= 2.16.0
22 BuildRequires:  at-spi2-core-devel
23 BuildRequires:  autoconf >= 2.59
24 BuildRequires:  automake >= 1:1.8
25 BuildRequires:  cairo-devel
26 BuildRequires:  docbook-dtd412-xml
27 BuildRequires:  expat-devel
28 BuildRequires:  gettext-tools
29 BuildRequires:  glib2-devel >= 1:2.16.1
30 BuildRequires:  gnome-doc-utils >= 0.9.0
31 BuildRequires:  gtk+3-devel >= 3.0
32 BuildRequires:  intltool >= 0.40.1
33 BuildRequires:  libstdc++-devel >= 6:4.3
34 BuildRequires:  libtool >= 2:2
35 BuildRequires:  pkgconfig
36 BuildRequires:  rpmbuild(find_lang) >= 1.23
37 BuildRequires:  rpmbuild(macros) >= 1.311
38 BuildRequires:  speech-dispatcher-devel
39 BuildRequires:  xorg-lib-libICE-devel
40 BuildRequires:  xorg-lib-libXtst-devel
41 Requires(post,preun):   glib2 >= 1:2.28.0
42 Requires(post,postun):  gtk-update-icon-cache
43 Requires(post,postun):  hicolor-icon-theme
44 Requires(post,postun):  scrollkeeper
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
59 %description -l pl.UTF-8
60 Dasher to wydajny interfejs do wprowadzania tekstu sterowany przez
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
64 komputerach przenośnych, komputerach sterowanych przez jednorękich, za
65 pomocą joysticka, ekranu dotykowego, trackballa lub myszy albo bez
66 użycia rąk (poprzez śledzenie ruchów głowy albo oczu). Wersja Dashera
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
69 użyciu myszy doświadczeni użytkownicy mogą pisać nawet 39 słów na
70 minutę.
71
72 %prep
73 %setup -q -n %{name}-%{gittag}
74 %patch0 -p1
75
76 %{__rm} m4/glib-gettext.m4
77
78 echo '%{version}.%{subver}' > .tarball-version
79
80 %build
81 %{__glib_gettextize}
82 %{__intltoolize}
83 %{__libtoolize}
84 %{__aclocal} -I m4
85 %{__autoconf}
86 %{__autoheader}
87 %{__automake}
88 %configure \
89         GLIB_COMPILE_SCHEMAS=/bin/true \
90         --enable-atspi \
91         --disable-schemas-install \
92         --disable-scrollkeeper \
93         %{?with_canna:--enable-japanese} \
94         %{?with_joystick:--enable-joystick} \
95         --enable-speech=speechdispatcher \
96         --with-cairo \
97         --with-gnome \
98         --with-gsettings
99 # --enable-joystick, --enable-tilt are broken (as of 5.0.0beta)
100
101 %{__make}
102
103 %install
104 rm -rf $RPM_BUILD_ROOT
105
106 %{__make} install \
107         DESTDIR=$RPM_BUILD_ROOT
108
109 %find_lang %{name} --with-gnome --with-omf --all-name
110
111 %clean
112 rm -rf $RPM_BUILD_ROOT
113
114 %post
115 %scrollkeeper_update_post
116 %update_desktop_database_post
117 %update_icon_cache hicolor
118
119 %postun
120 %scrollkeeper_update_postun
121 %update_desktop_database_postun
122 %update_icon_cache hicolor
123
124 %files -f %{name}.lang
125 %defattr(644,root,root,755)
126 %doc AUTHORS ChangeLog MAINTAINERS NEWS README
127 %attr(755,root,root) %{_bindir}/dasher
128 %{_datadir}/%{name}
129 %{_desktopdir}/dasher.desktop
130 %{_iconsdir}/hicolor/48x48/apps/dasher.png
131 %{_iconsdir}/hicolor/scalable/apps/dasher.svg
132 %{_mandir}/man1/dasher.1*
This page took 0.126316 seconds and 3 git commands to generate.