3 %bcond_with tests # perform "make test"
7 Summary: Expect - Expect for Perl
8 Summary(pl.UTF-8): Expect - Expect dla Perla
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/Expect/%{pnam}-%{version}.tar.gz
16 # Source0-md5: a151b0dc4d1a35c73941c65b7c26da5b
17 Patch0: %{name}-paths.patch
18 URL: http://search.cpan.org/dist/Expect/
19 BuildRequires: perl-IO-Tty >= 1.03
20 BuildRequires: perl-devel >= 1:5.8.0
21 BuildRequires: rpm-perlprov >= 4.1-13
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 The Expect Perl module is a successor of Comm.pl and a descendent of
27 Chat.pl. It more closely resembles the Tcl Expect language than its
28 predecessors. It does not contain any of the networking code found in
29 Comm.pl. I suspect this would be obsolete anyway given the advent of
30 IO::Socket and external tools such as netcat.
32 %description -l pl.UTF-8
33 Moduł Perla Expect jest następcą Comm.pl i potomkiem Chat.pl. Bardziej
34 przypomina on język Tcl Expect niż jego poprzednicy. Nie zawiera kodu
35 sieciowego, który był obecny w Comm.pl. Prawdopodobnie powinien być
36 uznany za przestarzały wraz z ukazaniem się IO::Socket i zewnętrznych
37 narzędzi, takich jak netcat.
40 %setup -q -n %{pnam}-%{version}
44 %{__perl} Makefile.PL \
48 %{?with_tests:%{__make} test}
51 rm -rf $RPM_BUILD_ROOT
54 DESTDIR=$RPM_BUILD_ROOT
56 install -d $RPM_BUILD_ROOT%{perl_vendorlib}/Expect
59 rm -rf $RPM_BUILD_ROOT
62 %defattr(644,root,root,755)
63 %doc Changes README tutorial
64 %{perl_vendorlib}/Expect.pm
65 %{perl_vendorlib}/Expect