From ab22ab36ed117b42ce7e2c90539378c8e3e2f744 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0t=C4=9Bp=C3=A1n=20Kasal?= Date: Wed, 13 Jan 2010 11:24:51 +0000 Subject: [PATCH] - limit building against speech-dispatcher to Fedora - Resolves: rhbz#553795 --- brltty.spec | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/brltty.spec b/brltty.spec index 14919dc..5bf76a5 100644 --- a/brltty.spec +++ b/brltty.spec @@ -10,9 +10,12 @@ %define _exec_prefix %{nil} %define _libdir /%{_lib} +# with speech dispatcher iff on Fedora: +%define with_speech_dispatcher 0%{?fedora} + Name: brltty Version: %{pkg_version} -Release: 3%{?dist} +Release: 4%{?dist} License: GPLv2+ Group: System Environment/Daemons URL: http://mielke.cc/brltty/ @@ -31,6 +34,7 @@ access to the Linux/Unix console (when in text mode) for a blind person using a refreshable braille display. It drives the braille display and provides complete screen review functionality. +%if %{with_speech_dispatcher} BRLTTY can also work with speech synthetizers; if you want to use it with Speech Dispatcher, please install also package %{name}-speech-dispatcher. @@ -42,6 +46,7 @@ BuildRequires: speech-dispatcher-devel Requires: %{name} = %{pkg_version}-%{release} %description speech-dispatcher This package provides the Speech Dispatcher driver for BRLTTY. +%endif %package xw Summary: XWindow driver for BRLTTY @@ -143,7 +148,10 @@ done # there is no curses packages in BuildRequires, so the package builds # without them in mock; let's express this decision explicitly %configure CPPFLAGS="$java_inc" --disable-stripping --without-curses \ - --with-install-root="${RPM_BUILD_ROOT}" --with-speechd=%{_prefix} +%if %{with_speech_dispatcher} + --with-speechd=%{_prefix} \ +%endif + --with-install-root="${RPM_BUILD_ROOT}" make %{?_smp_mflags} find . \( -path ./doc -o -path ./Documents \) -prune -o \ @@ -207,7 +215,9 @@ exit 0 %{_libdir}/brltty/ %exclude %{_libdir}/brltty/libbrlttybba.so %exclude %{_libdir}/brltty/libbrlttybxw.so +%if %{with_speech_dispatcher} %exclude %{_libdir}/brltty/libbrlttyssd.so +%endif %exclude %{_libdir}/brltty/libbrlttyxas.so %doc LICENSE-GPL LICENSE-LGPL %doc Documents/ChangeLog Documents/TODO @@ -215,9 +225,11 @@ exit 0 %doc doc/* %doc %{_mandir}/man[15]/brltty.* +%if %{with_speech_dispatcher} %files speech-dispatcher %doc Drivers/Speech/SpeechDispatcher/README %{_libdir}/brltty/libbrlttyssd.so +%endif %files xw %doc Drivers/Braille/XWindow/README @@ -262,6 +274,10 @@ exit 0 %changelog +* Wed Jan 13 2010 Stepan Kasal - 4.1-4 +- limit building against speech-dispatcher to Fedora +- Resolves: rhbz#553795 + * Sun Nov 1 2009 Stepan Kasal - 4.1-3 - build the TTY driver (it was disabled since it first appered in 3.7.2-1) - build with speech-dispatcher, packed into a separate sub-package