File mimic.spec of Package mimic

#
# spec file for package mimic
#
# Copyright (c) 2017 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:           mimic
Version:        1.2.0.2
Release:        0
Summary:        Mycroft's TTS engine, based on CMU's Flite (Festival Lite)
# FIXME: Select a correct license from https://github.com/openSUSE/spec-cleaner#spdx-licenses
License:        BSD-3-Clause and MIT-CMU
# FIXME: use correct group, see "https://en.opensuse.org/openSUSE:Package_group_guidelines"
Group:          Productivity/Text/Convertors
Url:            https://mimic.mycroft.ai
#Source:         https://github.com/MycroftAI/mimic/archive/1.2.0.2.tar.gz
Source:         1.2.0.2.tar.gz
BuildRequires:  gcc
BuildRequires:  make
BuildRequires:  pkgconfig
BuildRequires:  automake
BuildRequires:  pkgconfig(icu-i18n)
BuildRequires:  libtool
BuildRequires:  pkgconfig(alsa) >= 1.0.11
BuildRequires:  pkgconfig(libpulse)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Mimic is a text-to-speech engine based on Carnegie Mellon
University’s Flite (Festival-Lite) software. Mimic takes in text and
reads it out loud to create a voice.

%package -n libttsmimic0
Summary:        Core libraries of Mycroft's TTS engine
Group:          System/Libraries
License:        BSD-3-Clause and MIT-CMU

%description -n libttsmimic0
Mimic is a text-to-speech engine based on Carnegie Mellon
University’s Flite (Festival-Lite) software. Mimic takes in text and
reads it out loud to create a voice.

%package devel
Summary:        Development files for mimic (Mycroft's TTS engine)
Group:          Development/Libraries/C and C++
License:        BSD-3-Clause and MIT-CMU
Requires:       %{name} = %version

%description devel
Mimic is a text-to-speech engine based on Carnegie Mellon
University’s Flite (Festival-Lite) software. Mimic takes in text and
reads it out loud to create a voice.

This package contains the headers and development libraries for mimic.

%prep
%setup -q

%build
./autogen.sh
%configure --enable-shared
make %{?_smp_mflags}

%install
%make_install
rm -fv "%{buildroot}/%{_libdir}"/*.la

%post   -n libttsmimic0 -p /sbin/ldconfig
%postun -n libttsmimic0 -p /sbin/ldconfig

%files
%defattr(-,root,root)
%doc README.md NEWS.md ACKNOWLEDGEMENTS
%license COPYING
%{_bindir}/compile_regexes
%{_bindir}/mimic
%{_bindir}/mimic_time
%{_bindir}/mimicvox_info
%{_bindir}/t2p

%files -n libttsmimic0
%{_libdir}/libttsmimic.so.0*
%{_libdir}/libttsmimic_lang_all_langs.so.0*
%{_libdir}/libttsmimic_lang_all_voices.so.0*
%{_libdir}/libttsmimic_lang_cmu_grapheme_lang.so.0*
%{_libdir}/libttsmimic_lang_cmu_grapheme_lex.so.0*
%{_libdir}/libttsmimic_lang_cmu_indic_lang.so.0*
%{_libdir}/libttsmimic_lang_cmu_indic_lex.so.0*
%{_libdir}/libttsmimic_lang_cmu_time_awb.so.0*
%{_libdir}/libttsmimic_lang_cmu_us_awb.so.0*
%{_libdir}/libttsmimic_lang_cmu_us_kal.so.0*
%{_libdir}/libttsmimic_lang_cmu_us_kal16.so.0*
%{_libdir}/libttsmimic_lang_cmu_us_rms.so.0*
%{_libdir}/libttsmimic_lang_cmu_us_slt.so.0*
%{_libdir}/libttsmimic_lang_cmulex.so.0*
%{_libdir}/libttsmimic_lang_usenglish.so.0*
%{_libdir}/libttsmimic_lang_vid_gb_ap.so.0*

%files devel
%{_includedir}/ttsmimic
%{_libdir}/pkgconfig/mimic.pc
%{_libdir}/libttsmimic.so
%{_libdir}/libttsmimic_lang_all_langs.so
%{_libdir}/libttsmimic_lang_all_voices.so
%{_libdir}/libttsmimic_lang_cmu_grapheme_lang.so
%{_libdir}/libttsmimic_lang_cmu_grapheme_lex.so
%{_libdir}/libttsmimic_lang_cmu_indic_lang.so
%{_libdir}/libttsmimic_lang_cmu_indic_lex.so
%{_libdir}/libttsmimic_lang_cmu_time_awb.so
%{_libdir}/libttsmimic_lang_cmu_us_awb.so
%{_libdir}/libttsmimic_lang_cmu_us_kal.so
%{_libdir}/libttsmimic_lang_cmu_us_kal16.so
%{_libdir}/libttsmimic_lang_cmu_us_rms.so
%{_libdir}/libttsmimic_lang_cmu_us_slt.so
%{_libdir}/libttsmimic_lang_cmulex.so
%{_libdir}/libttsmimic_lang_usenglish.so
%{_libdir}/libttsmimic_lang_vid_gb_ap.so

%changelog