diff --git a/Expect-Simple-0.04.tar.gz b/Expect-Simple-0.04.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..1f419d639650903679ff3fe24674b5c76a60d4e0 Binary files /dev/null and b/Expect-Simple-0.04.tar.gz differ diff --git a/perl-Expect-Simple.spec b/perl-Expect-Simple.spec new file mode 100644 index 0000000000000000000000000000000000000000..650deb8a0884b4d61f206519c1846a6e11eec975 --- /dev/null +++ b/perl-Expect-Simple.spec @@ -0,0 +1,83 @@ +%global _empty_manifest_terminate_build 0 +Name: perl-Expect-Simple +Version: 0.04 +Release: 1 +Summary: Wrapper around the Expect module +License: GPL+ +Group: Development/Libraries +URL: http://search.cpan.org/dist/Expect-Simple/ +Source0: http://www.cpan.org/authors/id/D/DJ/DJERIUS/Expect-Simple-%{version}.tar.gz +BuildArch: noarch +BuildRequires: perl-generators +BuildRequires: perl(Expect) +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(Test::More) +Requires: perl(Expect) +Requires: perl(Test::More) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +Expect::Simple is a wrapper around the Expect module which should suffice +for simple applications. It hides most of the Expect machinery; the Expect +object is available for tweaking if need be. + +%package help +Summary : Wrapper around the Expect module +Provides: perl-Expect-Simple-doc + +%description help +Expect::Simple is a wrapper around the Expect module which should suffice +for simple applications. It hides most of the Expect machinery; the Expect +object is available for tweaking if need be. + +%prep +%setup -q -n Expect-Simple-%{version} + +%build +export PERL_MM_OPT="" +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +export PERL_MM_OPT="" +rm -rf $RPM_BUILD_ROOT + +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT + +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} $RPM_BUILD_ROOT/* + +pushd %{buildroot} +touch filelist.lst +if [ -d usr/bin ];then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ];then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ];then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib ];then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +popd +mv %{buildroot}/filelist.lst . +%check +make test + +%clean +rm -rf $RPM_BUILD_ROOT + +%files -f filelist.lst +%defattr(-,root,root,-) +%doc ChangeLog Changes LICENSE README +%{perl_vendorlib}/* +%files help +%{_mandir}/* + +%changelog +* Tue Jul 20 2021 Perl_Bot 0.04-1 +- Specfile autogenerated by Perl_Bot