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