%bcond_without python # python bindings
%bcond_without tcl # tcl bindings
%bcond_without x # build X11-based utilities
+%bcond_without speech_dispatcher # build without speech-dispatcher driver
+%bcond_without at_spi2 # build without AtSpi2 driver
+%bcond_without espeak # build without eSpeak driver
#
%include /usr/lib/rpm/macros.java
Summary: Braille display driver for Linux/Unix
Summary(pl.UTF-8): Sterownik do wyĆwietlaczy Braille'a
Name: brltty
Version: 4.2
-Release: 0.1
+Release: 4
Group: Daemons
License: GPL
Source0: http://mielke.cc/brltty/releases/%{name}-%{version}.tar.gz
BuildRequires: automake
BuildRequires: bison
#BuildRequires: bluez-devel
+%{?with_at_spi2:BuildRequires: dbus-devel}
%{?with_apidocs:BuildRequires: doxygen}
+%{?with_espeak:BuildRequires: espeak-devel}
BuildRequires: gpm-devel
%{?with_java:BuildRequires: jdk}
BuildRequires: ncurses-devel
%{?with_python:BuildRequires: python-Pyrex}
%{?with_java:BuildRequires: rpm-javaprov}
%{?with_python:BuildRequires: rpm-pythonprov}
-%{?with_tcl:BuildRequires: tcl}
+%{?with_tcl:BuildRequires: tcl-devel}
%{?with_x:BuildRequires: xorg-lib-libXaw-devel}
%{?with_x:BuildRequires: xorg-lib-libXtst-devel}
# libbrlttyblb
# libbrlttysmp
#BR: Mikropuhe-devel (-lmikropuhe <mpwrfile.h>)
# libbrlttyssd
-#BuildRequires: speech-dispatcher-devel
+%{?with_speech_dispatcher:BuildRequires: speech-dispatcher-devel}
# libbrlttyssw
#BR: Swift-devel (-lswift <swift.h>)
# libbrlttysth
--with-install-root="$RPM_BUILD_ROOT" \
%{!?with_java:--disable-java-bindings} \
--enable-api
-%{__make}
+
+%{__make} -j1
directory="doc"
mkdir -p "$directory"
%attr(755,root,root) %{_libdir}/brltty/libbrlttybpg.so
%attr(755,root,root) %{_libdir}/brltty/libbrlttybsk.so
%attr(755,root,root) %{_libdir}/brltty/libbrlttysxs.so
-%attr(755,root,root) %{_libdir}/brltty/libbrlttyxa2.so
+%{?with_espeak:%attr(755,root,root) %{_libdir}/brltty/libbrlttyses.so}
+%{?with_at_spi2:%attr(755,root,root) %{_libdir}/brltty/libbrlttyxa2.so}
+%{?with_speech_dispatcher:%attr(755,root,root) %{_libdir}/brltty/libbrlttyssd.so}
%{_sysconfdir}/brltty
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/brltty.conf