]> git.pld-linux.org Git - SPECS.git/blob - perl-Expect.spec
SPECS updated Tue 30 Apr 15:13:02 CEST 2024
[SPECS.git] / perl-Expect.spec
1 #
2 # Conditional build:
3 %bcond_with     tests   # perform "make test"
4 #
5 %define         pdir    Expect
6 %define         pnam    Expect
7 Summary:        Expect - Expect for Perl
8 Summary(pl.UTF-8):      Expect - Expect dla Perla
9 Name:           perl-Expect
10 Version:        1.21
11 Release:        1
12 # same as perl
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
22 BuildArch:      noarch
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
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.
31
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.
38
39 %prep
40 %setup -q -n %{pnam}-%{version}
41 %patch0 -p1
42
43 %build
44 %{__perl} Makefile.PL \
45         INSTALLDIRS=vendor
46 %{__make}
47
48 %{?with_tests:%{__make} test}
49
50 %install
51 rm -rf $RPM_BUILD_ROOT
52
53 %{__make} install \
54         DESTDIR=$RPM_BUILD_ROOT
55
56 install -d $RPM_BUILD_ROOT%{perl_vendorlib}/Expect
57
58 %clean
59 rm -rf $RPM_BUILD_ROOT
60
61 %files
62 %defattr(644,root,root,755)
63 %doc Changes README tutorial
64 %{perl_vendorlib}/Expect.pm
65 %{perl_vendorlib}/Expect
66 %{_mandir}/man3/*
This page took 0.08254 seconds and 3 git commands to generate.