]>
Commit | Line | Data |
---|---|---|
47848a6a | 1 | # TODO: user/group (see Autostart/Systemd/sysusers) |
42577d78 | 2 | # |
608626ec | 3 | # Conditional build: |
82b1c71c | 4 | %bcond_without apidocs # documentation generated with doxygen |
3dcc4a01 | 5 | %bcond_without java # Java bindings |
89a419c7 | 6 | %bcond_without lua # Lua bindings |
82b1c71c JB |
7 | %bcond_without ocaml # OCaml bindings |
8 | %bcond_without python # Python bindings | |
75f78027 | 9 | %bcond_without python3 # Python 3.x bindings |
82b1c71c JB |
10 | %bcond_without tcl # Tcl bindings |
11 | %bcond_without x # X11-based utilities | |
12 | %bcond_without gpm # mouse tracking via GPM | |
509de961 | 13 | %bcond_without libbraille # libbraille Braille driver |
1db3af51 | 14 | %bcond_without liblouis # liblouis in-line contracted Braille support |
82b1c71c | 15 | %bcond_without espeak # eSpeak synthesizer driver |
1db3af51 | 16 | %bcond_without espeak_ng # eSpeak-NG synthesizer driver |
82b1c71c | 17 | %bcond_without flite # Flite synthesizer driver |
dfe38ff6 | 18 | %bcond_with mikropuhe # Mikropuhe synthesizer driver [commercial, Finnish] |
82b1c71c | 19 | %bcond_without speech_dispatcher # Speech Dispatcher synthesizer driver |
dfe38ff6 JB |
20 | %bcond_with swift # Swift synthesizer driver [commercial, from Cepstral] |
21 | %bcond_with theta # Theta synthesizer driver [commercial, from Cepstral] | |
22 | %bcond_with viavoice # IBM ViaVoice synthesizer driver [commercial] | |
e4015245 | 23 | %bcond_with at_spi # AtSpi screen driver |
509de961 | 24 | %bcond_without at_spi2 # AtSpi2 screen driver |
a8f3581f | 25 | |
4ce6d094 | 26 | %define brlapi_ver 0.8.5 |
981e3c1f JP |
27 | |
28 | %{?with_java:%{?use_default_jdk}} | |
29 | ||
9b20373a | 30 | Summary: Braille display driver for Linux/Unix |
8731bfde | 31 | Summary(pl.UTF-8): Sterownik do wyświetlaczy Braille'a |
91162002 | 32 | Name: brltty |
4ce6d094 JB |
33 | Version: 6.6 |
34 | Release: 1 | |
3dcc4a01 | 35 | License: GPL v2+ (brltty and drivers), LGPL v2.1+ (APIs) |
a8f3581f | 36 | Group: Daemons |
295e8be4 | 37 | Source0: http://mielke.cc/brltty/archive/%{name}-%{version}.tar.xz |
4ce6d094 | 38 | # Source0-md5: ad3fd352481a7720d2b2fdf9ae64cf79 |
ad027d08 | 39 | Patch1: %{name}-speech-dispatcher.patch |
0285055e | 40 | Patch4: %{name}-glibc25.patch |
1a7665e9 | 41 | URL: http://mielke.cc/brltty/ |
82b1c71c JB |
42 | BuildRequires: alsa-lib-devel |
43 | %{?with_at_spi:BuildRequires: at-spi-devel} | |
dc8771ff | 44 | %{?with_at_spi2:BuildRequires: at-spi2-core-devel >= 2.0} |
c80b057e | 45 | BuildRequires: autoconf >= 2.64 |
664a738b | 46 | BuildRequires: automake |
91162002 | 47 | BuildRequires: bison |
82b1c71c JB |
48 | # just headers |
49 | BuildRequires: bluez-libs-devel | |
50 | %{?with_at_spi2:BuildRequires: dbus-devel >= 1.0} | |
608626ec | 51 | %{?with_apidocs:BuildRequires: doxygen} |
ed3025fe | 52 | %{?with_espeak:BuildRequires: espeak-devel} |
1db3af51 JB |
53 | %{?with_espeak_ng:BuildRequires: espeak-ng-devel} |
54 | BuildRequires: expat-devel | |
dfe38ff6 | 55 | %{?with_flite:BuildRequires: flite-devel} |
1db3af51 | 56 | BuildRequires: gettext-tools |
dc8771ff | 57 | %{?with_at_spi2:BuildRequires: glib2-devel >= 2.0} |
82b1c71c | 58 | %{?with_gpm:BuildRequires: gpm-devel} |
ec14a64c | 59 | %{?with_java:%buildrequires_jdk} |
0b1afa7b | 60 | %{?with_java:BuildRequires: jpackage-utils} |
dfe38ff6 | 61 | %{?with_libbraille:BuildRequires: libbraille-devel} |
82b1c71c | 62 | BuildRequires: libicu-devel |
1db3af51 | 63 | %{?with_liblouis:BuildRequires: liblouis-devel} |
89a419c7 | 64 | %{?with_lua:BuildRequires: lua-devel} |
eb77b64b | 65 | BuildRequires: ncurses-devel |
6913fe15 | 66 | %{?with_ocaml:BuildRequires: ocaml} |
dc8771ff | 67 | BuildRequires: pcre2-32-devel |
ac744b8d | 68 | BuildRequires: pkgconfig |
1db3af51 | 69 | BuildRequires: polkit-devel |
9625a54f | 70 | %{?with_ptyhon:BuildRequires: python} |
295e8be4 | 71 | %{?with_python:BuildRequires: python-Cython} |
9625a54f | 72 | %{?with_python3:BuildRequires: python3} |
75f78027 | 73 | %{?with_python3:BuildRequires: python3-Cython} |
647f30a0 | 74 | BuildRequires: rpm-build >= 4.6 |
332e4348 | 75 | %{?with_java:BuildRequires: rpm-javaprov} |
0bb357f1 | 76 | %{?with_python:BuildRequires: rpm-pythonprov} |
981e3c1f | 77 | BuildRequires: rpmbuild(macros) >= 2.021 |
dc8771ff | 78 | BuildRequires: sed >= 4.0 |
0b1afa7b | 79 | %{?with_speech_dispatcher:BuildRequires: speech-dispatcher-devel >= 0.8} |
47848a6a | 80 | BuildRequires: systemd-devel >= 1:209 |
295e8be4 JB |
81 | BuildRequires: tar >= 1:1.22 |
82 | %{?with_tcl:BuildRequires: tcl-devel >= 8.5} | |
82b1c71c JB |
83 | %if %{with x} |
84 | BuildRequires: xorg-lib-libX11-devel | |
85 | BuildRequires: xorg-lib-libXaw-devel | |
86 | BuildRequires: xorg-lib-libXext-devel | |
dc8771ff | 87 | BuildRequires: xorg-lib-libXfixes-devel |
82b1c71c JB |
88 | BuildRequires: xorg-lib-libXt-devel |
89 | BuildRequires: xorg-lib-libXtst-devel | |
90 | %endif | |
dfe38ff6 JB |
91 | #%{?with_mikropuhe:BuildRequires: Mikropuhe-devel (-lmikropuhe <mpwrfile.h>)} |
92 | #%{?with_swift:BuildRequires: Swift-devel (-lswift <swift.h>)} | |
93 | #%{?with_theta:BuildRequires: Theta-devel (-ltheta <theta.h>)} | |
94 | #%{?with_viavoice:BuildRequires: ViaVoice-devel (-libmeci50 <eci.h>)} | |
a8f3581f | 95 | BuildRequires: xz |
91162002 | 96 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
97 | ||
98 | %description | |
99 | BRLTTY is a background process (daemon) which provides access to the | |
100 | Linux/Unix console (when in text mode) for a blind person using a | |
33e3c5f9 | 101 | refreshable Braille display. It drives the Braille display, and |
3b0ec988 | 102 | provides complete screen review functionality. Some speech capability |
91162002 | 103 | has also been incorporated. |
104 | ||
54f59947 JR |
105 | %description -l pl.UTF-8 |
106 | BRLTTY jest demonem, który udostępnia dostęp do linuksowej konsoli (w | |
107 | trybie tekstowym) dla niewidomych używających wyświetlaczy Braille'a z | |
108 | odświeżaniem (refreshable Braille display). BRLTTY steruje | |
109 | wyświetlaczem Braille'a i dostarcza funkcjonalność całkowitego | |
110 | przeglądu ekranu. Do tego pakietu została włączona możliwość syntezy | |
9b20373a | 111 | mowy. |
91162002 | 112 | |
47848a6a JB |
113 | %package -n dracut-brltty |
114 | Summary: Braille support for Dracut | |
115 | Summary(pl.UTF-8): Obsługa Braille'a dla Dracuta | |
116 | Group: Applications/Text | |
117 | Requires: %{name} = %{version}-%{release} | |
118 | Requires: dracut | |
119 | ||
120 | %description -n dracut-brltty | |
121 | Braille support for Dracut. | |
122 | ||
123 | %description -n dracut-brltty -l pl.UTF-8 | |
124 | Obsługa Braille'a dla Dracuta. | |
125 | ||
91162002 | 126 | %package -n brlapi |
9b20373a | 127 | Summary: Application Programming Interface for BRLTTY |
8731bfde | 128 | Summary(pl.UTF-8): API do BRLTTY |
3dcc4a01 JB |
129 | License: LGPL v2.1+ |
130 | Group: Libraries | |
91162002 | 131 | |
132 | %description -n brlapi | |
133 | This package provides the run-time support for the Application | |
134 | Programming Interface to BRLTTY. | |
135 | ||
9b20373a | 136 | Install this package if you have an application which directly |
137 | accesses a refreshable Braille display. | |
91162002 | 138 | |
54f59947 JR |
139 | %description -n brlapi -l pl.UTF-8 |
140 | Ten pakiet zawiera środowisko uruchomieniowe dla programów | |
141 | korzystających z API BRLTTY. | |
91162002 | 142 | |
54f59947 JR |
143 | Zainstaluj ten pakiet jeśli masz aplikację, która bezpośrednio używa |
144 | wyświetlacza Braille'a z odświeżaniem. | |
91162002 | 145 | |
146 | %package -n brlapi-devel | |
9b20373a | 147 | Summary: Headers and documentation for BrlAPI |
8731bfde | 148 | Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja do BrlAPI |
3dcc4a01 | 149 | License: LGPL v2.1+ |
3b0ec988 | 150 | Group: Development/Libraries |
664a738b | 151 | Requires: brlapi = %{version}-%{release} |
91162002 | 152 | |
153 | %description -n brlapi-devel | |
9b20373a | 154 | This package provides the header files, shared object linker |
155 | reference, and reference documentation for BrlAPI (the Application | |
3b0ec988 | 156 | Programming Interface to BRLTTY). It enables the implementation of |
9b20373a | 157 | applications which take direct advantage of a refreshable Braille |
158 | display in order to present information in ways which are more | |
159 | appropriate for blind users and/or to provide user interfaces which | |
160 | are more specifically atuned to their needs. | |
91162002 | 161 | |
3b0ec988 | 162 | Install this package if you're developing or maintaining an |
163 | application which directly accesses a refreshable Braille display. | |
91162002 | 164 | |
54f59947 JR |
165 | %description -n brlapi-devel -l pl.UTF-8 |
166 | Ten pakiet zawiera pliki nagłówkowe oraz dokumentację do BrlAPI (API | |
167 | do BRLTTY). BrlAPI pozwala implementować aplikacje, które bezpośrednio | |
168 | korzystają z wyświetlaczy Braille'a dostarczając interfejs użytkownika | |
169 | bardziej przystosowany dla osób niewidomych. | |
91162002 | 170 | |
54f59947 JR |
171 | Zainstaluj ten pakiet, jeśli tworzysz lub nadzorujesz aplikację |
172 | korzystającą bezpośrednio z odświeżalnych wyświetlaczy Braille'a. | |
91162002 | 173 | |
174 | %package -n brlapi-static | |
9b20373a | 175 | Summary: Static BrlAPI library |
8731bfde | 176 | Summary(pl.UTF-8): Statyczna biblioteka BrlAPI |
3dcc4a01 | 177 | License: LGPL v2.1+ |
3b0ec988 | 178 | Group: Development/Libraries |
664a738b | 179 | Requires: brlapi-devel = %{version}-%{release} |
91162002 | 180 | |
181 | %description -n brlapi-static | |
9b20373a | 182 | This is package with static BrlAPI library. |
91162002 | 183 | |
54f59947 JR |
184 | %description -n brlapi-static -l pl.UTF-8 |
185 | Ten pakiet zawiera statyczną wersję biblioteki BrlAPI. | |
91162002 | 186 | |
608626ec SS |
187 | %package -n brlapi-apidocs |
188 | Summary: BrlAPI documentation | |
189 | Summary(pl.UTF-8): Documentacja BrlAPI | |
190 | Group: Documentation | |
a8f3581f | 191 | BuildArch: noarch |
608626ec SS |
192 | |
193 | %description -n brlapi-apidocs | |
a8f3581f ER |
194 | Documentation for BrlAPI in HTML format generated from brltty sources |
195 | by doxygen. | |
608626ec SS |
196 | |
197 | %description -n brlapi-apidocs -l pl.UTF-8 | |
a8f3581f ER |
198 | Dokumentacja BrlAPI w formacie HTML generowane ze źrodeł brltty przez |
199 | doxygen. | |
608626ec | 200 | |
332e4348 | 201 | %package -n java-brlapi |
09255552 SS |
202 | Summary: BrlAPI library for Java |
203 | Summary(pl.UTF-8): Biblioteka BrlAPI dla Javy | |
3dcc4a01 | 204 | License: LGPL v2.1+ |
09255552 SS |
205 | Group: Libraries |
206 | Requires: brlapi = %{version}-%{release} | |
207 | ||
332e4348 | 208 | %description -n java-brlapi |
09255552 SS |
209 | BrlAPI library for Java. |
210 | ||
332e4348 | 211 | %description -n java-brlapi -l pl.UTF-8 |
09255552 SS |
212 | Biblioteka BrlAPI dla Javy. |
213 | ||
89a419c7 JB |
214 | %package -n lua-brlapi |
215 | Summary: BrlAPI library for Lua | |
216 | Summary(pl.UTF-8): Biblioteka BrlAPI dla Lua | |
217 | License: LGPL v2.1+ | |
218 | Group: Libraries | |
219 | Requires: brlapi = %{version}-%{release} | |
220 | ||
221 | %description -n lua-brlapi | |
222 | BrlAPI library for Lua. | |
223 | ||
224 | %description -n lua-brlapi -l pl.UTF-8 | |
225 | Biblioteka BrlAPI dla Lua. | |
226 | ||
82b1c71c JB |
227 | %package -n ocaml-brlapi |
228 | Summary: OCaml binding for BrlAPI | |
229 | Summary(pl.UTF-8): Wiązania OCamla do BrlAPI | |
3dcc4a01 | 230 | License: LGPL v2.1+ |
82b1c71c JB |
231 | Group: Libraries |
232 | Requires: brlapi = %{version}-%{release} | |
233 | %requires_eq ocaml-runtime | |
234 | ||
235 | %description -n ocaml-brlapi | |
236 | OCaml binding for BrlAPI. | |
237 | ||
238 | %description -n ocaml-brlapi -l pl.UTF-8 | |
239 | Wiązania OCamla do BrlAPI. | |
240 | ||
241 | %package -n ocaml-brlapi-devel | |
242 | Summary: OCaml binding for BrlAPI - development files | |
243 | Summary(pl.UTF-8): Wiązania OCamla do BrlAPI - pliki programistyczne | |
3dcc4a01 | 244 | License: LGPL v2.1+ |
82b1c71c JB |
245 | Group: Libraries |
246 | Requires: ocaml-brlapi = %{version}-%{release} | |
247 | %requires_eq ocaml | |
248 | ||
249 | %description -n ocaml-brlapi-devel | |
250 | OCaml binding for BrlAPI - development files. | |
251 | ||
252 | %description -n ocaml-brlapi-devel -l pl.UTF-8 | |
253 | Wiązania OCamla do BrlAPI - pliki programistyczne. | |
254 | ||
0bb357f1 | 255 | %package -n python-brlapi |
75f78027 JB |
256 | Summary: Python 2.x interface to BrlAPI |
257 | Summary(pl.UTF-8): Interfejs Pythona 2.x do BrlAPI | |
3dcc4a01 | 258 | License: LGPL v2.1+ |
0bb357f1 SS |
259 | Group: Libraries |
260 | Requires: brlapi = %{version}-%{release} | |
261 | ||
262 | %description -n python-brlapi | |
75f78027 | 263 | Python 2.x interface to BrlAPI. |
0bb357f1 SS |
264 | |
265 | %description -n python-brlapi -l pl.UTF-8 | |
75f78027 JB |
266 | Interfejs Pythona 2.x do BrlAPI. |
267 | ||
268 | %package -n python3-brlapi | |
269 | Summary: Python 3.x interface to BrlAPI | |
270 | Summary(pl.UTF-8): Interfejs Pythona 3.x do BrlAPI | |
271 | License: LGPL v2.1+ | |
272 | Group: Libraries | |
273 | Requires: brlapi = %{version}-%{release} | |
274 | ||
275 | %description -n python3-brlapi | |
276 | Python 3.x interface to BrlAPI. | |
277 | ||
278 | %description -n python3-brlapi -l pl.UTF-8 | |
279 | Interfejs Pythona 3.x do BrlAPI. | |
0bb357f1 SS |
280 | |
281 | %package -n brlapi-tcl | |
282 | Summary: BrlAPI library for Tcl | |
283 | Summary(pl.UTF-8): Biblioteka BrlAPI dla Tcl | |
3dcc4a01 | 284 | License: LGPL v2.1+ |
0bb357f1 SS |
285 | Group: Libraries |
286 | Requires: brlapi = %{version}-%{release} | |
287 | ||
288 | %description -n brlapi-tcl | |
289 | BrlAPI library for Tcl. | |
290 | ||
291 | %description -n brlapi-tcl -l pl.UTF-8 | |
292 | Biblioteka BrlAPI dla Tcl. | |
293 | ||
91162002 | 294 | %prep |
295 | %setup -q | |
0b1afa7b | 296 | %patch1 -p1 |
0285055e | 297 | %patch4 -p1 |
91162002 | 298 | |
dc8771ff | 299 | %{__sed} -i -e '1s,/usr/bin/python$,%{__python},' Tables/Contraction/latex-access.ctb |
4ce6d094 | 300 | %{__sed} -i -e '1s,/usr/bin/env bash,/bin/bash,' brltty-term brltty-ttysize |
dc8771ff | 301 | |
91162002 | 302 | %build |
dc8771ff | 303 | %{__aclocal} -I m4 |
0b1afa7b | 304 | %{__autoconf} |
915167f5 | 305 | CFLAGS="%{rpmcflags} -I/usr/include/ncurses" |
664a738b | 306 | %configure \ |
0b1afa7b | 307 | %{?with_java:JAVA_HOME=%{java_home}} \ |
664a738b | 308 | --with-install-root="$RPM_BUILD_ROOT" \ |
509de961 | 309 | %{!?with_libbraille:--without-libbraille} \ |
82b1c71c | 310 | %{!?with_espeak:--without-espeak} \ |
1db3af51 | 311 | %{!?with_espeak_ng:--without-espeak_ng} \ |
82b1c71c JB |
312 | %{!?with_flite:--without-flite} \ |
313 | %{!?with_speech_dispatcher:--without-speechd} \ | |
314 | %{!?with_ocaml:--disable-caml-bindings} \ | |
315 | %{!?with_gpm:--disable-gpm} \ | |
f50dc761 | 316 | %{!?with_java:--disable-java-bindings} \ |
1db3af51 JB |
317 | %{!?with_liblouis:--disable-liblouis} \ |
318 | --enable-lisp-bindings \ | |
89a419c7 | 319 | %{!?with_lua:--disable-lua-bindings} \ |
82b1c71c JB |
320 | %{!?with_python:--disable-python-bindings} \ |
321 | %{!?with_tcl:--disable-tcl-bindings} \ | |
322 | %{!?with_x:--disable-x} \ | |
06280668 | 323 | --with-speech-driver="-vv" \ |
91162002 | 324 | --enable-api |
245bd38d JR |
325 | |
326 | %{__make} -j1 | |
91162002 | 327 | |
850bcb5b JR |
328 | %if %{with python} |
329 | cd Bindings/Python | |
330 | %py_build | |
331 | cd ../.. | |
332 | %endif | |
333 | ||
75f78027 JB |
334 | %if %{with python3} |
335 | cd Bindings/Python | |
850bcb5b | 336 | %py3_build |
75f78027 JB |
337 | cd ../.. |
338 | %endif | |
339 | ||
91162002 | 340 | %install |
341 | rm -rf $RPM_BUILD_ROOT | |
47848a6a | 342 | install -d $RPM_BUILD_ROOT/var/lib/brltty |
82b1c71c | 343 | |
47848a6a | 344 | %{__make} -j1 install install-appstream install-dracut install-polkit install-systemd install-udev \ |
89a419c7 JB |
345 | OCAML_INSTALL_TARGET=install-without-findlib \ |
346 | UDEV_PARENT_LOCATION=/lib | |
82b1c71c | 347 | |
4bef0dd9 JB |
348 | # findlib-specific, useless in rpm |
349 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/ocaml/stublibs/dllbrlapi_stubs.so.owner | |
350 | ||
850bcb5b JR |
351 | %if %{with python} |
352 | cd Bindings/Python | |
353 | %py_install | |
354 | cd ../.. | |
355 | %endif | |
356 | ||
75f78027 JB |
357 | %if %{with python3} |
358 | cd Bindings/Python | |
850bcb5b | 359 | %py3_install |
75f78027 JB |
360 | cd ../.. |
361 | %endif | |
362 | ||
a1d6e289 | 363 | %if "%{_lib}" != "lib" |
538473c2 JR |
364 | # Fix java plugin install path on 64-bit archs |
365 | install -d $RPM_BUILD_ROOT%{_libdir}/java | |
366 | %{__mv} $RPM_BUILD_ROOT%{_prefix}/{lib,%{_lib}}/java/libbrlapi_java.so | |
367 | %endif | |
368 | ||
dc8771ff | 369 | install Bootdisks/bp2cf $RPM_BUILD_ROOT%{_bindir}/brltty-bp2cf |
b25dee4e | 370 | cp -p Documents/brltty.conf $RPM_BUILD_ROOT%{_sysconfdir} |
91162002 | 371 | |
1db3af51 JB |
372 | # no sign in source wheter it is zh_CN or zh_TW |
373 | # but seems to contain Traditional Chinese characters | |
374 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{zh,zh_TW} | |
287defab | 375 | |
47848a6a JB |
376 | # packaged as %doc |
377 | %{__rm} $RPM_BUILD_ROOT%{_prefix}/lib/dracut/modules.d/99brltty/README | |
378 | ||
295e8be4 JB |
379 | %find_lang %{name} |
380 | ||
91162002 | 381 | %clean |
382 | rm -rf $RPM_BUILD_ROOT | |
383 | ||
384 | %pre | |
385 | # The pre-install scriptlet. | |
386 | ||
387 | # If a configuration file already exists then rpm installs the new one as | |
388 | # <path>.rpmnew. If this is done then the .rpmnew file is overwritten if it | |
389 | # already exists. | |
390 | ||
391 | # There's no explicit way to tell if a configuration file has been installed | |
392 | # as itself or as a .rpmnew file. The way we'll figure it out, therefore, is by | |
3b0ec988 | 393 | # erasing the .rpmnew file now so that we can see if it gets created later. |
91162002 | 394 | rm -f "%{_sysconfdir}/brltty.conf.rpmnew" |
395 | ||
396 | %post | |
91162002 | 397 | # If BRLTTY's boot parameter has been specified then update the just installed |
398 | # configuration file template to reflect the options supplied thereby. | |
399 | ||
400 | # First, we need to determine which file to update. If there's a .rpmnew file | |
401 | # then update it since a previous configuration file must already have existed. | |
402 | file="%{_sysconfdir}/brltty.conf" | |
403 | new="${file}.rpmnew" | |
404 | [ -f "${new}" ] && file="${new}" | |
405 | ||
406 | # Update the configuration file template via the Bootdisks/bp2cf script. | |
dc8771ff | 407 | %{_bindir}/brltty-bp2cf -u -f "${file}" >/dev/null 2>&1 || : |
91162002 | 408 | |
9b20373a | 409 | %post -n brlapi -p /sbin/ldconfig |
410 | %postun -n brlapi -p /sbin/ldconfig | |
91162002 | 411 | |
295e8be4 | 412 | %files -f %{name}.lang |
91162002 | 413 | %defattr(644,root,root,755) |
c0ab824f | 414 | %doc Documents/{Manual-BRLTTY/English/BRLTTY*,ChangeLog,HISTORY,TODO} |
91162002 | 415 | %attr(755,root,root) %{_bindir}/brltty |
c80b057e | 416 | %attr(755,root,root) %{_bindir}/brltty-atb |
dc8771ff | 417 | %attr(755,root,root) %{_bindir}/brltty-bp2cf |
47848a6a | 418 | %{_bindir}/brltty-config.sh |
dc8771ff | 419 | %attr(755,root,root) %{_bindir}/brltty-clip |
1db3af51 | 420 | %attr(755,root,root) %{_bindir}/brltty-cldr |
509de961 | 421 | %attr(755,root,root) %{_bindir}/brltty-ctb |
47848a6a | 422 | %attr(755,root,root) %{_bindir}/brltty-genkey |
89a419c7 | 423 | %attr(755,root,root) %{_bindir}/brltty-hid |
c80b057e | 424 | %attr(755,root,root) %{_bindir}/brltty-ktb |
1db3af51 JB |
425 | %attr(755,root,root) %{_bindir}/brltty-lscmds |
426 | %attr(755,root,root) %{_bindir}/brltty-lsinc | |
47848a6a | 427 | %attr(755,root,root) %{_bindir}/brltty-mkuser |
1db3af51 | 428 | %attr(755,root,root) %{_bindir}/brltty-morse |
89a419c7 JB |
429 | %{_bindir}/brltty-prologue.bash |
430 | %{_bindir}/brltty-prologue.lua | |
47848a6a | 431 | %{_bindir}/brltty-prologue.sh |
89a419c7 | 432 | %{_bindir}/brltty-prologue.tcl |
47848a6a | 433 | %attr(755,root,root) %{_bindir}/brltty-setcaps |
4ce6d094 | 434 | %attr(755,root,root) %{_bindir}/brltty-term |
509de961 JB |
435 | %attr(755,root,root) %{_bindir}/brltty-trtxt |
436 | %attr(755,root,root) %{_bindir}/brltty-ttb | |
89a419c7 | 437 | %attr(755,root,root) %{_bindir}/brltty-ttysize |
c80b057e | 438 | %attr(755,root,root) %{_bindir}/brltty-tune |
295e8be4 | 439 | %attr(755,root,root) %{_bindir}/eutp |
18f080b9 | 440 | %attr(755,root,root) %{_bindir}/vstp |
eb77b64b | 441 | %{?with_x:%attr(755,root,root) %{_bindir}/xbrlapi} |
91162002 | 442 | %dir %{_libdir}/brltty |
82b1c71c | 443 | # Braille drivers |
c0ab824f SS |
444 | %attr(755,root,root) %{_libdir}/brltty/libbrlttybal.so |
445 | %attr(755,root,root) %{_libdir}/brltty/libbrlttybat.so | |
446 | %attr(755,root,root) %{_libdir}/brltty/libbrlttybba.so | |
82b1c71c | 447 | %attr(755,root,root) %{_libdir}/brltty/libbrlttybbc.so |
c0ab824f | 448 | %attr(755,root,root) %{_libdir}/brltty/libbrlttybbd.so |
c80b057e | 449 | %attr(755,root,root) %{_libdir}/brltty/libbrlttybbg.so |
c0ab824f SS |
450 | %attr(755,root,root) %{_libdir}/brltty/libbrlttybbl.so |
451 | %attr(755,root,root) %{_libdir}/brltty/libbrlttybbm.so | |
452 | %attr(755,root,root) %{_libdir}/brltty/libbrlttybbn.so | |
453 | %attr(755,root,root) %{_libdir}/brltty/libbrlttybcb.so | |
0b1afa7b | 454 | %attr(755,root,root) %{_libdir}/brltty/libbrlttybce.so |
dc8771ff | 455 | %attr(755,root,root) %{_libdir}/brltty/libbrlttybcn.so |
4ce6d094 | 456 | %attr(755,root,root) %{_libdir}/brltty/libbrlttybdp.so |
c0ab824f SS |
457 | %attr(755,root,root) %{_libdir}/brltty/libbrlttybec.so |
458 | %attr(755,root,root) %{_libdir}/brltty/libbrlttybeu.so | |
47848a6a | 459 | %attr(755,root,root) %{_libdir}/brltty/libbrlttybfa.so |
c0ab824f | 460 | %attr(755,root,root) %{_libdir}/brltty/libbrlttybfs.so |
935a2a62 | 461 | %attr(755,root,root) %{_libdir}/brltty/libbrlttybhd.so |
82b1c71c | 462 | %attr(755,root,root) %{_libdir}/brltty/libbrlttybhm.so |
c0ab824f | 463 | %attr(755,root,root) %{_libdir}/brltty/libbrlttybht.so |
509de961 | 464 | %attr(755,root,root) %{_libdir}/brltty/libbrlttybhw.so |
1db3af51 | 465 | %attr(755,root,root) %{_libdir}/brltty/libbrlttybic.so |
509de961 JB |
466 | %attr(755,root,root) %{_libdir}/brltty/libbrlttybir.so |
467 | %{?with_libbraille:%attr(755,root,root) %{_libdir}/brltty/libbrlttyblb.so} | |
c0ab824f SS |
468 | %attr(755,root,root) %{_libdir}/brltty/libbrlttyblt.so |
469 | %attr(755,root,root) %{_libdir}/brltty/libbrlttybmb.so | |
470 | %attr(755,root,root) %{_libdir}/brltty/libbrlttybmd.so | |
295e8be4 | 471 | %attr(755,root,root) %{_libdir}/brltty/libbrlttybmm.so |
c0ab824f | 472 | %attr(755,root,root) %{_libdir}/brltty/libbrlttybmn.so |
82b1c71c | 473 | %attr(755,root,root) %{_libdir}/brltty/libbrlttybmt.so |
509de961 | 474 | %attr(755,root,root) %{_libdir}/brltty/libbrlttybnp.so |
82b1c71c | 475 | %attr(755,root,root) %{_libdir}/brltty/libbrlttybpg.so |
c0ab824f | 476 | %attr(755,root,root) %{_libdir}/brltty/libbrlttybpm.so |
82b1c71c | 477 | %attr(755,root,root) %{_libdir}/brltty/libbrlttybsk.so |
c0ab824f SS |
478 | %attr(755,root,root) %{_libdir}/brltty/libbrlttybtn.so |
479 | %attr(755,root,root) %{_libdir}/brltty/libbrlttybts.so | |
480 | %attr(755,root,root) %{_libdir}/brltty/libbrlttybtt.so | |
481 | %attr(755,root,root) %{_libdir}/brltty/libbrlttybvd.so | |
482 | %attr(755,root,root) %{_libdir}/brltty/libbrlttybvo.so | |
483 | %attr(755,root,root) %{_libdir}/brltty/libbrlttybvr.so | |
484 | %attr(755,root,root) %{_libdir}/brltty/libbrlttybvs.so | |
eb77b64b | 485 | %{?with_x:%attr(755,root,root) %{_libdir}/brltty/libbrlttybxw.so} |
82b1c71c | 486 | # speech synthesizer drivers |
c0ab824f SS |
487 | %attr(755,root,root) %{_libdir}/brltty/libbrlttysal.so |
488 | %attr(755,root,root) %{_libdir}/brltty/libbrlttysbl.so | |
489 | %attr(755,root,root) %{_libdir}/brltty/libbrlttyscb.so | |
1db3af51 | 490 | %{?with_espeak_ng:%attr(755,root,root) %{_libdir}/brltty/libbrlttysen.so} |
82b1c71c JB |
491 | %{?with_espeak:%attr(755,root,root) %{_libdir}/brltty/libbrlttyses.so} |
492 | %{?with_flite:%attr(755,root,root) %{_libdir}/brltty/libbrlttysfl.so} | |
c0ab824f SS |
493 | %attr(755,root,root) %{_libdir}/brltty/libbrlttysfv.so |
494 | %attr(755,root,root) %{_libdir}/brltty/libbrlttysgs.so | |
dfe38ff6 | 495 | %{?with_mikropuhe:%attr(755,root,root) %{_libdir}/brltty/libbrlttysmp.so} |
82b1c71c | 496 | %{?with_speech_dispatcher:%attr(755,root,root) %{_libdir}/brltty/libbrlttyssd.so} |
dfe38ff6 JB |
497 | %{?with_swift:%attr(755,root,root) %{_libdir}/brltty/libbrlttyssw.so} |
498 | %{?with_theta:%attr(755,root,root) %{_libdir}/brltty/libbrlttysth.so} | |
499 | %{?with_viavoice:%attr(755,root,root) %{_libdir}/brltty/libbrlttysvv.so} | |
b538cd8d | 500 | %attr(755,root,root) %{_libdir}/brltty/libbrlttysxs.so |
82b1c71c | 501 | # screen drivers |
681d76a3 | 502 | %{?with_at_spi2:%attr(755,root,root) %{_libdir}/brltty/libbrlttyxa2.so} |
82b1c71c | 503 | %{?with_at_spi:%attr(755,root,root) %{_libdir}/brltty/libbrlttyxas.so} |
4ce6d094 JB |
504 | %attr(755,root,root) %{_libdir}/brltty/libbrlttyxem.so |
505 | %attr(755,root,root) %{_libdir}/brltty/libbrlttyxfv.so | |
82b1c71c JB |
506 | %attr(755,root,root) %{_libdir}/brltty/libbrlttyxlx.so |
507 | %attr(755,root,root) %{_libdir}/brltty/libbrlttyxsc.so | |
47848a6a JB |
508 | %if "%{_libexecdir}" != "%{_libdir}" |
509 | %dir %{_libexecdir}/brltty | |
510 | %endif | |
4ce6d094 | 511 | %attr(755,root,root) %{_libexecdir}/brltty/brltty-pty |
47848a6a JB |
512 | %attr(755,root,root) %{_libexecdir}/brltty/systemd-wrapper |
513 | %attr(755,root,root) %{_libexecdir}/brltty/udev-wrapper | |
91162002 | 514 | %{_sysconfdir}/brltty |
1c33f0ca | 515 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/brltty.conf |
89a419c7 | 516 | /lib/udev/rules.d/90-brltty-hid.rules |
47848a6a | 517 | /lib/udev/rules.d/90-brltty-uinput.rules |
89a419c7 JB |
518 | /lib/udev/rules.d/90-brltty-usb-customized.rules |
519 | /lib/udev/rules.d/90-brltty-usb-generic.rules | |
47848a6a JB |
520 | %{systemdunitdir}/brltty.path |
521 | %{systemdunitdir}/brltty@.path | |
522 | %{systemdunitdir}/brltty@.service | |
523 | %{systemdunitdir}/brltty-device@.service | |
a8f3581f | 524 | %{systemdtmpfilesdir}/brltty.conf |
47848a6a JB |
525 | #%{_prefix}/lib/sysusers.d/brltty.conf |
526 | #%attr(3777,brltty,brltty) | |
82b1c71c | 527 | %dir /var/lib/BrlAPI |
47848a6a JB |
528 | #%attr(2770,brltty,brltty) |
529 | %dir /var/lib/brltty | |
c0ab824f | 530 | %{_mandir}/man1/brltty.1* |
295e8be4 | 531 | %{_mandir}/man1/eutp.1* |
c0ab824f | 532 | %{_mandir}/man1/vstp.1* |
b538cd8d | 533 | %{?with_x:%{_mandir}/man1/xbrlapi.1*} |
91162002 | 534 | |
295e8be4 JB |
535 | %if %{with x} |
536 | # gdm autostart - subpackage? | |
537 | #%{_datadir}/gdm/greeter/autostart/xbrlapi.desktop | |
b439830f | 538 | #/etc/X11/Xsession.d/90xbrlapi |
b25dee4e | 539 | %{_datadir}/metainfo/org.a11y.brltty.metainfo.xml |
295e8be4 | 540 | %endif |
b25dee4e | 541 | %{_datadir}/polkit-1/actions/org.a11y.brlapi.policy |
47848a6a JB |
542 | %{_datadir}/polkit-1/rules.d/org.a11y.brlapi.rules |
543 | ||
544 | %files -n dracut-brltty | |
545 | %defattr(644,root,root,755) | |
546 | %doc Initramfs/Dracut/README | |
547 | %dir %{_prefix}/lib/dracut/modules.d/99brltty | |
548 | %attr(755,root,root) %{_prefix}/lib/dracut/modules.d/99brltty/alsa-start.sh | |
549 | %attr(755,root,root) %{_prefix}/lib/dracut/modules.d/99brltty/bluetooth-start.sh | |
550 | %attr(755,root,root) %{_prefix}/lib/dracut/modules.d/99brltty/brltty-start.sh | |
551 | %attr(755,root,root) %{_prefix}/lib/dracut/modules.d/99brltty/brltty-stop.sh | |
552 | %attr(755,root,root) %{_prefix}/lib/dracut/modules.d/99brltty/dbus-start.sh | |
553 | %attr(755,root,root) %{_prefix}/lib/dracut/modules.d/99brltty/module-setup.sh | |
554 | %attr(755,root,root) %{_prefix}/lib/dracut/modules.d/99brltty/pulse-start.sh | |
555 | %attr(755,root,root) %{_prefix}/lib/dracut/modules.d/99brltty/pulse-stop.sh | |
556 | %attr(755,root,root) %{_prefix}/lib/dracut/modules.d/99brltty/speechd-start.sh | |
295e8be4 | 557 | |
91162002 | 558 | %files -n brlapi |
559 | %defattr(644,root,root,755) | |
82b1c71c | 560 | %attr(755,root,root) %{_libdir}/libbrlapi.so.*.*.* |
dc8771ff | 561 | %attr(755,root,root) %ghost %{_libdir}/libbrlapi.so.0.8 |
91162002 | 562 | |
563 | %files -n brlapi-devel | |
564 | %defattr(644,root,root,755) | |
608626ec | 565 | %doc Documents/Manual-BrlAPI/English/BrlAPI* |
1c33f0ca | 566 | %attr(755,root,root) %{_libdir}/libbrlapi.so |
91162002 | 567 | %{_includedir}/brltty |
18f080b9 | 568 | %{_includedir}/brlapi*.h |
47848a6a | 569 | %{_pkgconfigdir}/brltty.pc |
82b1c71c | 570 | %{_mandir}/man3/brlapi_*.3* |
91162002 | 571 | |
572 | %files -n brlapi-static | |
573 | %defattr(644,root,root,755) | |
574 | %{_libdir}/libbrlapi.a | |
608626ec | 575 | |
09255552 | 576 | %if %{with apidocs} |
608626ec SS |
577 | %files -n brlapi-apidocs |
578 | %defattr(644,root,root,755) | |
579 | %doc Documents/BrlAPIref/html/* | |
09255552 SS |
580 | %endif |
581 | ||
582 | %if %{with java} | |
332e4348 | 583 | %files -n java-brlapi |
09255552 | 584 | %defattr(644,root,root,755) |
3dcc4a01 | 585 | %attr(755,root,root) %{_libdir}/java/libbrlapi_java.so |
09255552 SS |
586 | %{_javadir}/brlapi.jar |
587 | %endif | |
0bb357f1 | 588 | |
89a419c7 JB |
589 | %if %{with lua} |
590 | %files -n lua-brlapi | |
591 | %defattr(644,root,root,755) | |
592 | %attr(755,root,root) %{_libdir}/lua/*.*/brlapi.so | |
593 | %endif | |
594 | ||
82b1c71c JB |
595 | %if %{with ocaml} |
596 | %files -n ocaml-brlapi | |
597 | %defattr(644,root,root,755) | |
598 | %attr(755,root,root) %{_libdir}/ocaml/stublibs/dllbrlapi_stubs.so | |
82b1c71c JB |
599 | |
600 | %files -n ocaml-brlapi-devel | |
601 | %defattr(644,root,root,755) | |
602 | %dir %{_libdir}/ocaml/brlapi | |
603 | %{_libdir}/ocaml/brlapi/META | |
604 | %{_libdir}/ocaml/brlapi/brlapi.cm[aix]* | |
605 | %{_libdir}/ocaml/brlapi/brlapi.mli | |
606 | %{_libdir}/ocaml/brlapi/libbrlapi_stubs.a | |
607 | %endif | |
608 | ||
0bb357f1 SS |
609 | %if %{with python} |
610 | %files -n python-brlapi | |
611 | %defattr(644,root,root,755) | |
0bb357f1 | 612 | %attr(755,root,root) %{py_sitedir}/brlapi.so |
509de961 | 613 | %{py_sitedir}/Brlapi-%{brlapi_ver}-py*.egg-info |
75f78027 JB |
614 | |
615 | %if %{with python3} | |
616 | %files -n python3-brlapi | |
617 | %defattr(644,root,root,755) | |
618 | %attr(755,root,root) %{py3_sitedir}/brlapi.cpython-*.so | |
619 | %{py3_sitedir}/Brlapi-%{brlapi_ver}-py*.egg-info | |
620 | %endif | |
0bb357f1 SS |
621 | %endif |
622 | ||
623 | %if %{with tcl} | |
624 | %files -n brlapi-tcl | |
625 | %defattr(644,root,root,755) | |
509de961 JB |
626 | %dir %{_libdir}/brlapi-%{brlapi_ver} |
627 | %attr(755,root,root) %{_libdir}/brlapi-%{brlapi_ver}/libbrlapi_tcl.so | |
628 | %{_libdir}/brlapi-%{brlapi_ver}/pkgIndex.tcl | |
0bb357f1 | 629 | %endif |