|
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.
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 |