]> git.pld-linux.org Git - SPECS.git/blob - milena.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / milena.spec
1 #
2 # TODO: do something with *.so and *.h files
3
4 Summary:        Text to speech system
5 Summary(pl.UTF-8):      Syntezator mowy
6 Name:           milena
7 Version:        0.2.8.1
8 Release:        0.1
9 License:        GPL v3, LGPL v2
10 Group:          Applications/Sound
11 Source0:        http://tts.polip.com/files/%{name}-%{version}.tar.gz
12 # Source0-md5:  1861f6abcef4ed8be3c0d25190bc54d1
13 URL:            http://milena.polip.com/
14 BuildRequires:  enca-devel
15 BuildRequires:  libao-devel
16 BuildRequires:  mbrola-voice-pl
17 Requires:       mbrola
18 Requires:       mbrola-voice-pl
19 Requires:       sox
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
23 Polish text to speech system.
24
25 %description -l pl.UTF-8
26 Polski syntezator mowy.
27
28 %package devel
29 Summary:        Libraries and header files for milena development
30 Summary(pl.UTF-8):      Biblioteki i pliki nagłówkowe dla milena
31 Group:          Development/Libraries
32
33 %description devel
34 This is the milena development package.
35
36 %prep
37 %setup -q
38
39 %{__sed} -i 's/export prefix=\/usr\/local/export prefix=$(DESTDIR)\/usr/' Makefile
40 %{__sed} -i 's/export speechd_dir=$(shell .\/find_speechd)/export speechd_dir=$(DESTDIR)$(shell .\/find_speechd)/' Makefile
41 %{__sed} -i 's/ldconfig//' Makefile
42
43 %build
44 %{__make} \
45         CC="%{__cc}" \
46         CFLAGS="%{rpmcflags}" \
47         prefix=%{_prefix} \
48         mbrola=%{_bindir}/mbrola \
49         mbrola_voice=%{_datadir}/festival/lib/voices/polish/pl1_mbrola/pl1/pl1 \
50         speechd=%{_sysconfdir}/speech-dispatcher/modules \
51         distro="PLD Linux" \
52         contrast=contrast
53
54 %install
55 rm -rf $RPM_BUILD_ROOT
56 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/milena,%{_libdir},%{_includedir},%{_sysconfdir}/speech-dispatcher/modules}
57
58 %{__make} install \
59         DESTDIR=$RPM_BUILD_ROOT
60
61 %post   -p /sbin/ldconfig
62 %postun -p /sbin/ldconfig
63
64 %clean
65 rm -rf $RPM_BUILD_ROOT
66
67 %files
68 %defattr(644,root,root,755)
69 %attr(755,root,root) %{_bindir}/*
70 %attr(755,root,root) %{_libdir}/libmilena*.so
71 %{_datadir}/milena
72 %{_datadir}/milena-words
73
74 %files devel
75 %defattr(644,root,root,755)
76 %{_includedir}/milena*.h
This page took 0.680562 seconds and 3 git commands to generate.