Blame SPECS/speech-tools.spec

230155
Name:           speech-tools
230155
Version:        2.5
230155
Release:        18%{?dist}
230155
Summary:        Edinburgh speech tools library
230155
230155
License:        MIT
230155
URL:            http://festvox.org
230155
Source0: http://festvox.org/packed/festival/%{version}/speech_tools-%{version}.0-release.tar.gz
230155
# The license is somewhat specific and only a part of the readme, so it needs to be copied.
230155
# The issue which could change the situation is: https://github.com/festvox/speech_tools/issues/15
230155
Source1: LICENSE
230155
Patch0: enable_shared.patch
230155
230155
BuildRequires: make
230155
BuildRequires: gcc-c++
230155
BuildRequires: ncurses-devel
230155
BuildRequires: alsa-lib-devel
230155
230155
# Speech-tools did not fix the GCC 10 support as of now.
230155
%define _legacy_common_support 1
230155
230155
%description
230155
The Edinburgh speech tools system is a library of C++ classes, functions
230155
and utility programs that are frequently used in speech software.
230155
The system compiles to a single Unix library .a file
230155
which can be linked with software.
230155
At present, C++ classes for several useful speech and language classes
230155
have been written, along with audio software
230155
and some basic signal processing software.
230155
230155
%prep
230155
%autosetup -n speech_tools -p 0
230155
230155
%build
230155
%configure
230155
# The following make invocation is necessary because configure does not honor the default compiler flags and ignoring those breaks the debuginfo package generation. Also, it disables problematic parallel make.
230155
%__make CFLAGS="%{optflags} -fPIC -flto -fno-lto" CXXFLAGS="%{optflags} -fPIC -flto -fno-lto -Wl,-z,now" LDFLAGS="$LDFLAGS -flto -fno-lto"
230155
230155
%install
230155
mkdir -p %{buildroot}%{_bindir}
230155
# The installation will be handled by the license macro, but it must be somewhere where the paths add up
230155
cp -p %{SOURCE1} .
230155
# The list of installed utilities is taken from the Debian package
230155
install -p -m 755 main/{bcat,ch_lab,ch_track,ch_utt,ch_wave,dp,na_play,na_record,ngram_build,ngram_test,ols,ols_test,pda,pitchmark,scfg_make,scfg_parse,scfg_test,scfg_train,sig2fv,sigfilter,spectgen,tilt_analysis,tilt_synthesis,viterbi,wagon,wagon_test,wfst_build,wfst_run} %{buildroot}%{_bindir}
230155
mkdir -p %{buildroot}%{_libdir}
230155
install -p -m 755 lib/*.so* %{buildroot}%{_libdir}
230155
install -p -m 644 lib/*.a %{buildroot}%{_libdir}
230155
mkdir -p %{buildroot}%{_includedir}/speech_tools
230155
cp -dr include/* %{buildroot}%{_includedir}/speech_tools
230155
rm -r %{buildroot}%{_includedir}/speech_tools/win32
230155
# I would gladlylike to skip the internal details, but festival depends on them. 
230155
mkdir -p %{buildroot}%{_libdir}/speech_tools/base_class
230155
install -p -m 644 base_class/*.cc %{buildroot}%{_libdir}/speech_tools/base_class
230155
install -p -m 644 base_class/*.h %{buildroot}%{_libdir}/speech_tools/base_class
230155
mkdir -p %{buildroot}%{_libdir}/speech_tools
230155
cp -dr config/ %{buildroot}%{_libdir}/speech_tools
230155
mkdir -p %{buildroot}%{_libdir}/speech_tools/lib/siod
230155
install -p -m 644 lib/siod/*.scm %{buildroot}%{_libdir}/speech_tools/lib/siod
230155
# Note that a symlink would be nice below, but it breaks the expectations around dir traversal.
230155
mkdir -p %{buildroot}%{_libdir}/speech_tools/include
230155
cp -r %{buildroot}%{_includedir}/speech_tools/* %{buildroot}%{_libdir}/speech_tools/include
230155
230155
%files
230155
%{_bindir}/*
230155
%license LICENSE
230155
    
230155
%package libs
230155
Summary: Edinburgh speech tools libraries
230155
Obsoletes: festival-speechtools-libs < 1.2.96-40
230155
230155
%description libs
230155
The shared libraries needed by speech-tools and other software.
230155
230155
%ldconfig_scriptlets libs
230155
230155
%files libs
230155
%{_libdir}/*.so*
230155
%license LICENSE
230155
230155
%package libs-devel
230155
Summary: Development files for the speech-tools libraries
230155
Requires: speech-tools-libs%{?_isa} = %{version}-%{release}
230155
Obsoletes: festival-speechtools-devel < 1.2.96-40
230155
230155
%description libs-devel
230155
This package contains the development related files for the speech-tools
230155
libraries.
230155
230155
%files libs-devel
230155
%{_includedir}/speech_tools/
230155
%{_libdir}/speech_tools/
230155
%{_libdir}/*.so
230155
230155
%package libs-static
230155
Summary: Static libraries of speech-tools, so far needed by at least festival
230155
Requires: speech-tools-libs-devel%{?_isa} = %{version}-%{release}
230155
230155
%description libs-static
230155
This package contains the static libraries for speech-tools.
230155
They are so far definitely needed for festival,
230155
but they might be depended upon by some third-party developers as well.
230155
230155
%files libs-static
230155
%{_libdir}/*.a
230155
230155
%changelog
230155
* Wed Jan 26 2022 Matthias Clasen <mclasen@redhat.com> - 2.5-18
230155
- Link with -Wl,-z,now
230155
  Resolves: rhbz#2044891
230155
230155
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 2.5-17
230155
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
230155
  Related: rhbz#1991688
230155
230155
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 2.5-16
230155
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
230155
230155
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.5-15
230155
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
230155
230155
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.5-14
230155
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
230155
230155
* Wed Feb 05 2020 Lukáš Tyrychtr <lukastyrychtr@gmail.com> - 2.5-13
230155
Fix building with the latest GCC.
230155
230155
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.5-12
230155
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
230155
230155
* Sun Oct 27 2019 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2.5-11
230155
- Add Obsoletes for the old festival-speech-tools-devel subpackage too
230155
230155
* Sat Oct 26 2019 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2.5-10
230155
- Move Obsoletes to the -libs subpackage
230155
230155
* Fri Oct 25 2019 Lukáš Tyrychtr <lukastyrychtr@gmail.com> 2.5-9
230155
- Add an obsoletes directive for the old speech-tools-libs as they're
230155
  no longer part of the Festival package.
230155
230155
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.5-8
230155
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
230155
230155
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.5-7
230155
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
230155
230155
* Thu Aug 30 2018 Lukáš Tyrychtr <lukastyrychtr@gmail.com> 2.5-6
230155
- Fix some underscores which got through, somehow.
230155
230155
* Tue Aug 28 2018 Lukáš Tyrychtr <lukastyrychtr@gmail.com> 2.5-5
230155
- Use dash in package name - it makes every reviewer happier.
230155
230155
* Wed Jun 20 2018 Lukáš Tyrychtr <lukastyrychtr@gmail.com> 2.5-4
230155
- Rename the library subpackages to the plural form
230155
- Do not bundle static libraries in the devel subpackage
230155
- Package tle LICENSE file properly
230155
230155
* Tue Apr 24 2018 Lukáš Tyrychtr <lukastyrychtr@gmail.com> 2.5-3
230155
- Add the devel subpackage.
230155
230155
* Fri Apr 20 2018 Lukáš Tyrychtr <lukastyrychtr@gmail.com> 2.5-2
230155
- Do not execute make in parallel.
230155
230155
* Wed Apr 18 2018 Lukáš Tyrychtr <lukastyrychtr@gmail.com> 2.5-1
230155
 Initial release