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