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