diff --git a/README.md b/README.md index d2a72b7..9293c50 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # perl-Expect +Perl Expect module + diff --git a/perl-Expect.spec b/perl-Expect.spec new file mode 100644 index 0000000..86bf9f0 --- /dev/null +++ b/perl-Expect.spec @@ -0,0 +1,66 @@ +%define PERL_VERSION %(eval `perl -V:version`; echo $version) +Name: perl-Expect +Version: 1.21 +Release: 3mamba +Summary: Perl Expect module +Group: Development/Libraries/Perl +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +Source: http://www.cpan.org/authors/id/R/RG/RGIERSIG/Expect-%{version}.tar.gz +URL: http://www.cpan.org +License: GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: perl-devel >= %PERL_VERSION +BuildRequires: perl-IO-Tty >= 1.07 +## AUTOBUILDREQ-END +Requires: perl >= %PERL_VERSION +BuildRoot: %{_tmppath}/perl-root + +%description +Perl Expect module + +%prep +%setup -q -n Expect-%{version} + +%build +perl Makefile.PL +make +make test + +%install +test x"$RPM_BUILD_ROOT" != x/ && rm -rf "$RPM_BUILD_ROOT" +%makeinstall_perl + +packlist=`find %{buildroot} -name .packlist` +[[ -z "$packlist" ]] && exit 1 || cat $packlist | \ + sed "s,%buildroot,,g;s,.*/man/.*,&.gz,g" | \ + sort -u > .packlist && rm -f $packlist + +strid=`echo $packlist | sed 's,.*auto\(.*\)/.packlist,\1,'` +for dir in `find %{buildroot} -type d | grep $strid`; do + echo "%dir ${dir#%buildroot}" >> .packlist +done + +%clean +test x"$RPM_BUILD_ROOT" != x/ && rm -rf "$RPM_BUILD_ROOT" +rm -f .packlist + +%files -f .packlist +%defattr(-,root,root) + +%changelog +* Thu Aug 29 2013 Automatic Build System 1.21-3mamba +- automatic rebuild by autodist + +* Wed Nov 05 2008 Silvan Calarco 1.21-2mamba +- automatic rebuild by autodist + +* Mon Sep 15 2008 gil 1.21-1mamba +- update to 1.21 + +* Tue Feb 01 2005 Silvan Calarco 1.15-2qilnx +- make perl version check non strict (>=) + +* Fri Apr 30 2004 Silvan Calarco 1.15-1qilnx +- First build