1 %include /usr/lib/rpm/macros.perl
2 Summary: Expect perl module
3 Summary(pl): Modu³ perla Expect
8 Group: Development/Languages/Perl
9 Group(pl): Programowanie/Jêzyki/Perl
10 Source0: ftp://ftp.perl.org/pub/CPAN/modules/by-module//Expect.pm-%{version}.tar.gz
11 Patch0: perl-Expect-paths.patch
12 BuildRequires: rpm-perlprov >= 3.0.3-16
13 BuildRequires: perl >= 5.005_03-14
14 BuildRequires: perl-IO-Stty
15 BuildRequires: perl-IO-Tty
17 Requires: %{perl_sitearch}
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 %setup -q -n Expect.pm-%{version}
35 rm -rf $RPM_BUILD_ROOT
36 make install DESTDIR=$RPM_BUILD_ROOT
39 cd $RPM_BUILD_ROOT%{perl_sitearch}/auto/Expect
40 sed -e "s#$RPM_BUILD_ROOT##" .packlist >.packlist.new
41 mv .packlist.new .packlist
44 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man3/* \
48 rm -rf $RPM_BUILD_ROOT
51 %defattr(644,root,root,755)
52 %doc {Changes,README,FAQ}.gz tutorial
54 %{perl_sitelib}/Expect.pm
55 %{perl_sitelib}/term-filter.pl
56 %{perl_sitearch}/auto/Expect