File RHVoice.spec of Package RHVoice

#
# spec file for package RHVoice
#
# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           RHVoice
Version:        1.8.0
Release:        0
Summary:        Multilingual speech synthesizer
License:        GPL-3.0+
URL:            https://github.com/rhvoice/rhvoice
Source0:        %{url}/releases/download/%{version}/rhvoice-%{version}.tar.gz

BuildRequires:  fdupes
BuildRequires:  boost-devel
BuildRequires:  libboost_headers-devel
BuildRequires:  gcc-c++
BuildRequires:  libpulse-devel
BuildRequires:  pkg-config
BuildRequires:  scons

%description
RHVoice is a free and open source speech synthesizer.

%package speech-dispatcher
Summary:        Multilingual speech synthesizer
Supplements: (RHVoice and speech-dispatcher)

%description speech-dispatcher
RHVoice is a free and open source speech synthesizer.
This package contains the speech-dispatcher module for RHVoice.

%package devel
Summary:        Multilingual speech synthesizer
Requires:       libRHVoice5 = %{version}
Requires:       libRHVoice_audio2 = %{version}
Requires:       libRHVoice_core4 = %{version}

%description devel
RHVoice is a free and open source speech synthesizer.
This package contains the headers and symlinks needed to compile against
the RHVoice libraries.

%package -n libRHVoice5
Summary:        Multilingual speech synthesizer

%description -n libRHVoice5
RHVoice is a free and open source speech synthesizer.
This package contains the RHVoice library.

%package -n libRHVoice_audio2
Summary:        Multilingual speech synthesizer

%description -n libRHVoice_audio2
RHVoice is a free and open source speech synthesizer.
This package contains the RHVoice audio library.

%package -n libRHVoice_core7
Summary:        Multilingual speech synthesizer

%description -n libRHVoice_core7
RHVoice is a free and open source speech synthesizer.
This package contains the RHVoice core library.

%prep
%setup -q -n rhvoice-%{version}

%check

%build
scons prefix=%{_prefix} libdir=%{_libdir} sysconfdir=%{_sysconfdir}

%install
scons install DESTDIR=%{buildroot}
mkdir -p %{buildroot}%{_libdir}/speech-dispatcher-modules
ln -s %{_bindir}/sd_rhvoice %{buildroot}%{_libdir}/speech-dispatcher-modules/sd_rhvoice
%fdupes %{buildroot}%{_datadir}/RHVoice

%post -n libRHVoice5 -p /sbin/ldconfig
%postun -n libRHVoice5 -p /sbin/ldconfig
%post -n libRHVoice_audio2 -p /sbin/ldconfig
%postun -n libRHVoice_audio2 -p /sbin/ldconfig
%post -n libRHVoice_core7 -p /sbin/ldconfig
%postun -n libRHVoice_core7 -p /sbin/ldconfig

%files
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
%{_bindir}/RHVoice-test
%dir %{_datadir}/RHVoice
%{_datadir}/RHVoice/*
%dir %{_sysconfdir}/%{name}

%files speech-dispatcher
%{_bindir}/sd_rhvoice
%dir %{_libdir}/speech-dispatcher-modules
%{_libdir}/speech-dispatcher-modules/sd_rhvoice

%files devel
%{_includedir}/RHVoice.h
%{_includedir}/RHVoice_common.h
%{_libdir}/libRHVoice.so
%{_libdir}/libRHVoice_audio.so
%{_libdir}/libRHVoice_core.so

%files -n libRHVoice5
%{_libdir}/libRHVoice.so.*

%files -n libRHVoice_audio2
%{_libdir}/libRHVoice_audio.so.*

%files -n libRHVoice_core7
%{_libdir}/libRHVoice_core.so.*


%changelog
openSUSE Build Service is sponsored by