NAME
RPM::Util::Files - Generate %files list in RPM Specfile
VERSION
This document describes RPM::Util::Files version 0.0.1
SYNOPSIS
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;
EXPORT
none.
METHODS
new($options)
Constructor of this module.
- ARGUMENTS
-
- 1. $options
-
$options argument must be HASH reference.
- package_name
-
This is subpackage name in Specfile.
- build_root
-
This is root directory building and extractiong package.
- defattr
-
For %defattr parameter. Using this option in use_attr parameter is false.
- use_attr
-
For %attr Forcing user and group parameter is root.
- docdirs
-
For %docdir parameter. This parameter must be ARRAY reference.
- ignore_filters
-
This is callback list to exclude entry from %files list. This parameter must be ARRAY reference.
- docs_filters
-
For %docs parameter. This is callback list to include entry as %docs. This parameter must be ARRAY reference.
- config_filters
-
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
AUTHOR
Toru Yamaguchi, <zigorou at cpan.org>
BUGS
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?Queue=RPM-Util-Files. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc RPM::Util::Files
You can also look for information at:
AnnoCPAN: Annotated CPAN documentation
CPAN Ratings
RT: CPAN's request tracker
Search CPAN
ACKNOWLEDGEMENTS
COPYRIGHT & LICENSE
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__