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