App-CPANtoRPM
view release on metacpan or search on metacpan
lib/App/CPANtoRPM.pm view on Meta::CPAN
expect -exact "Enter pass phrase: "
send -- "$pass\\r"
expect {
"Pass phrase check failed" { puts "Failed" }
eof { puts "Success" }
}
EOF
$out->close();
chmod 0755,$file;
open(IN,"'$file' |");
my @out = <IN>;
close(IN);
unlink $file;
if ( grep /Failed/,@out ) {
return 1;
}
return 0;
}
lib/App/CPANtoRPM.pm view on Meta::CPAN
<endif:incl_compat>
<endif:incl_deps>
%description
<desc>
%prep
rm -rf %{_builddir}/<name>-%{version}
%setup -D -n <name>-<version>
chmod -R u+w %{_builddir}/<name>-%{version}
if [ -f pm_to_blib ]; then rm -f pm_to_blib; fi
%build
<config_cmd>
<build_cmd>
<list:post_build>
<if:incl_tests>
( run in 0.661 second using v1.01-cache-2.11-cpan-8d75d55dd25 )