Blame SPECS/speech-tools.spec

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