]> git.pld-linux.org Git - packages/powiedz.git/blob - powiedz.spec
a396070c8c696d76f6de41f0752b6bbe27a0b686
[packages/powiedz.git] / powiedz.spec
1 #
2 # Conditional build:
3 %bcond_with     arts    # aRts support
4 %bcond_with     esd     # EsounD support
5
6 Summary:        Text to speech system
7 Summary(pl.UTF-8):      Syntezator mowy
8 Name:           powiedz
9 Version:        1.0
10 Release:        7
11 License:        GPL
12 Group:          Applications/Sound
13 Source0:        http://www.rivendell.eu.org/%{name}-%{version}.tgz
14 # Source0-md5:  e41665cc88c096473d48ff2fd32c4646
15 Patch0:         %{name}-dsp-handle-fix.patch
16 Patch1:         %{name}-Makefile.patch
17 %{?with_arts:BuildRequires:     artsc-devel}
18 %{?with_esd:BuildRequires:      esound-devel}
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 Polish text to speech system based on rsynth.
23
24 %description -l pl.UTF-8
25 Polski syntezator mowy stworzony na podstawie rsynth.
26
27 %prep
28 %setup -q -n %{name}
29 %patch0 -p1
30 %patch1 -p1
31
32 %build
33 %{__make} -f Makefile_plain \
34         CC="%{__cc}" \
35         CFLAGS="%{rpmcflags} %{rpmcppflags} %{?with_arts:`artsc-config --cflags`}" \
36         OPTDEFS="%{?with_arts:-DUSE_ARTS=1} %{?with_esd:-DUSE_ESD=1}" \
37         OPTLIBS="%{?with_arts:`artsc-config --libs`} %{?with_esd:-lesd}"
38
39 %install
40 rm -rf $RPM_BUILD_ROOT
41 install -d $RPM_BUILD_ROOT{%{_bindir},%{_examplesdir}/%{name}-%{version}}
42
43 install %{name} $RPM_BUILD_ROOT%{_bindir}
44 tail -n +3 <pars.def >$RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/sayrc.example
45
46 %clean
47 rm -rf $RPM_BUILD_ROOT
48
49 %files
50 %defattr(644,root,root,755)
51 %attr(755,root,root) %{_bindir}/powiedz
52 %{_examplesdir}/%{name}-%{version}
This page took 0.065047 seconds and 2 git commands to generate.