]> git.pld-linux.org Git - packages/brltty.git/blobdiff - brltty.spec
- release 4
[packages/brltty.git] / brltty.spec
index ad86601d4161bcb9a3379fcee1444a90149f37c0..5cfccf997ca769809b56f079f19e2091cf12a8d8 100644 (file)
 %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
@@ -42,7 +45,9 @@ BuildRequires:        autoconf >= 2.62
 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
@@ -51,7 +56,7 @@ BuildRequires:        pkgconfig
 %{?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
@@ -61,7 +66,7 @@ BuildRequires:        flite-devel
 # 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
@@ -202,7 +207,8 @@ CFLAGS="%{rpmcflags} -I/usr/include/ncurses"
        --with-install-root="$RPM_BUILD_ROOT" \
        %{!?with_java:--disable-java-bindings} \
        --enable-api
-%{__make}
+
+%{__make} -j1
 
 directory="doc"
 mkdir -p "$directory"
@@ -549,7 +555,9 @@ exit 0
 %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
This page took 0.036284 seconds and 4 git commands to generate.