| RPM::Util::Files - Generate %files list in RPM Specfile |
RPM::Util::Files - Generate %files list in RPM Specfile
This document describes RPM::Util::Files version 0.0.1
use RPM::Util::Files;
my $util = RPM::Util::Files->new({
build_root => '/var/tmp/some-package-version-root',
docs_filters => [
sub {
my $entry = shift;
return $entry =~ /manuals/;
}
],
config_filters => [
sub {
my $entry = shift;
return $entry =~ /\.conf$/;
}
],
});
$util->make_files;
print $util->to_string;
none.
new($options)Constructor of this module.
$options argument must be HASH reference.
This is subpackage name in Specfile.
This is root directory building and extractiong package.
For %defattr parameter. Using this option in use_attr parameter is false.
For %attr Forcing user and group parameter is root.
For %docdir parameter. This parameter must be ARRAY reference.
This is callback list to exclude entry from %files list. This parameter must be ARRAY reference.
For %docs parameter. This is callback list to include entry as %docs. This parameter must be ARRAY reference.
For %config parameter. This is callback list to include entry as %config. This parameter must be ARRAY reference.
make_files()Searching files and making %files list.
to_string()Getting %files as string.
do_filters()Execute filters by entry_type
docdirs_filter()Execute filters for %docdir
dir_filter()Execute filters for %dir
add_files_entry()Add entry to %files list
Toru Yamaguchi, <zigorou at cpan.org>
Please report any bugs or feature requests to
bug-rpm-util-files at rt.cpan.org, or through the web interface at
http://rt.cpan.org/NoAuth/ReportBug.html.
I will be notified, and then you'll automatically be notified of progress on
your bug as I make changes.
You can find documentation for this module with the perldoc command.
perldoc RPM::Util::Files
You can also look for information at:
Copyright 2006 Toru Yamaguchi, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
__END__
| RPM::Util::Files - Generate %files list in RPM Specfile |