]> git.pld-linux.org Git - packages/espeak.git/blobdiff - espeak.spec
- updated to 1.48.04 (GPL v3 now)
[packages/espeak.git] / espeak.spec
index 157e26c23525832638efad3f961f9f4b203257ec..09d44330590d81c6d0af4f18474943a174c060f0 100644 (file)
@@ -1,23 +1,19 @@
-# NOTES:
-#      - maybe espeak is better name for spec
-#      - in the absence of data files in expected location (/usr/share/espeak-data or $HOME/espeak-data) program segfaults
-#      
 Summary:       eSpeak - speech synthesizer for English and other languages
-Summary(pl):   eSpeak - syntezator mowy dla jêzyka anglieskiego i innych
-Name:          speak
-Version:       1.13
-Release:       0.1
-License:       GPL v2
-Group:         Applications
-Source0:       http://dl.sourceforge.net/espeak/%{name}-%{version}-source.zip
-# Source0-md5: 1cd76ad278fa134eced57b865b72175b
-Patch0:                %{name}-ac_am.patch
+Summary(pl.UTF-8):     eSpeak - syntezator mowy dla języka angielskiego i innych
+Name:          espeak
+Version:       1.48.04
+Release:       1
+License:       GPL v3+
+Group:         Applications/Sound
+Source0:       http://downloads.sourceforge.net/espeak/%{name}-%{version}-source.zip
+# Source0-md5: cadd7482eaafe9239546bdc09fa244c3
 URL:           http://espeak.sourceforge.net/
-BuildRequires: autoconf
-BuildRequires: automake
 BuildRequires: libstdc++-devel
 BuildRequires: portaudio-devel >= 19
+BuildRequires: pulseaudio-devel
 BuildRequires: unzip
+Requires:      %{name}-libs = %{version}-%{release}
+Obsoletes:     speak
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -38,9 +34,9 @@ periods.
   totals about 420 kbytes.
 - Can translate text to phoneme codes, so it could be adapted as a
   front end for another speech synthesis engine.
-- Potential for other languages. Several are included in varying
-  stages of progress. Help from native speakers for these or other
-  languages is welcomed.
+- Potential for other languages. Several are included (e.g. Polish
+  language) in varying stages of progress. Help from native speakers for
+  these or other languages is welcomed.
 - Development tools available for producing and tuning phoneme data.
 - Written in C++.
 
@@ -49,72 +45,118 @@ as an alternative to Festival for example. As such, it can speak text
 which has been selected into the clipboard, or directly from the
 Konquerer browser or the Kate editor.
 
-#%description -l pl
+%description -l pl.UTF-8
+eSpeak to programowy syntezator mowy dla angielskiego i innych
+języków. Odtwarza angielską mowę dobrej jakości. Używa innej
+metody syntezy niż inne silniki TTS o otwartych źródłach i brzmi
+trochę inaczej. Nie jest może tak naturalny czy "gładki", ale autor
+uważa tę wymowę za czystszą i łatwiejszą w słuchaniu na
+dłuższą metę.
+
+- Może działać jako program z linii poleceń do wymawiania tekstu z
+  pliku lub standardowego wejścia; dostępna jest także wersja w
+  postaci biblioteki (nie w tym pakiecie).
+- Zawiera różne głosy, a ich charakterystykę można zmieniać.
+- Potrafi tworzyć pliki WAV z mową.
+- Obsługiwany (ale nie w pełni) jest SSML (Speech Synthesis Markup
+  Language) oraz HTML.
+- Mały rozmiar - program i jego dane, wraz z kilkoma językami,
+  mieszczą się w około 420kB.
+- Potrafi tłumaczyć tekst na kody fonemów, więc może być
+  zaadaptowany jako frontend dla innych silników syntezy mowy.
+- Potencjalnie może nadawać się dla innych języków; kilka jest
+  dołączonych (na przykład j.polski) w różnym stadium
+  zaawansowania. Mile widziana jest pomoc od osób, dla których są to
+  języki ojczyste.
+- Dostępne są narzędzia programistyczne do tworzenia i dostrajania
+  danych dla fonemów.
+- Napisany w C++.
+
+Dobrze pracuje jako "mówca" z systemem przetwarzania tekstu na mowę
+KDE (KTTS), na przykład, jako alternatywa dla Festivala. Jako taki,
+może czytać na głos tekst zaznaczony uprzednio do schowka lub
+bezpośrednio z przeglądarki Konqueror i edytora Kate.
+
+%package libs
+Summary:       eSpeak shared libraries
+Summary(pl.UTF-8):     eSpeak - biblioteki
+Group:         Libraries
+Obsoletes:     speak-libs
+
+%description libs
+eSpeak shared libraries.
+
+%description libs -l pl.UTF-8
+eSpeak - biblioteki dzielone.
+
+%package devel
+Summary:       eSpeak - development files
+Summary(pl.UTF-8):     eSpeak - pliki dla programistów
+Group:         Development/Libraries
+Requires:      %{name}-libs = %{version}-%{release}
+
+%description devel
+eSpeak - development files.
+
+%description devel -l pl.UTF-8
+eSpeak - pliki dla programistów.
+
+%package static
+Summary:       eSpeak - static libraries
+Summary(pl.UTF-8):     eSpeak - biblioteki statyczne
+Group:         Development/Libraries
+Requires:      %{name}-devel = %{version}-%{release}
+
+%description static
+eSpeak - static libraries.
+
+%description static -l pl.UTF-8
+eSpeak - biblioteki statyczne.
 
 %prep
 %setup -q -n %{name}-%{version}-source
-%patch -p1
-# remove pernicious headers to avoid using them during build instead of /usr/include/portaudio.h system header
-rm -f src/portaudio{18,19,}.h
+# remove pernicious headers to avoid using them during build instead of %{_includedir}/portaudio.h system header
+%{__rm} src/portaudio{18,19,}.h
+
+%ifarch sparc64
+sed -i -e 's/-fpic/-fPIC/g' src/Makefile
+%endif
 
 %build
-%{__aclocal}
-%{__autoconf}
-%{__autoheader}
-%{__automake}
-%configure
-%{__make}
+%{__make} -C src \
+       CXX="%{__cxx}" \
+       CXXFLAGS="%{rpmcxxflags}" \
+       AUDIO=runtime
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%{__make} install \
-       DESTDIR=$RPM_BUILD_ROOT
+%{__make} -C src install \
+       DESTDIR=$RPM_BUILD_ROOT \
+       LIBDIR="%{_libdir}"
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post  libs -p /sbin/ldconfig
+%postun        libs -p /sbin/ldconfig
+
 %files
 %defattr(644,root,root,755)
-%doc ChangeLog ReadMe docs
-%attr(755,root,root) %{_bindir}/*
-%dir %{_datadir}/e%{name}-data
-%dir %{_datadir}/e%{name}-data/voices
-%dir %{_datadir}/e%{name}-data/voices/en
-%{_datadir}/e%{name}-data/voices/en/en-rp-f
-%{_datadir}/e%{name}-data/voices/en/en-wm-f
-%{_datadir}/e%{name}-data/voices/en/en-n
-%{_datadir}/e%{name}-data/voices/en/en
-%{_datadir}/e%{name}-data/voices/en/en1
-%{_datadir}/e%{name}-data/voices/en/en2
-%{_datadir}/e%{name}-data/voices/en/en3
-%{_datadir}/e%{name}-data/voices/en/en4
-%{_datadir}/e%{name}-data/voices/en/en6
-%{_datadir}/e%{name}-data/voices/en/en7
-%{_datadir}/e%{name}-data/voices/en/en8
-%{_datadir}/e%{name}-data/voices/en/en-croak
-%{_datadir}/e%{name}-data/voices/en/en-f
-%{_datadir}/e%{name}-data/voices/en/en-rp
-%{_datadir}/e%{name}-data/voices/en/en-n-f
-%{_datadir}/e%{name}-data/voices/en/en-wm
-%{_datadir}/e%{name}-data/voices/es
-%{_datadir}/e%{name}-data/voices/it
-%{_datadir}/e%{name}-data/voices/pl
-%{_datadir}/e%{name}-data/voices/af
-%{_datadir}/e%{name}-data/voices/default
-%{_datadir}/e%{name}-data/voices/eo
-%{_datadir}/e%{name}-data/voices/de
-%{_datadir}/e%{name}-data/voices/el
-%dir %{_datadir}/e%{name}-data/soundicons
-%{_datadir}/e%{name}-data/af_dict
-%{_datadir}/e%{name}-data/de_dict
-%{_datadir}/e%{name}-data/en_dict
-%{_datadir}/e%{name}-data/eo_dict
-%{_datadir}/e%{name}-data/es_dict
-%{_datadir}/e%{name}-data/it_dict
-%{_datadir}/e%{name}-data/phondata
-%{_datadir}/e%{name}-data/phonindex
-%{_datadir}/e%{name}-data/phontab
-%{_datadir}/e%{name}-data/config
-%{_datadir}/e%{name}-data/pl_dict
-%{_datadir}/e%{name}-data/el_dict
+%doc ChangeLog.txt ReadMe docs
+%attr(755,root,root) %{_bindir}/espeak
+%{_datadir}/%{name}-data
+
+%files libs
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libespeak.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libespeak.so.1
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libespeak.so
+%{_includedir}/espeak
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libespeak.a
This page took 0.074587 seconds and 4 git commands to generate.