RPM::Make::Simple

RPM::Make::Simple is a simple interface to RPM::Make.
Download

RPM::Make::Simple Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Stephen Hardisty
  • Publisher web site:
  • http://search.cpan.org/~steveha/RPM-Make-Simple-0.03/Simple.pm

RPM::Make::Simple Tags


RPM::Make::Simple Description

RPM::Make::Simple is a simple interface to RPM::Make. RPM::Make::Simple is a simple interface to RPM::Make.SYNOPSIS use RPM::Make::Simple; # define some important build data my $rpm = RPM::Make::Simple->new(name => 'RPM_Name', #mandatory arch => 'i386', # mandatory version => '0.01', release => '1', build_root => './build', temp_build_loc => 'temp_build_loc'); # 'From_File' => 'To_File_or_Dir' $rpm->Files('./scripts/some_script.pl' => '/usr/bin/some_script', './docs/some_document' => '/usr/man/man3/some_document', './config/some_config' => '/etc/some_config', './config/keep_config' => '/etc/keep_config'); # tell RPM::Make this is a document (optional) $rpm->Doc('/usr/man/man3/some_document'); # this is a config file (optional) $rpm->Conf('/etc/some_config'); # config file we don't want to replace if it's there (optional) $rpm->ConfNoReplace('/etc/keep_config'); # Some pre-requisites $rpm->Requires('perl(RPM::Make)' => 0.9); # Some more metadata, summary, post installation etc. $rpm->MetaData('summary' => 'package for blah blah', 'description' => 'longer than the summary', 'post' => $post_install_script, 'AutoReqProv' => 'no', 'vendor' => 'Bob Co.', 'group' => 'Bob RPMS'); # build the RPM! woo! $rpm->Build(); # clean up the temporary files $rpm->Clean();Generates an RPM from a given list of files.I wrote this as a 'dumb' RPM builder. An understanding of how an RPM is built (with spec files and whatnot) is desirable before using this. It's basically a wrapper for RPM::Make where the most important difference is how files are chosen and organised, using a simple 'from_file => to_file' syntax.The Files and MetaData methods can be called more than once.See RPM::Make for more info. Requirements: · Perl


RPM::Make::Simple Related Software