diff --git a/Command-Runner-0.103.tar.gz b/Command-Runner-0.103.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..a72c2c757fb2470ffa148706e7d4cf33cceaf038 Binary files /dev/null and b/Command-Runner-0.103.tar.gz differ diff --git a/perl-Command-Runner.spec b/perl-Command-Runner.spec new file mode 100644 index 0000000000000000000000000000000000000000..d9429632e6ac0c0f2558ec1431d568641e4807da --- /dev/null +++ b/perl-Command-Runner.spec @@ -0,0 +1,76 @@ +%global _empty_manifest_terminate_build 0 +Name: perl-Command-Runner +Version: 0.103 +Release: 1 +Summary: Run external commands and Perl code refs +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Command-Runner/ +Source0: http://www.cpan.org/authors/id/S/SK/SKAJI/Command-Runner-%{version}.tar.gz +BuildArch: noarch +BuildRequires: perl >= 0:5.008001 +BuildRequires: perl-generators +BuildRequires: perl(Capture::Tiny) +BuildRequires: perl(Module::Build) +BuildRequires: perl(String::ShellQuote) +BuildRequires: perl(Test::More) >= 0.98 +BuildRequires: perl(Win32::ShellQuote) +Requires: perl(Capture::Tiny) +Requires: perl(String::ShellQuote) +Requires: perl(Win32::ShellQuote) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +%description +Command::Runner runs external commands and Perl code refs +%package help +Summary : Run external commands and Perl code refs +Provides: perl-Command-Runner-doc +%description help +Command::Runner runs external commands and Perl code refs +%prep +%setup -q -n Command-Runner-%{version} +%build +export PERL_MM_OPT="" +%{__perl} Build.PL --installdirs=vendor +./Build + +%install +export PERL_MM_OPT="" +rm -rf $RPM_BUILD_ROOT + +./Build install --destdir=$RPM_BUILD_ROOT --create_packlist=0 +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 +./Build test + +%clean +rm -rf $RPM_BUILD_ROOT + +%files -f filelist.lst +%defattr(-,root,root,-) +%doc Changes cpanfile dist.ini LICENSE META.json README +%{perl_vendorlib}/* +%files help +%{_mandir}/* + +%changelog +* Wed Jun 30 2021 Perl_Bot 0.103-1 +- Specfile autogenerated by Perl_Bot