]> git.pld-linux.org Git - packages/flite.git/blob - flite.spec
56c3a60354f4d9b0792e9b4b8a0d0606a80a05ee
[packages/flite.git] / flite.spec
1 #
2 # NOTE: - building is memory consuming (up to c.a. 537MB)
3 # TODO: - review -link,-alsa, version patches
4 #       - --disable-static doesn't work
5 #       - install manpages via makefile
6 #
7 # Conditional build:
8 %bcond_without  static_libs # don't pack static liraries
9 #
10 Name:           flite
11 Version:        1.2
12 Release:        0.1
13 Summary:        flite - a small, fast speech synthesis engine
14 Summary(ru_RU.KOI8-R):flite - ÍÁÌÅÎØËÏÅ, ÂÙÓÔÒÏÅ ÓÒÅÄÓÔ×Ï ÄÌÑ ÓÉÎÔÅÚÁ ÒÅÞÉ
15 License:        Custom, see COPYING
16 Group:          Applications/Sound
17 Source0:        http://www.speech.cs.cmu.edu/flite/packed/flite-1.2/%{name}-%{version}-release.tar.bz2
18 # Source0-md5:  24c1576f5b3eb23ecedf4bebde96710f
19 # ALT Linux patches:
20 Patch0:         %{name}-link.patch
21 Patch1:         %{name}-alsa.patch
22 Patch2:         %{name}-DESTDIR.patch
23 Patch3:         %{name}-fix-readonly-assignments.patch
24 # Debian patches:
25 Patch4:         %{name}-doc.patch
26 Patch5:         %{name}-version.patch
27 URL:            http://cmuflite.org/
28 BuildRequires:  autoconf
29 BuildRequires:  automake
30 BuildRequires:  alsa-lib-devel
31 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32
33 %description
34 Flite - a small, fast speech synthesis engine. It is the latest
35 addition to the suite of free software synthesis tools including
36 University of Edinburgh's Festival Speech Synthesis System and
37 Carnegie Mellon University's FestVox project, tools, scripts and
38 documentation for building synthetic voices. However, flite itself
39 does not require either of these systems to compile and run.
40
41 %description -l ru_RU.KOI8-R
42 Flite -- ÍÁÌÅÎØËÏÅ, ÂÙÓÔÒÏÅ ÓÒÅÄÓÔ×Ï ÄÌÑ ÓÉÎÔÅÚÁ ÒÅÞÉ. üÔÏ ÐÏÓÌÅÄÎÅÅ
43 ÄÏÂÁ×ÌÅÎÉÅ Ë ÎÁÂÏÒÕ Ó×ÏÂÏÄÎÏÇÏ ÐÒÏÇÒÁÍÍÎÏÇÏ ÏÂÅÓÐÅÞÅÎÉÑ ÄÌÑ ÓÉÎÔÅÚÁ
44 ÒÅÞÉ, ÐÒÏÅËÔÙ FestVox É Festival. ïÄÎÁËÏ, ÓÁÍ flite ÎÅ ÔÒÅÂÕÅÔ ÎÉ
45 ÏÄÎÏÇÏ ÉÚ ÜÔÉÈ ÐÁËÅÔÏ× ÄÌÑ ËÏÍÐÉÌÑÃÉÉ É ÚÁÐÕÓËÁ.
46
47 %package devel
48 Summary:        development files for flite
49 Group:          Applications/Sound
50 Requires:       %{name} = %{version}-%{release}
51
52 %description devel
53 development files for flite, a small, fast speech synthesis engine
54
55 %description devel -l ru_RU.KOI8-R
56 æÁÊÌÙ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ Ó ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ flite - ÍÁÌÅÎØËÏÇÏ, ÂÙÓÔÒÏÇÏ
57 ÓÒÅÄÓÔ×Á ÄÌÑ ÓÉÎÔÅÚÁ ÒÅÞÉ.
58
59 %package static
60 Summary:        static development files for flite
61 Group:          Applications/Sound
62 Requires:       %{name}-devel = %{version}-%{release}
63
64 %description static
65 static development files for flite, a small, fast speech synthesis
66 engine
67
68 %description static -l ru_RU.KOI8-R
69 óÔÁÔÉÞÅÓËÉÅ ÆÁÊÌÙ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ Ó ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ flite - ÍÁÌÅÎØËÏÇÏ,
70 ÂÙÓÔÒÏÇÏ ÓÒÅÄÓÔ×Á ÄÌÑ ÓÉÎÔÅÚÁ ÒÅÞÉ.
71
72 %prep
73 %setup -qn %{name}-%{version}-release
74 %patch0 -p1
75 %patch1 -p1
76 %patch2 -p1
77 %patch3 -p1
78 %patch4 -p1
79 %patch5 -p1
80
81 %build
82 cp -f /usr/share/automake/config.sub .
83 %{__autoconf}
84 %configure \
85         --enable-shared \
86         %{!?with_static_libs:--disable-static} \
87         --with-vox=cmu_us_kal16
88
89 %{__make}
90
91 %install
92 rm -rf $RPM_BUILD_ROOT
93 # temp. workaround - put manpages in better place and install them via Makefile
94 install -d $RPM_BUILD_ROOT%{_mandir}/man1
95
96 %{__make} install \
97         DESTDIR=$RPM_BUILD_ROOT
98
99 install debian/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
100
101 %clean
102 rm -rf $RPM_BUILD_ROOT
103
104 %post   -p /sbin/ldconfig
105 %postun -p /sbin/ldconfig
106
107 %files
108 %defattr(644,root,root,755)
109 %doc ACKNOWLEDGEMENTS README COPYING doc/html
110 %attr(755,root,root) %{_bindir}/*
111 %attr(755,root,root) %{_libdir}/lib*.so.*.*
112 %{_mandir}/man1/*.1*
113
114 %files devel
115 %defattr(644,root,root,755)
116 %{_includedir}/*
117 %attr(755,root,root) %{_libdir}/lib*.so
118
119 %if %{with static_libs}
120 %files static
121 %defattr(644,root,root,755)
122 %{_libdir}/lib*.a
123 %endif
This page took 0.027982 seconds and 2 git commands to generate.