]> git.pld-linux.org Git - packages/perl-speech.git/blame - perl-speech.spec
use generic url
[packages/perl-speech.git] / perl-speech.spec
CommitLineData
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 8Summary: Speech::Synthesiser - speech output for Perl
259eb319 9Summary(pl.UTF-8): Speech::Synthesiser - wyjście mowy dla Perla
b503290c
JB
10Name: perl-speech
11Version: 1.0
ae6cec59 12Release: 4
b503290c
JB
13License: unknown
14Group: Development/Languages/Perl
25e3b867 15Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pnam}_%{version}.tgz
f9f87d55 16# Source0-md5: 49666e75d6014c9f521a582fb0f531ce
6c4846a8 17URL: http://search.cpan.org/dist/speech_pm/
f70c73df 18BuildRequires: perl-devel >= 1:5.8.0
32b5fd5f 19BuildRequires: rpm-perlprov >= 4.1-13
b503290c
JB
20Requires: festival
21BuildArch: noarch
22BuildRoot: %{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
28This is a simple Perl extension module which provides a way for perl
29programs to speak using a speech synthesiser. The interface is
30intended to allow any synthesiser to be plugged in. An implementation
31using the festival speech synthesiser is included.
32
cbc4fe57
JR
33%description -l pl.UTF-8
34To jest prosty moduł Perla udostępniający programom możliwość mówienia
35przy użyciu syntezatora mowy. Interfejs jest zaprojektowany z myślą o
36możliwości użycia dowolnego syntezatora. Dołączona jest implementacja
37uż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
54rm -rf $RPM_BUILD_ROOT
55
56%{__make} install \
57 DESTDIR=$RPM_BUILD_ROOT
58
59%clean
60rm -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/*
This page took 0.236557 seconds and 4 git commands to generate.