%bcond_without libbraille # libbraille Braille driver
%bcond_without espeak # eSpeak synthesizer driver
%bcond_without flite # Flite synthesizer driver
+%bcond_with mikropuhe # Mikropuhe synthesizer driver [commercial, Finnish]
%bcond_without speech_dispatcher # Speech Dispatcher synthesizer driver
+%bcond_with swift # Swift synthesizer driver [commercial, from Cepstral]
+%bcond_with theta # Theta synthesizer driver [commercial, from Cepstral]
+%bcond_with viavoice # IBM ViaVoice synthesizer driver [commercial]
%bcond_without at_spi # AtSpi screen driver
%bcond_without at_spi2 # AtSpi2 screen driver
#
-%define brlapi_ver 0.5.7
+%define brlapi_ver 0.6.0
#
%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.4
+Version: 4.5
Release: 1
Group: Daemons
License: GPL v2+ (brltty and drivers), LGPL v2.1+ (APIs)
Source0: http://mielke.cc/brltty/releases/%{name}-%{version}.tar.gz
-# Source0-md5: 8ebe96efe679f5f6ccff08928fec5b26
+# Source0-md5: 7b52fa7746fed41ed344a1f75ce55951
Patch0: %{name}-stat.patch
+Patch1: %{name}-java.patch
+Patch2: %{name}-speech-dispatcher.patch
URL: http://mielke.cc/brltty/
BuildRequires: alsa-lib-devel
%{?with_at_spi:BuildRequires: at-spi-devel}
%{?with_at_spi2:BuildRequires: dbus-devel >= 1.0}
%{?with_apidocs:BuildRequires: doxygen}
%{?with_espeak:BuildRequires: espeak-devel}
+%{?with_flite:BuildRequires: flite-devel}
%{?with_gpm:BuildRequires: gpm-devel}
%{?with_java:BuildRequires: jdk}
+%{?with_java:BuildRequires: jpackage-utils}
+%{?with_libbraille:BuildRequires: libbraille-devel}
BuildRequires: libicu-devel
BuildRequires: ncurses-devel
%{?with_ocaml:BuildRequires: ocaml}
%{?with_python:BuildRequires: python-Pyrex}
%{?with_java:BuildRequires: rpm-javaprov}
%{?with_python:BuildRequires: rpm-pythonprov}
+%{?with_speech_dispatcher:BuildRequires: speech-dispatcher-devel >= 0.8}
%{?with_tcl:BuildRequires: tcl-devel}
%if %{with x}
BuildRequires: xorg-lib-libX11-devel
BuildRequires: xorg-lib-libXt-devel
BuildRequires: xorg-lib-libXtst-devel
%endif
-%{?with_libbraille:BuildRequires: libbraille-devel}
-%{?with_flite:BuildRequires: flite-devel}
-# libbrlttysmp
-#BR: Mikropuhe-devel (-lmikropuhe <mpwrfile.h>)
-%{?with_speech_dispatcher:BuildRequires: speech-dispatcher-devel}
-# libbrlttyssw
-#BR: Swift-devel (-lswift <swift.h>)
-# libbrlttysth
-#BR: Theta-devel (-ltheta <theta.h>)
-# libbrlttysvv
-#BR: ViaVoice-devel (-libmeci50 <eci.h>)
+#%{?with_mikropuhe:BuildRequires: Mikropuhe-devel (-lmikropuhe <mpwrfile.h>)}
+#%{?with_swift:BuildRequires: Swift-devel (-lswift <swift.h>)}
+#%{?with_theta:BuildRequires: Theta-devel (-ltheta <theta.h>)}
+#%{?with_viavoice:BuildRequires: ViaVoice-devel (-libmeci50 <eci.h>)}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
+%patch2 -p1
%build
+%{__autoconf}
CFLAGS="%{rpmcflags} -I/usr/include/ncurses"
%configure \
+ %{?with_java:JAVA_HOME=%{java_home}} \
--with-install-root="$RPM_BUILD_ROOT" \
%{!?with_libbraille:--without-libbraille} \
%{!?with_espeak:--without-espeak} \
%{__make} -j1 install \
OCAML_INSTALL_TARGET=install-without-findlib
+%if %{_lib} != "lib"
+ # Fix java plugin install path on 64-bit archs
+ install -d $RPM_BUILD_ROOT%{_libdir}/java
+ %{__mv} $RPM_BUILD_ROOT%{_prefix}/{lib,%{_lib}}/java/libbrlapi_java.so
+%endif
+
install Documents/brltty.conf $RPM_BUILD_ROOT%{_sysconfdir}
install -d $RPM_BUILD_ROOT/usr/lib/tmpfiles.d
%attr(755,root,root) %{_libdir}/brltty/libbrlttybbm.so
%attr(755,root,root) %{_libdir}/brltty/libbrlttybbn.so
%attr(755,root,root) %{_libdir}/brltty/libbrlttybcb.so
+%attr(755,root,root) %{_libdir}/brltty/libbrlttybce.so
%attr(755,root,root) %{_libdir}/brltty/libbrlttybec.so
%attr(755,root,root) %{_libdir}/brltty/libbrlttybeu.so
%attr(755,root,root) %{_libdir}/brltty/libbrlttybfs.so
%attr(755,root,root) %{_libdir}/brltty/libbrlttybhm.so
%attr(755,root,root) %{_libdir}/brltty/libbrlttybht.so
%attr(755,root,root) %{_libdir}/brltty/libbrlttybhw.so
-%attr(755,root,root) %{_libdir}/brltty/libbrlttybil.so
%attr(755,root,root) %{_libdir}/brltty/libbrlttybir.so
%{?with_libbraille:%attr(755,root,root) %{_libdir}/brltty/libbrlttyblb.so}
%attr(755,root,root) %{_libdir}/brltty/libbrlttyblt.so
%{?with_flite:%attr(755,root,root) %{_libdir}/brltty/libbrlttysfl.so}
%attr(755,root,root) %{_libdir}/brltty/libbrlttysfv.so
%attr(755,root,root) %{_libdir}/brltty/libbrlttysgs.so
-#%{?with_mikropuhe:%attr(755,root,root) %{_libdir}/brltty/libbrlttysmp.so}
+%{?with_mikropuhe:%attr(755,root,root) %{_libdir}/brltty/libbrlttysmp.so}
%{?with_speech_dispatcher:%attr(755,root,root) %{_libdir}/brltty/libbrlttyssd.so}
-#%{?with_swift:%attr(755,root,root) %{_libdir}/brltty/libbrlttyssw.so}
-#%{?with_theta:%attr(755,root,root) %{_libdir}/brltty/libbrlttysth.so}
-#%{?with_viavoice:%attr(755,root,root) %{_libdir}/brltty/libbrlttysvv.so}
+%{?with_swift:%attr(755,root,root) %{_libdir}/brltty/libbrlttyssw.so}
+%{?with_theta:%attr(755,root,root) %{_libdir}/brltty/libbrlttysth.so}
+%{?with_viavoice:%attr(755,root,root) %{_libdir}/brltty/libbrlttysvv.so}
%attr(755,root,root) %{_libdir}/brltty/libbrlttysxs.so
# screen drivers
%{?with_at_spi2:%attr(755,root,root) %{_libdir}/brltty/libbrlttyxa2.so}
%files -n brlapi
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libbrlapi.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libbrlapi.so.0.5
+%attr(755,root,root) %ghost %{_libdir}/libbrlapi.so.0.6
%files -n brlapi-devel
%defattr(644,root,root,755)