--- /dev/null
+--- brltty-4.5/configure.ac.orig 2013-03-27 23:54:58.000000000 +0100
++++ brltty-4.5/configure.ac 2013-04-07 19:04:31.636980920 +0200
+@@ -1516,7 +1516,7 @@
+ BRLTTY_SPEECH_DRIVER([fv], [Festival])
+ BRLTTY_SPEECH_DRIVER([gs], [GenericSay])
+ BRLTTY_IF_PACKAGE([Mikropuhe], [mikropuhe], [mpwrfile.h], [BRLTTY_IF_PTHREADS([BRLTTY_SPEECH_DRIVER([mp], [Mikropuhe], [-L$(MPLINUX_ROOT) -lmplinux])])])
+- BRLTTY_IF_PACKAGE([speech-dispatcher], [speechd], [include/libspeechd.h], [BRLTTY_SPEECH_DRIVER([sd], [SpeechDispatcher], [-L$(SPEECHD_ROOT)/lib -lspeechd])])
++ BRLTTY_IF_PACKAGE([speech-dispatcher], [speechd], [include/speech-dispatcher/libspeechd.h], [BRLTTY_SPEECH_DRIVER([sd], [SpeechDispatcher], [-lspeechd])])
+ BRLTTY_IF_PACKAGE([Swift], [swift], [include/swift.h], [BRLTTY_SPEECH_DRIVER([sw], [Swift], [-L$(SWIFT_ROOT)/lib -lswift -lm])])
+ BRLTTY_IF_PACKAGE([Theta], [theta], [include/theta.h], [BRLTTY_SPEECH_DRIVER([th], [Theta], [-L$(THETA_ROOT)/lib -ltheta])])
+ BRLTTY_IF_PACKAGE([ViaVoice], [viavoice], [include/eci.h], [BRLTTY_SPEECH_DRIVER([vv], [ViaVoice], [-L$(VIAVOICE_ROOT)/lib -libmeci50])])
+#--- brltty-4.5/Drivers/Speech/SpeechDispatcher/Makefile.in.orig 2013-03-27 23:51:36.000000000 +0100
+#+++ brltty-4.5/Drivers/Speech/SpeechDispatcher/Makefile.in 2013-04-07 19:41:55.110267490 +0200
+#@@ -25,5 +25,5 @@
+# include $(SRC_TOP)speech.mk
+#
+# speech.$O:
+#- $(CC) $(SPK_CFLAGS) -I$(SPEECHD_ROOT)/include -c $(SRC_DIR)/speech.c
+#+ $(CC) $(SPK_CFLAGS) -I$$(pkg-config --cflags speech-dispatcher) -c $(SRC_DIR)/speech.c
+#
+--- brltty-4.5/Drivers/Speech/SpeechDispatcher/speech.c.orig 2013-03-27 23:51:36.000000000 +0100
++++ brltty-4.5/Drivers/Speech/SpeechDispatcher/speech.c 2013-04-07 19:56:47.340248894 +0200
+@@ -38,7 +38,7 @@
+ #define SPK_HAVE_PUNCTUATION
+ #include "spk_driver.h"
+
+-#include <libspeechd.h>
++#include <speech-dispatcher/libspeechd.h>
+
+ static SPDConnection *connectionHandle = NULL;
+ static const char *moduleName;
%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
-Release: 3
+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_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_python:BuildRequires: python-Pyrex}
%{?with_java:BuildRequires: rpm-javaprov}
%{?with_python:BuildRequires: rpm-pythonprov}
-%{?with_speech_dispatcher:BuildRequires: speech-dispatcher-devel}
+%{?with_speech_dispatcher:BuildRequires: speech-dispatcher-devel >= 0.8}
%{?with_tcl:BuildRequires: tcl-devel}
%if %{with x}
BuildRequires: xorg-lib-libX11-devel
%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} \
%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
%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)