]> git.pld-linux.org Git - packages/brltty.git/blame - brltty.spec
- build also python3 module
[packages/brltty.git] / brltty.spec
CommitLineData
3704768a 1# TODO:
e6a1be7c 2# - what is that huge %post script?
42577d78 3#
608626ec 4# Conditional build:
82b1c71c 5%bcond_without apidocs # documentation generated with doxygen
3dcc4a01 6%bcond_without java # Java 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
82b1c71c
JB
14%bcond_without espeak # eSpeak synthesizer driver
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]
509de961
JB
21%bcond_without at_spi # AtSpi screen driver
22%bcond_without at_spi2 # AtSpi2 screen driver
23#
295e8be4 24%define brlapi_ver 0.6.1
608626ec 25#
332e4348 26%include /usr/lib/rpm/macros.java
9b20373a 27Summary: Braille display driver for Linux/Unix
8731bfde 28Summary(pl.UTF-8): Sterownik do wyświetlaczy Braille'a
91162002 29Name: brltty
295e8be4
JB
30Version: 5.0
31Release: 1
9b20373a 32Group: Daemons
3dcc4a01 33License: GPL v2+ (brltty and drivers), LGPL v2.1+ (APIs)
295e8be4
JB
34Source0: http://mielke.cc/brltty/archive/%{name}-%{version}.tar.xz
35# Source0-md5: 44c71a973424658557b931f703017481
36Patch0: %{name}-format.patch
0b1afa7b
JB
37Patch1: %{name}-java.patch
38Patch2: %{name}-speech-dispatcher.patch
9c5b0c32 39Patch3: %{name}-python.patch
1a7665e9 40URL: http://mielke.cc/brltty/
82b1c71c
JB
41BuildRequires: alsa-lib-devel
42%{?with_at_spi:BuildRequires: at-spi-devel}
42577d78 43BuildRequires: autoconf >= 2.62
664a738b 44BuildRequires: automake
91162002 45BuildRequires: bison
82b1c71c
JB
46# just headers
47BuildRequires: bluez-libs-devel
48%{?with_at_spi2:BuildRequires: dbus-devel >= 1.0}
608626ec 49%{?with_apidocs:BuildRequires: doxygen}
ed3025fe 50%{?with_espeak:BuildRequires: espeak-devel}
dfe38ff6 51%{?with_flite:BuildRequires: flite-devel}
82b1c71c 52%{?with_gpm:BuildRequires: gpm-devel}
09255552 53%{?with_java:BuildRequires: jdk}
0b1afa7b 54%{?with_java:BuildRequires: jpackage-utils}
dfe38ff6 55%{?with_libbraille:BuildRequires: libbraille-devel}
82b1c71c 56BuildRequires: libicu-devel
eb77b64b 57BuildRequires: ncurses-devel
6913fe15 58%{?with_ocaml:BuildRequires: ocaml}
ac744b8d 59BuildRequires: pkgconfig
295e8be4 60%{?with_python:BuildRequires: python-Cython}
75f78027 61%{?with_python3:BuildRequires: python3-Cython}
332e4348 62%{?with_java:BuildRequires: rpm-javaprov}
0bb357f1 63%{?with_python:BuildRequires: rpm-pythonprov}
0b1afa7b 64%{?with_speech_dispatcher:BuildRequires: speech-dispatcher-devel >= 0.8}
295e8be4
JB
65BuildRequires: tar >= 1:1.22
66%{?with_tcl:BuildRequires: tcl-devel >= 8.5}
82b1c71c
JB
67%if %{with x}
68BuildRequires: xorg-lib-libX11-devel
69BuildRequires: xorg-lib-libXaw-devel
70BuildRequires: xorg-lib-libXext-devel
71BuildRequires: xorg-lib-libXt-devel
72BuildRequires: xorg-lib-libXtst-devel
73%endif
295e8be4 74BuildRequires: xz
dfe38ff6
JB
75#%{?with_mikropuhe:BuildRequires: Mikropuhe-devel (-lmikropuhe <mpwrfile.h>)}
76#%{?with_swift:BuildRequires: Swift-devel (-lswift <swift.h>)}
77#%{?with_theta:BuildRequires: Theta-devel (-ltheta <theta.h>)}
78#%{?with_viavoice:BuildRequires: ViaVoice-devel (-libmeci50 <eci.h>)}
91162002 79BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
80
81%description
82BRLTTY is a background process (daemon) which provides access to the
83Linux/Unix console (when in text mode) for a blind person using a
33e3c5f9 84refreshable Braille display. It drives the Braille display, and
3b0ec988 85provides complete screen review functionality. Some speech capability
91162002 86has also been incorporated.
87
54f59947
JR
88%description -l pl.UTF-8
89BRLTTY jest demonem, który udostępnia dostęp do linuksowej konsoli (w
90trybie tekstowym) dla niewidomych używających wyświetlaczy Braille'a z
91odświeżaniem (refreshable Braille display). BRLTTY steruje
92wyświetlaczem Braille'a i dostarcza funkcjonalność całkowitego
93przeglądu ekranu. Do tego pakietu została włączona możliwość syntezy
9b20373a 94mowy.
91162002 95
96%package -n brlapi
9b20373a 97Summary: Application Programming Interface for BRLTTY
8731bfde 98Summary(pl.UTF-8): API do BRLTTY
3dcc4a01
JB
99License: LGPL v2.1+
100Group: Libraries
91162002 101
102%description -n brlapi
103This package provides the run-time support for the Application
104Programming Interface to BRLTTY.
105
9b20373a 106Install this package if you have an application which directly
107accesses a refreshable Braille display.
91162002 108
54f59947
JR
109%description -n brlapi -l pl.UTF-8
110Ten pakiet zawiera środowisko uruchomieniowe dla programów
111korzystających z API BRLTTY.
91162002 112
54f59947
JR
113Zainstaluj ten pakiet jeśli masz aplikację, która bezpośrednio używa
114wyświetlacza Braille'a z odświeżaniem.
91162002 115
116%package -n brlapi-devel
9b20373a 117Summary: Headers and documentation for BrlAPI
8731bfde 118Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja do BrlAPI
3dcc4a01 119License: LGPL v2.1+
3b0ec988 120Group: Development/Libraries
664a738b 121Requires: brlapi = %{version}-%{release}
91162002 122
123%description -n brlapi-devel
9b20373a 124This package provides the header files, shared object linker
125reference, and reference documentation for BrlAPI (the Application
3b0ec988 126Programming Interface to BRLTTY). It enables the implementation of
9b20373a 127applications which take direct advantage of a refreshable Braille
128display in order to present information in ways which are more
129appropriate for blind users and/or to provide user interfaces which
130are more specifically atuned to their needs.
91162002 131
3b0ec988 132Install this package if you're developing or maintaining an
133application which directly accesses a refreshable Braille display.
91162002 134
54f59947
JR
135%description -n brlapi-devel -l pl.UTF-8
136Ten pakiet zawiera pliki nagłówkowe oraz dokumentację do BrlAPI (API
137do BRLTTY). BrlAPI pozwala implementować aplikacje, które bezpośrednio
138korzystają z wyświetlaczy Braille'a dostarczając interfejs użytkownika
139bardziej przystosowany dla osób niewidomych.
91162002 140
54f59947
JR
141Zainstaluj ten pakiet, jeśli tworzysz lub nadzorujesz aplikację
142korzystającą bezpośrednio z odświeżalnych wyświetlaczy Braille'a.
91162002 143
144%package -n brlapi-static
9b20373a 145Summary: Static BrlAPI library
8731bfde 146Summary(pl.UTF-8): Statyczna biblioteka BrlAPI
3dcc4a01 147License: LGPL v2.1+
3b0ec988 148Group: Development/Libraries
664a738b 149Requires: brlapi-devel = %{version}-%{release}
91162002 150
151%description -n brlapi-static
9b20373a 152This is package with static BrlAPI library.
91162002 153
54f59947
JR
154%description -n brlapi-static -l pl.UTF-8
155Ten pakiet zawiera statyczną wersję biblioteki BrlAPI.
91162002 156
608626ec
SS
157%package -n brlapi-apidocs
158Summary: BrlAPI documentation
159Summary(pl.UTF-8): Documentacja BrlAPI
160Group: Documentation
161
162%description -n brlapi-apidocs
163Documentation for BrlAPI in HTML format generated from brltty
164sources by doxygen.
165
166%description -n brlapi-apidocs -l pl.UTF-8
167Dokumentacja BrlAPI w formacie HTML generowane ze
168źrodeł brltty przez doxygen.
169
332e4348 170%package -n java-brlapi
09255552
SS
171Summary: BrlAPI library for Java
172Summary(pl.UTF-8): Biblioteka BrlAPI dla Javy
3dcc4a01 173License: LGPL v2.1+
09255552
SS
174Group: Libraries
175Requires: brlapi = %{version}-%{release}
176
332e4348 177%description -n java-brlapi
09255552
SS
178BrlAPI library for Java.
179
332e4348 180%description -n java-brlapi -l pl.UTF-8
09255552
SS
181Biblioteka BrlAPI dla Javy.
182
82b1c71c
JB
183%package -n ocaml-brlapi
184Summary: OCaml binding for BrlAPI
185Summary(pl.UTF-8): Wiązania OCamla do BrlAPI
3dcc4a01 186License: LGPL v2.1+
82b1c71c
JB
187Group: Libraries
188Requires: brlapi = %{version}-%{release}
189%requires_eq ocaml-runtime
190
191%description -n ocaml-brlapi
192OCaml binding for BrlAPI.
193
194%description -n ocaml-brlapi -l pl.UTF-8
195Wiązania OCamla do BrlAPI.
196
197%package -n ocaml-brlapi-devel
198Summary: OCaml binding for BrlAPI - development files
199Summary(pl.UTF-8): Wiązania OCamla do BrlAPI - pliki programistyczne
3dcc4a01 200License: LGPL v2.1+
82b1c71c
JB
201Group: Libraries
202Requires: ocaml-brlapi = %{version}-%{release}
203%requires_eq ocaml
204
205%description -n ocaml-brlapi-devel
206OCaml binding for BrlAPI - development files.
207
208%description -n ocaml-brlapi-devel -l pl.UTF-8
209Wiązania OCamla do BrlAPI - pliki programistyczne.
210
0bb357f1 211%package -n python-brlapi
75f78027
JB
212Summary: Python 2.x interface to BrlAPI
213Summary(pl.UTF-8): Interfejs Pythona 2.x do BrlAPI
3dcc4a01 214License: LGPL v2.1+
0bb357f1
SS
215Group: Libraries
216Requires: brlapi = %{version}-%{release}
217
218%description -n python-brlapi
75f78027 219Python 2.x interface to BrlAPI.
0bb357f1
SS
220
221%description -n python-brlapi -l pl.UTF-8
75f78027
JB
222Interfejs Pythona 2.x do BrlAPI.
223
224%package -n python3-brlapi
225Summary: Python 3.x interface to BrlAPI
226Summary(pl.UTF-8): Interfejs Pythona 3.x do BrlAPI
227License: LGPL v2.1+
228Group: Libraries
229Requires: brlapi = %{version}-%{release}
230
231%description -n python3-brlapi
232Python 3.x interface to BrlAPI.
233
234%description -n python3-brlapi -l pl.UTF-8
235Interfejs Pythona 3.x do BrlAPI.
0bb357f1
SS
236
237%package -n brlapi-tcl
238Summary: BrlAPI library for Tcl
239Summary(pl.UTF-8): Biblioteka BrlAPI dla Tcl
3dcc4a01 240License: LGPL v2.1+
0bb357f1
SS
241Group: Libraries
242Requires: brlapi = %{version}-%{release}
243
244%description -n brlapi-tcl
245BrlAPI library for Tcl.
246
247%description -n brlapi-tcl -l pl.UTF-8
248Biblioteka BrlAPI dla Tcl.
249
91162002 250%prep
251%setup -q
6c9c25b1 252%patch0 -p1
0b1afa7b
JB
253%patch1 -p1
254%patch2 -p1
9c5b0c32 255%patch3 -p1
91162002 256
257%build
0b1afa7b 258%{__autoconf}
915167f5 259CFLAGS="%{rpmcflags} -I/usr/include/ncurses"
664a738b 260%configure \
0b1afa7b 261 %{?with_java:JAVA_HOME=%{java_home}} \
664a738b 262 --with-install-root="$RPM_BUILD_ROOT" \
509de961 263 %{!?with_libbraille:--without-libbraille} \
82b1c71c
JB
264 %{!?with_espeak:--without-espeak} \
265 %{!?with_flite:--without-flite} \
266 %{!?with_speech_dispatcher:--without-speechd} \
267 %{!?with_ocaml:--disable-caml-bindings} \
268 %{!?with_gpm:--disable-gpm} \
f50dc761 269 %{!?with_java:--disable-java-bindings} \
82b1c71c
JB
270 %{!?with_python:--disable-python-bindings} \
271 %{!?with_tcl:--disable-tcl-bindings} \
272 %{!?with_x:--disable-x} \
91162002 273 --enable-api
245bd38d
JR
274
275%{__make} -j1
91162002 276
75f78027
JB
277%if %{with python3}
278cd Bindings/Python
279%{__python3} setup.py build \
280 -b build-3
281cd ../..
282%endif
283
91162002 284directory="doc"
285mkdir -p "$directory"
286for file in `find . \( -path "./$directory" -o -path ./Documents \) -prune -o \( -name 'README*' -o -name '*.txt' -o -name '*.html' -o -name '*.sgml' -o \( -path "./Bootdisks/*" -type f -perm +ugo=x \) \) -print`
287do
9b20373a 288 mkdir -p "$directory/${file%/*}"
289 cp -rp "$file" "$directory/$file"
91162002 290done
291
292%install
293rm -rf $RPM_BUILD_ROOT
82b1c71c
JB
294
295%{__make} -j1 install \
296 OCAML_INSTALL_TARGET=install-without-findlib
297
75f78027
JB
298%if %{with python3}
299cd Bindings/Python
300%{__python3} setup.py \
301 build \
302 -b build-3 \
303 install \
304 --optimize=2 \
305 --skip-build \
306 --root=$RPM_BUILD_ROOT
307cd ../..
308%endif
309
538473c2
JR
310%if %{_lib} != "lib"
311 # Fix java plugin install path on 64-bit archs
312 install -d $RPM_BUILD_ROOT%{_libdir}/java
313 %{__mv} $RPM_BUILD_ROOT%{_prefix}/{lib,%{_lib}}/java/libbrlapi_java.so
314%endif
315
3b0ec988 316install Documents/brltty.conf $RPM_BUILD_ROOT%{_sysconfdir}
91162002 317
82b1c71c
JB
318install -d $RPM_BUILD_ROOT/usr/lib/tmpfiles.d
319cat >$RPM_BUILD_ROOT/usr/lib/tmpfiles.d/brltty.conf <<EOF
320d /var/run/brltty 0755 root root -
321EOF
322
295e8be4
JB
323%find_lang %{name}
324
91162002 325%clean
326rm -rf $RPM_BUILD_ROOT
327
328%pre
329# The pre-install scriptlet.
330
331# If a configuration file already exists then rpm installs the new one as
332# <path>.rpmnew. If this is done then the .rpmnew file is overwritten if it
333# already exists.
334
335# There's no explicit way to tell if a configuration file has been installed
336# as itself or as a .rpmnew file. The way we'll figure it out, therefore, is by
3b0ec988 337# erasing the .rpmnew file now so that we can see if it gets created later.
91162002 338rm -f "%{_sysconfdir}/brltty.conf.rpmnew"
339
340%post
341# The post-install scriptlet.
342
343# If BRLTTY's boot parameter has been specified then update the just installed
344# configuration file template to reflect the options supplied thereby.
345
346# First, we need to determine which file to update. If there's a .rpmnew file
347# then update it since a previous configuration file must already have existed.
348file="%{_sysconfdir}/brltty.conf"
349new="${file}.rpmnew"
350[ -f "${new}" ] && file="${new}"
351
352# Update the configuration file template via the Bootdisks/bp2cf script.
353# Include it right within this scriptlet so that it needn't be installed.
354# Imbed it within a subshell to ensure that it won't impact this scriptlet.
355(
c247b245 356 # First, set bp2cf's command line arguments.
357 set -- -u -f "${file}"
91162002 358
359#!/bin/sh
360###############################################################################
361# BRLTTY - A background process providing access to the Linux console (when in
9b20373a 362# text mode) for a blind person using a refreshable Braille display.
91162002 363#
364# Copyright (C) 1995-2003 by The BRLTTY Team. All rights reserved.
365#
366# BRLTTY comes with ABSOLUTELY NO WARRANTY.
367#
368# This is free software, placed under the terms of the
369# GNU General Public License, as published by the Free Software
370# Foundation. Please see the file COPYING for details.
371#
372# Web Page: http://mielke.cc/brltty/
373#
374# This software is maintained by Dave Mielke <dave@mielke.cc>.
375###############################################################################
376
377# Convert the boot parameter to configuration file directives.
378# If /proc is mounted then use the brltty= boot parameter in /proc/cmdline.
379# If /proc is not mounted then use the brltty environment variable.
380# Invoke with -h for usage information.
381
382programName="${0##*/}"
383programMessage()
384{
c247b245 385 echo 2>&1 "${programName}: ${1}"
91162002 386}
387syntaxError()
388{
c247b245 389 programMessage "${1}"
390 exit 2
91162002 391}
392internalError()
393{
c247b245 394 programMessage "${1}"
395 exit 3
91162002 396}
397
398configurationFile=""
399requestedAction=create
400deviceTranslation=none
401requestedParameter=""
402OPTIND=1
403while getopts ":f:cundop:h" option
404do
c247b245 405 case "${option}" in
406 f) configurationFile="${OPTARG}";;
407 c) requestedAction=create;;
408 u) requestedAction=update;;
409 n) deviceTranslation=none;;
410 d) deviceTranslation=devfs;;
411 o) deviceTranslation=old;;
412 p) requestedParameter="${OPTARG}";;
413 h)
414 cat <<EOF
91162002 415Usage: ${programName} [option ...]
416-f file The configuration file to create/update.
417-c Create the configuration file (write to stdout if no -f).
418-u Update the configuration file (copying from stdin to stdout if no -f).
419-n Do not translate device paths.
420-d Do old-style to devfs device path translation.
421-o Do devfs to old-style device path translation.
422-p [driver][,[device][,[table]]]
423 Explicitly specify the boot parameter.
424-h Display this usage summary.
425EOF
c247b245 426 exit 0
427 ;;
428 \?) syntaxError "unknown option: -${OPTARG}";;
429 :) syntaxError "missing value: -${OPTARG}";;
430 *) internalError "unimplemented option: -${option}";;
431 esac
91162002 432done
433shift "`expr $OPTIND - 1`"
434[ "${#}" -eq 0 ] || syntaxError "too many parameters."
435
c247b245 436case "${requestedAction}" in
437 create)
438 putConfigurationLine()
439 {
440 echo "${1}" || exit 4
441 }
442 startConfigurationFile()
443 {
444 [ -n "${configurationFile}" ] && exec >"${configurationFile}"
445 putConfigurationLine "`makeHeaderLine Created`"
446 putConfigurationLine "`makeParameterLine`"
447 putConfigurationLine ""
448 }
449 putConfigurationDirective()
450 {
451 putConfigurationLine "${1} ${2}"
452 }
453 finalizeConfigurationFile()
454 {
455 :
456 }
457 ;;
458 update)
459 putSedCommand()
460 {
461 sedScript="${sedScript}
91162002 462${1}"
c247b245 463 }
464 startConfigurationFile()
465 {
106ddbb5 466 if [ -n "${configurationFile}" ]; then
c247b245 467 [ -e "${configurationFile}" ] || syntaxError "file not found: ${configurationFile}"
468 [ -f "${configurationFile}" ] || syntaxError "not a file: ${configurationFile}"
469 [ -r "${configurationFile}" ] || syntaxError "file not readable: ${configurationFile}"
470 [ -w "${configurationFile}" ] || syntaxError "file not writable: ${configurationFile}"
471 outputFile="${configurationFile}.new"
472 exec <"${configurationFile}" >"${outputFile}"
473 fi
474 sedScript=""
475 putSedCommand "1i\\
91162002 476`makeHeaderLine Updated`\\
477`makeParameterLine`\\
478"
c247b245 479 }
480 putConfigurationDirective()
481 {
482 value="`echo "${2}" | sed -e 's%\\([/\\]\\)%\\\\\\1%g'`"
483 putSedCommand "/^ *#\\(${1} .*\\)/s//\\1/"
484 putSedCommand "/^ *\\(${1}\\) .*/s//\\1 ${value}/"
485 }
486 finalizeConfigurationFile()
487 {
488 sed -e "${sedScript}"
489 [ -n "${outputFile}" ] && mv -f "${outputFile}" "${configurationFile}"
490 }
491 ;;
492 *) internalError "unimplemented action: ${requestedAction}";;
91162002 493esac
494
495translateDevice_none()
496{
c247b245 497 :
91162002 498}
499translateDevice_devfs()
500{
c247b245 501 minor="${device#ttyS}"
106ddbb5 502 if [ "${minor}" != "${device}" ]; then
c247b245 503 device="tts/${minor}"
504 return 0
505 fi
506 minor="${device#lp}"
106ddbb5 507 if [ "${minor}" != "${device}" ]; then
c247b245 508 device="printers/${minor}"
509 return 0
510 fi
511 programMessage "unsupported old-style device: ${device}"
91162002 512}
513translateDevice_old()
514{
c247b245 515 major="${device%%/*}"
106ddbb5 516 if [ "${major}" != "${device}" ]; then
c247b245 517 minor="${device#*/}"
518 case "${major}" in
519 tts) devfs="ttyS${minor}";;
520 printers) devfs="lp${minor}";;
521 esac
522 fi
106ddbb5 523 if [ -n "${devfs}" ]; then
c247b245 524 device="${devfs}"
525 else
526 programMessage "unsupported devfs device: ${device}"
527 fi
91162002 528}
529
530makeHeaderLine()
531{
c247b245 532 echo "# ${1} by brltty-bp2cf`date +' on %Y-%m-%d at %H:%M:%S %Z (UTC%z)'`."
91162002 533}
534makeParameterLine()
535{
c247b245 536 echo "# Boot Parameter:${bootParameter}"
91162002 537}
538putConfigurationFile()
539{
c247b245 540 startConfigurationFile
541 [ -n "${brailleDriver}" ] && putConfigurationDirective "braille-driver" "${brailleDriver}"
542 [ -n "${brailleDevice}" ] && {
543 device="`echo "${brailleDevice}" | sed -e 's%//*%/%g' -e 's%^/dev/%%'`"
106ddbb5 544 if [ "${device#/}" = "${device}" ]; then
c247b245 545 translateDevice_${deviceTranslation}
546 fi
547 putConfigurationDirective "braille-device" "${device}"
548 }
549 [ -n "${textTable}" ] && putConfigurationDirective "text-table" "${textTable}"
550 finalizeConfigurationFile
91162002 551}
552parseBootParameter()
553{
c247b245 554 bootParameter="${bootParameter} ${1}"
555 number=1
106ddbb5 556 while [ "${number}" -le 3 ]; do
c247b245 557 cut="cut -d, -f${number}"
558 [ "${number}" -gt 1 ] && cut="${cut} -s"
559 operand="`echo ${1} | ${cut}`"
106ddbb5 560 if [ -n "${operand}" ]; then
c247b245 561 case "${number}" in
562 1) brailleDriver="${operand}";;
563 2) brailleDevice="${operand}";;
564 3) textTable="${operand}";;
565 esac
566 fi
567 number="`expr ${number} + 1`"
568 done
91162002 569}
570putBootParameter()
571{
c247b245 572 parseBootParameter "${1}"
573 putConfigurationFile
91162002 574}
575parseBootCommand()
576{
c247b245 577 found=false
106ddbb5 578 while [ "${#}" -gt 0 ]; do
c247b245 579 case "${1}" in
580 "brltty="*)
581 found=true
582 parseBootParameter "${1#*=}"
583 ;;
584 esac
585 shift
586 done
587 "${found}" && putConfigurationFile
91162002 588}
589
590brailleDriver=""
591brailleDevice=""
592textTable=""
593bootCommandFile="/proc/cmdline"
106ddbb5 594if [ -n "${requestedParameter}" ]; then
c247b245 595 putBootParameter "${requestedParameter}"
106ddbb5 596elif [ -f "${bootCommandFile}" ]; then
c247b245 597 parseBootCommand `cat "${bootCommandFile}"`
106ddbb5 598elif [ -n "${brltty}" ]; then
c247b245 599 putBootParameter "${brltty}"
91162002 600fi
601exit 0
602)
603
9b20373a 604%post -n brlapi -p /sbin/ldconfig
605%postun -n brlapi -p /sbin/ldconfig
91162002 606
295e8be4 607%files -f %{name}.lang
91162002 608%defattr(644,root,root,755)
c0ab824f 609%doc Documents/{Manual-BRLTTY/English/BRLTTY*,ChangeLog,HISTORY,TODO}
b538cd8d 610%doc doc/{Bindings,Bootdisks,Drivers,Patches,Tables,README,nsistrings.txt}
91162002 611%attr(755,root,root) %{_bindir}/brltty
c0ab824f 612%attr(755,root,root) %{_bindir}/brltty-config
509de961
JB
613%attr(755,root,root) %{_bindir}/brltty-ctb
614%attr(755,root,root) %{_bindir}/brltty-install
615%attr(755,root,root) %{_bindir}/brltty-trtxt
616%attr(755,root,root) %{_bindir}/brltty-ttb
295e8be4 617%attr(755,root,root) %{_bindir}/eutp
18f080b9 618%attr(755,root,root) %{_bindir}/vstp
eb77b64b 619%{?with_x:%attr(755,root,root) %{_bindir}/xbrlapi}
91162002 620%dir %{_libdir}/brltty
82b1c71c 621# Braille drivers
c0ab824f
SS
622%attr(755,root,root) %{_libdir}/brltty/libbrlttybal.so
623%attr(755,root,root) %{_libdir}/brltty/libbrlttybat.so
624%attr(755,root,root) %{_libdir}/brltty/libbrlttybba.so
82b1c71c 625%attr(755,root,root) %{_libdir}/brltty/libbrlttybbc.so
c0ab824f
SS
626%attr(755,root,root) %{_libdir}/brltty/libbrlttybbd.so
627%attr(755,root,root) %{_libdir}/brltty/libbrlttybbl.so
628%attr(755,root,root) %{_libdir}/brltty/libbrlttybbm.so
629%attr(755,root,root) %{_libdir}/brltty/libbrlttybbn.so
630%attr(755,root,root) %{_libdir}/brltty/libbrlttybcb.so
0b1afa7b 631%attr(755,root,root) %{_libdir}/brltty/libbrlttybce.so
c0ab824f
SS
632%attr(755,root,root) %{_libdir}/brltty/libbrlttybec.so
633%attr(755,root,root) %{_libdir}/brltty/libbrlttybeu.so
634%attr(755,root,root) %{_libdir}/brltty/libbrlttybfs.so
82b1c71c 635%attr(755,root,root) %{_libdir}/brltty/libbrlttybhm.so
c0ab824f 636%attr(755,root,root) %{_libdir}/brltty/libbrlttybht.so
509de961 637%attr(755,root,root) %{_libdir}/brltty/libbrlttybhw.so
509de961
JB
638%attr(755,root,root) %{_libdir}/brltty/libbrlttybir.so
639%{?with_libbraille:%attr(755,root,root) %{_libdir}/brltty/libbrlttyblb.so}
c0ab824f
SS
640%attr(755,root,root) %{_libdir}/brltty/libbrlttyblt.so
641%attr(755,root,root) %{_libdir}/brltty/libbrlttybmb.so
642%attr(755,root,root) %{_libdir}/brltty/libbrlttybmd.so
295e8be4 643%attr(755,root,root) %{_libdir}/brltty/libbrlttybmm.so
c0ab824f 644%attr(755,root,root) %{_libdir}/brltty/libbrlttybmn.so
82b1c71c 645%attr(755,root,root) %{_libdir}/brltty/libbrlttybmt.so
509de961 646%attr(755,root,root) %{_libdir}/brltty/libbrlttybnp.so
82b1c71c 647%attr(755,root,root) %{_libdir}/brltty/libbrlttybpg.so
c0ab824f 648%attr(755,root,root) %{_libdir}/brltty/libbrlttybpm.so
82b1c71c 649%attr(755,root,root) %{_libdir}/brltty/libbrlttybsk.so
c0ab824f
SS
650%attr(755,root,root) %{_libdir}/brltty/libbrlttybtn.so
651%attr(755,root,root) %{_libdir}/brltty/libbrlttybts.so
652%attr(755,root,root) %{_libdir}/brltty/libbrlttybtt.so
653%attr(755,root,root) %{_libdir}/brltty/libbrlttybvd.so
654%attr(755,root,root) %{_libdir}/brltty/libbrlttybvo.so
655%attr(755,root,root) %{_libdir}/brltty/libbrlttybvr.so
656%attr(755,root,root) %{_libdir}/brltty/libbrlttybvs.so
eb77b64b 657%{?with_x:%attr(755,root,root) %{_libdir}/brltty/libbrlttybxw.so}
82b1c71c 658# speech synthesizer drivers
c0ab824f
SS
659%attr(755,root,root) %{_libdir}/brltty/libbrlttysal.so
660%attr(755,root,root) %{_libdir}/brltty/libbrlttysbl.so
661%attr(755,root,root) %{_libdir}/brltty/libbrlttyscb.so
82b1c71c
JB
662%{?with_espeak:%attr(755,root,root) %{_libdir}/brltty/libbrlttyses.so}
663%{?with_flite:%attr(755,root,root) %{_libdir}/brltty/libbrlttysfl.so}
c0ab824f
SS
664%attr(755,root,root) %{_libdir}/brltty/libbrlttysfv.so
665%attr(755,root,root) %{_libdir}/brltty/libbrlttysgs.so
dfe38ff6 666%{?with_mikropuhe:%attr(755,root,root) %{_libdir}/brltty/libbrlttysmp.so}
82b1c71c 667%{?with_speech_dispatcher:%attr(755,root,root) %{_libdir}/brltty/libbrlttyssd.so}
dfe38ff6
JB
668%{?with_swift:%attr(755,root,root) %{_libdir}/brltty/libbrlttyssw.so}
669%{?with_theta:%attr(755,root,root) %{_libdir}/brltty/libbrlttysth.so}
670%{?with_viavoice:%attr(755,root,root) %{_libdir}/brltty/libbrlttysvv.so}
b538cd8d 671%attr(755,root,root) %{_libdir}/brltty/libbrlttysxs.so
82b1c71c 672# screen drivers
681d76a3 673%{?with_at_spi2:%attr(755,root,root) %{_libdir}/brltty/libbrlttyxa2.so}
82b1c71c
JB
674%{?with_at_spi:%attr(755,root,root) %{_libdir}/brltty/libbrlttyxas.so}
675%attr(755,root,root) %{_libdir}/brltty/libbrlttyxlx.so
676%attr(755,root,root) %{_libdir}/brltty/libbrlttyxsc.so
91162002 677%{_sysconfdir}/brltty
1c33f0ca 678%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/brltty.conf
82b1c71c
JB
679/usr/lib/tmpfiles.d/brltty.conf
680%dir /var/lib/BrlAPI
681%dir /var/run/brltty
c0ab824f 682%{_mandir}/man1/brltty.1*
295e8be4 683%{_mandir}/man1/eutp.1*
c0ab824f 684%{_mandir}/man1/vstp.1*
b538cd8d 685%{?with_x:%{_mandir}/man1/xbrlapi.1*}
91162002 686
295e8be4
JB
687%if %{with x}
688# gdm autostart - subpackage?
689#%{_datadir}/gdm/greeter/autostart/xbrlapi.desktop
690%endif
691
91162002 692%files -n brlapi
693%defattr(644,root,root,755)
82b1c71c 694%attr(755,root,root) %{_libdir}/libbrlapi.so.*.*.*
0b1afa7b 695%attr(755,root,root) %ghost %{_libdir}/libbrlapi.so.0.6
91162002 696
697%files -n brlapi-devel
698%defattr(644,root,root,755)
608626ec 699%doc Documents/Manual-BrlAPI/English/BrlAPI*
1c33f0ca 700%attr(755,root,root) %{_libdir}/libbrlapi.so
91162002 701%{_includedir}/brltty
18f080b9 702%{_includedir}/brlapi*.h
82b1c71c 703%{_mandir}/man3/brlapi_*.3*
91162002 704
705%files -n brlapi-static
706%defattr(644,root,root,755)
707%{_libdir}/libbrlapi.a
608626ec 708
09255552 709%if %{with apidocs}
608626ec
SS
710%files -n brlapi-apidocs
711%defattr(644,root,root,755)
712%doc Documents/BrlAPIref/html/*
09255552
SS
713%endif
714
715%if %{with java}
332e4348 716%files -n java-brlapi
09255552 717%defattr(644,root,root,755)
3dcc4a01 718%attr(755,root,root) %{_libdir}/java/libbrlapi_java.so
09255552
SS
719%{_javadir}/brlapi.jar
720%endif
0bb357f1 721
82b1c71c
JB
722%if %{with ocaml}
723%files -n ocaml-brlapi
724%defattr(644,root,root,755)
725%attr(755,root,root) %{_libdir}/ocaml/stublibs/dllbrlapi_stubs.so
726%{_libdir}/ocaml/stublibs/dllbrlapi_stubs.so.owner
727
728%files -n ocaml-brlapi-devel
729%defattr(644,root,root,755)
730%dir %{_libdir}/ocaml/brlapi
731%{_libdir}/ocaml/brlapi/META
732%{_libdir}/ocaml/brlapi/brlapi.cm[aix]*
733%{_libdir}/ocaml/brlapi/brlapi.mli
734%{_libdir}/ocaml/brlapi/libbrlapi_stubs.a
735%endif
736
0bb357f1
SS
737%if %{with python}
738%files -n python-brlapi
739%defattr(644,root,root,755)
0bb357f1 740%attr(755,root,root) %{py_sitedir}/brlapi.so
509de961 741%{py_sitedir}/Brlapi-%{brlapi_ver}-py*.egg-info
75f78027
JB
742
743%if %{with python3}
744%files -n python3-brlapi
745%defattr(644,root,root,755)
746%attr(755,root,root) %{py3_sitedir}/brlapi.cpython-*.so
747%{py3_sitedir}/Brlapi-%{brlapi_ver}-py*.egg-info
748%endif
0bb357f1
SS
749%endif
750
751%if %{with tcl}
752%files -n brlapi-tcl
753%defattr(644,root,root,755)
509de961
JB
754%dir %{_libdir}/brlapi-%{brlapi_ver}
755%attr(755,root,root) %{_libdir}/brlapi-%{brlapi_ver}/libbrlapi_tcl.so
756%{_libdir}/brlapi-%{brlapi_ver}/pkgIndex.tcl
0bb357f1 757%endif
This page took 0.175356 seconds and 4 git commands to generate.