rpms/brltty/devel brltty.spec,1.39,1.40

Štěpán Kasal kasal at fedoraproject.org
Wed Jan 13 11:24:53 UTC 2010


Author: kasal

Update of /cvs/extras/rpms/brltty/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv9516

Modified Files:
	brltty.spec 
Log Message:
- limit building against speech-dispatcher to Fedora
- Resolves: rhbz#553795


Index: brltty.spec
===================================================================
RCS file: /cvs/extras/rpms/brltty/devel/brltty.spec,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -p -r1.39 -r1.40
--- brltty.spec	2 Nov 2009 09:36:30 -0000	1.39
+++ brltty.spec	13 Jan 2010 11:24:51 -0000	1.40
@@ -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 i
 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 <skasal at redhat.com> - 4.1-4
+- limit building against speech-dispatcher to Fedora
+- Resolves: rhbz#553795
+
 * Sun Nov  1 2009 Stepan Kasal <skasal at redhat.com> - 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



More information about the scm-commits mailing list