LCFG::Build::Utils::RPM - LCFG software building utilities
This documentation refers to LCFG::Build::Utils::RPM version 0.9.18
my $dir = q{.}; my $spec = LCFG::Build::PkgSpec->new_from_metafile("$dir/lcfg.yml"); my $resultsdir = '/tmp/foo'; LCFG::Build::Utils::RPM->generate_metadata( $spec, $dir, $resultsdir )
This module provides a suite of utilities to help in building RPM packages from LCFG projects, particularly LCFG components. The methods are mostly used by tools which implement the LCFG::Build::Tool base class (e.g. LCFG::Build::Tool::RPM) but typically they are designed to be generic enough to be used elsewhere.
There are two public methods you can call on this class.
This generates the necessary metadata file (i.e. the specfile) for building RPM packages from this project. It takes an LCFG build package metadata object, an input directory where the template RPM specfile and change log files are stored and an output directory where the generate file should be placed.
This actually builds the RPM packages using the rpmbuild command. It requires the name of the directory which contains the source tar file and the RPM specfile. A reference to a hash of options can be passed in, this allows one to specify things like only building the source package (with "sourceonly") and making rpmbuild ignore dependencies with "nodeps".
rpmbuild
For formatting the change log file you will need DateTime(3).
This is the list of platforms on which we have tested this software. We expect this software to work on any Unix-like platform which is supported by Perl.
Fedora12, Fedora13, ScientificLinux5, ScientificLinux6, MacOSX7
There are no known bugs in this application. Please report any problems to bugs@lcfg.org, feedback and patches are also always very welcome.
Stephen Quinney <squinney@inf.ed.ac.uk>
Copyright (C) 2008 University of Edinburgh. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the terms of the GPL, version 2 or later.
To install LCFG::Build::Tools, copy and paste the appropriate command in to your terminal.
cpanm
cpanm LCFG::Build::Tools
CPAN shell
perl -MCPAN -e shell install LCFG::Build::Tools
For more information on module installation, please visit the detailed CPAN module installation guide.