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