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..4db655aaaf70233242373f3180cc890ccc7a7e37 --- /dev/null +++ b/perl-Expect-Simple.spec @@ -0,0 +1,98 @@ +%global cpan_name Expect-Simple +%global _empty_manifest_terminate_build 0 + +Name: perl-%{cpan_name} +Version: 0.04 +Release: 1 +Summary: Wrapper around the Expect module + +License: GPL-2.0-or-later +URL: http://search.cpan.org/dist/%{cpan_name}/ +Source0: http://www.cpan.org/authors/id/D/DJ/DJERIUS/%{cpan_name}-%{version}.tar.gz +BuildArch: noarch + +BuildRequires: perl-generators +BuildRequires: perl(Expect) +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(Test::More) +Requires: perl(Expect) +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-%{cpan_name}-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 %{cpan_name}-%{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 README +%license LICENSE +%{perl_vendorlib}/* + + +%files help +%{_mandir}/* + + +%changelog +* Tue Jul 20 2021 ice-kylin 0.04-1 +- Initial package