(→Macros) |
(→Macros) |
||
Line 26: | Line 26: | ||
| <code>%rakudo_rpm_version</code> || release number | | <code>%rakudo_rpm_version</code> || release number | ||
|- | |- | ||
| <code>%perl6_vendor_dir</code> || vendor directory <code>%{_libdir}/perl6/vendor</code> | | <code>%perl6_vendor_dir</code> || vendor directory: <code>%{_libdir}/perl6/vendor</code> | ||
|- | |||
| <code>%perl6_site_dir</code> || site directory: <code>%{_libdir}/perl6/site</code> | |||
|} | |} | ||
Revision as of 07:58, 27 June 2017
Naming Guidelines
Perl 6 module packages generally follow the naming scheme of rakudo-<Perl-6-Module-Name>.
For example if the code to load a perl 6 module would be:
use XML::Writer;
then the Name
tag is:
Name: rakudo-XML-Writer
More examples for package names are: rakudo-LibraryCheck
, rakudo-Readline
, rakudo-Inline-Perl5
Macros
Macro | Description |
---|---|
%rakudo_rpm_version |
release number |
%perl6_vendor_dir |
vendor directory: %{_libdir}/perl6/vendor
|
%perl6_site_dir |
site directory: %{_libdir}/perl6/site
|
Directory Ownership
The directories and the version file
- %perl6_vendor_dir/*
- %perl6_vendor_dir/bin
- %perl6_vendor_dir/dist
- %perl6_vendor_dir/precomp
- %perl6_vendor_dir/resources
- %perl6_vendor_dir/short
- %perl6_vendor_dir/sources
- %perl6_vendor_dir/version
- %perl6_site_dir/*
- ...
are owned by the rakudo interpreter package. The Perl 6 module packages only own the files and directories underneath the directories %perl6_vendor_dir/*
%files ... %{perl6_vendor_dir}/*/*