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