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