]> 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 8a0e07460d585cf9373d7703e14d78fed9e1ded0..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:       eSpeak - speech synthesizer for English and other languages
-Summary(pl):   eSpeak - syntezator mowy dla jêzyka angielskiego 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/
 URL:           http://espeak.sourceforge.net/
-BuildRequires: autoconf
-BuildRequires: automake
 BuildRequires: libstdc++-devel
 BuildRequires: portaudio-devel >= 19
 BuildRequires: libstdc++-devel
 BuildRequires: portaudio-devel >= 19
+BuildRequires: pulseaudio-devel
 BuildRequires: unzip
 BuildRequires: unzip
+Requires:      %{name}-libs = %{version}-%{release}
+Obsoletes:     speak
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 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.
   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 (e.gj. polish
-  language) 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++.
 
 - Development tools available for producing and tuning phoneme data.
 - Written in C++.
 
@@ -49,100 +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.
 
 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
 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ê.
+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
+- 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).
   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.
+- 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++.
 
 - 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.
+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
 
 %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
 
 %build
-%{__aclocal}
-%{__autoconf}
-%{__autoheader}
-%{__automake}
-%configure
-%{__make}
+%{__make} -C src \
+       CXX="%{__cxx}" \
+       CXXFLAGS="%{rpmcxxflags}" \
+       AUDIO=runtime
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
 
 %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
 
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post  libs -p /sbin/ldconfig
+%postun        libs -p /sbin/ldconfig
+
 %files
 %defattr(644,root,root,755)
 %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.729529 seconds and 4 git commands to generate.