Build with espeak support only on Fedora
This commit is contained in:
parent
45bfd205aa
commit
04792bcea2
24
brltty.spec
24
brltty.spec
@ -13,6 +13,9 @@
|
|||||||
# with speech dispatcher iff on Fedora:
|
# with speech dispatcher iff on Fedora:
|
||||||
%define with_speech_dispatcher 0%{?fedora}
|
%define with_speech_dispatcher 0%{?fedora}
|
||||||
|
|
||||||
|
# with espeak support iff on Fedora:
|
||||||
|
%define with_espeak 0%{?fedora}
|
||||||
|
|
||||||
%global with_ocaml 1
|
%global with_ocaml 1
|
||||||
|
|
||||||
# Filter private libraries
|
# Filter private libraries
|
||||||
@ -22,7 +25,7 @@
|
|||||||
|
|
||||||
Name: brltty
|
Name: brltty
|
||||||
Version: %{pkg_version}
|
Version: %{pkg_version}
|
||||||
Release: 5%{?dist}
|
Release: 6%{?dist}
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
URL: http://mielke.cc/brltty/
|
URL: http://mielke.cc/brltty/
|
||||||
Source0: http://mielke.cc/brltty/archive/%{name}-%{version}.tar.xz
|
Source0: http://mielke.cc/brltty/archive/%{name}-%{version}.tar.xz
|
||||||
@ -34,7 +37,11 @@ Patch2: brltty-5.0-libspeechd.patch
|
|||||||
Patch3: 0001-Add-support-for-eSpeak-NG.patch
|
Patch3: 0001-Add-support-for-eSpeak-NG.patch
|
||||||
Summary: Braille display driver for Linux/Unix
|
Summary: Braille display driver for Linux/Unix
|
||||||
BuildRequires: byacc, glibc-kernheaders, bluez-libs-devel, systemd
|
BuildRequires: byacc, glibc-kernheaders, bluez-libs-devel, systemd
|
||||||
BuildRequires: gettext, at-spi2-core-devel, espeak-devel, espeak-ng-devel
|
BuildRequires: gettext, at-spi2-core-devel
|
||||||
|
%if %{with_espeak}
|
||||||
|
BuildRequires: espeak-devel
|
||||||
|
%endif
|
||||||
|
BuildRequires: espeak-ng-devel
|
||||||
BuildRequires: python2-tools
|
BuildRequires: python2-tools
|
||||||
BuildRequires: /usr/bin/2to3
|
BuildRequires: /usr/bin/2to3
|
||||||
BuildRequires: autoconf
|
BuildRequires: autoconf
|
||||||
@ -89,17 +96,22 @@ Requires: %{name}%{?_isa} = %{pkg_version}-%{release}
|
|||||||
%description at-spi2
|
%description at-spi2
|
||||||
This package provides the AtSpi2 driver for BRLTTY.
|
This package provides the AtSpi2 driver for BRLTTY.
|
||||||
|
|
||||||
|
%if %{with_espeak}
|
||||||
%package espeak
|
%package espeak
|
||||||
Summary: eSpeak driver for BRLTTY
|
Summary: eSpeak driver for BRLTTY
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
Requires: %{name}%{?_isa} = %{pkg_version}-%{release}
|
Requires: %{name}%{?_isa} = %{pkg_version}-%{release}
|
||||||
%description espeak
|
%description espeak
|
||||||
This package provides the eSpeak driver for BRLTTY.
|
This package provides the eSpeak driver for BRLTTY.
|
||||||
|
%endif
|
||||||
|
|
||||||
%package espeak-ng
|
%package espeak-ng
|
||||||
Summary: eSpeak-NG driver for BRLTTY
|
Summary: eSpeak-NG driver for BRLTTY
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
Requires: %{name}%{?_isa} = %{pkg_version}-%{release}
|
Requires: %{name}%{?_isa} = %{pkg_version}-%{release}
|
||||||
|
%if ! %{with_espeak}
|
||||||
|
Obsoletes: brltty-espeak <= 5.6-5
|
||||||
|
%endif
|
||||||
%description espeak-ng
|
%description espeak-ng
|
||||||
This package provides the eSpeak-NG driver for BRLTTY.
|
This package provides the eSpeak-NG driver for BRLTTY.
|
||||||
|
|
||||||
@ -230,6 +242,9 @@ configure_opts=" \
|
|||||||
--without-curses \
|
--without-curses \
|
||||||
%if %{with_speech_dispatcher}
|
%if %{with_speech_dispatcher}
|
||||||
--with-speechd=%{_prefix} \
|
--with-speechd=%{_prefix} \
|
||||||
|
%endif
|
||||||
|
%if ! %{with_espeak}
|
||||||
|
--without-espeak \
|
||||||
%endif
|
%endif
|
||||||
--with-install-root=$RPM_BUILD_ROOT
|
--with-install-root=$RPM_BUILD_ROOT
|
||||||
JAVA_JAR_DIR=%{_jnidir} \
|
JAVA_JAR_DIR=%{_jnidir} \
|
||||||
@ -407,8 +422,10 @@ fi
|
|||||||
%files at-spi2
|
%files at-spi2
|
||||||
%{_libdir}/brltty/libbrlttyxa2.so
|
%{_libdir}/brltty/libbrlttyxa2.so
|
||||||
|
|
||||||
|
%if %{with_espeak}
|
||||||
%files espeak
|
%files espeak
|
||||||
%{_libdir}/brltty/libbrlttyses.so
|
%{_libdir}/brltty/libbrlttyses.so
|
||||||
|
%endif
|
||||||
|
|
||||||
%files espeak-ng
|
%files espeak-ng
|
||||||
%{_libdir}/brltty/libbrlttysen.so
|
%{_libdir}/brltty/libbrlttysen.so
|
||||||
@ -457,6 +474,9 @@ fi
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Mar 08 2018 Ondřej Lysoněk <olysonek@redhat.com> - 5.6-6
|
||||||
|
- Build with espeak support only on Fedora
|
||||||
|
|
||||||
* Tue Mar 06 2018 Ondřej Lysoněk <olysonek@redhat.com> - 5.6-5
|
* Tue Mar 06 2018 Ondřej Lysoněk <olysonek@redhat.com> - 5.6-5
|
||||||
- Add support for eSpeak-NG
|
- Add support for eSpeak-NG
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user