%global commit ba331411f17702e01f6c2d7016eefebaa695871f %global shortcommit ba33141 %global commitdate 20210316 Name: sonic Version: 0.2.0^%{commitdate}git%{shortcommit} Release: %{autorelease} Summary: Library to speed up or slow down speech License: Apache-2.0 URL: https://github.com/waywardgeek/sonic Source0: %{url}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz BuildRequires: gcc BuildRequires: make %description Sonic is a simple algorithm for speeding up or slowing down speech. However, it's optimized for speed ups of over 2X, unlike previous algorithms for changing speech rate. The Sonic library is a very simple ANSI C library that is designed to easily be integrated into streaming voice applications, like TTS back ends. The primary motivation behind Sonic is to enable the blind and visually impaired to improve their productivity with open source speech engines, like espeak. Sonic can also be used by the sighted. For example, Sonic can improve the experience of listening to an audio book on an Android phone. %package devel Summary: Development files for sonic Requires: %{name}%{?_isa} = %{version}-%{release} %description devel Development files and libraries for sonic. %package static Summary: Sonic static library Requires: %{name}-devel%{?_isa} = %{version}-%{release} %description static Sonic static library. %prep %autosetup -n sonic-%{commit} sed -i 's|LIBDIR=$(PREFIX)/lib|LIBDIR=%{_libdir}|g' Makefile %build %make_build %install %make_install install -pDm0644 sonic.1 %{buildroot}%{_mandir}/man1/sonic.1 %check make check %files %license COPYING %doc README %{_bindir}/sonic %{_mandir}/man1/sonic.1* %{_libdir}/libsonic.so.0.3.0 %files devel %{_includedir}/sonic.h %{_libdir}/libsonic.so %{_libdir}/libsonic.so.0 %files static %{_libdir}/libsonic.a %changelog %autochangelog