]>
Commit | Line | Data |
---|---|---|
b503290c JB |
1 | # |
2 | # Conditional build: | |
cfa33745 | 3 | %bcond_without tests # do not perform "make test" |
6c4846a8 | 4 | |
2998f40a | 5 | %define pdir Speech |
6 | %define pnam speech_pm | |
6c4846a8 | 7 | %include /usr/lib/rpm/macros.perl |
b503290c | 8 | Summary: Speech::Synthesiser - speech output for Perl |
259eb319 | 9 | Summary(pl.UTF-8): Speech::Synthesiser - wyjście mowy dla Perla |
b503290c JB |
10 | Name: perl-speech |
11 | Version: 1.0 | |
ae6cec59 | 12 | Release: 4 |
b503290c JB |
13 | License: unknown |
14 | Group: Development/Languages/Perl | |
25e3b867 | 15 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pnam}_%{version}.tgz |
f9f87d55 | 16 | # Source0-md5: 49666e75d6014c9f521a582fb0f531ce |
6c4846a8 | 17 | URL: http://search.cpan.org/dist/speech_pm/ |
f70c73df | 18 | BuildRequires: perl-devel >= 1:5.8.0 |
32b5fd5f | 19 | BuildRequires: rpm-perlprov >= 4.1-13 |
b503290c JB |
20 | Requires: festival |
21 | BuildArch: noarch | |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | # note: there is only festival interface for now, so it isn't separated | |
25 | # (and Requires: festival is in main package) | |
26 | ||
27 | %description | |
28 | This is a simple Perl extension module which provides a way for perl | |
29 | programs to speak using a speech synthesiser. The interface is | |
30 | intended to allow any synthesiser to be plugged in. An implementation | |
31 | using the festival speech synthesiser is included. | |
32 | ||
cbc4fe57 JR |
33 | %description -l pl.UTF-8 |
34 | To jest prosty moduł Perla udostępniający programom możliwość mówienia | |
35 | przy użyciu syntezatora mowy. Interfejs jest zaprojektowany z myślą o | |
36 | możliwości użycia dowolnego syntezatora. Dołączona jest implementacja | |
37 | używająca syntezatora festival. | |
b503290c JB |
38 | |
39 | %prep | |
40 | %setup -q -n %{pnam}_%{version} | |
41 | # workaround and fixes for broken file locations | |
aa93c207 | 42 | %{__perl} -pi -e 's/Speech::Synthesiser/Speech/' Makefile.PL |
43 | %{__perl} -pi -e 's/Speech::Speech::Festival/Speech::Festival/' Speech/Festival.pm | |
44 | %{__perl} -pi -e 's/use Festival/use Speech::Festival/' test.pl | |
b503290c JB |
45 | |
46 | %build | |
32b5fd5f | 47 | %{__perl} Makefile.PL \ |
6212dd96 | 48 | INSTALLDIRS=vendor |
b503290c JB |
49 | %{__make} |
50 | ||
cfa33745 | 51 | %{?with_tests:%{__make} test} |
b503290c JB |
52 | |
53 | %install | |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | ||
56 | %{__make} install \ | |
57 | DESTDIR=$RPM_BUILD_ROOT | |
58 | ||
59 | %clean | |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | ||
62 | %files | |
63 | %defattr(644,root,root,755) | |
64 | %doc Changes README.txt | |
32b5fd5f | 65 | %{perl_vendorlib}/Audio/*.pm |
66 | %{perl_vendorlib}/Speech/*.pm | |
67 | %{perl_vendorlib}/Speech/Festival | |
b503290c | 68 | %{_mandir}/man3/* |