From 3d468b4a9391b8294f99b5c624745b3853412440 Mon Sep 17 00:00:00 2001 From: Petr Písař Date: Oct 03 2022 15:16:56 +0000 Subject: Perl: Remove clobbering plus characters Those were injected with an automated conversion from Wiki. They breaks the asciidoc rendering. --- diff --git a/guidelines/modules/ROOT/pages/Perl.adoc b/guidelines/modules/ROOT/pages/Perl.adoc index bee4842..4fa3305 100644 --- a/guidelines/modules/ROOT/pages/Perl.adoc +++ b/guidelines/modules/ROOT/pages/Perl.adoc @@ -36,7 +36,7 @@ Below is a list of Perl-related build dependencies you may need. * `+perl-devel+` - Provides Perl header files. If building architecture-specific code which links to `+libperl.so+` library (e.g. an XS Perl module), you must include `+BuildRequires: perl-devel+`. -If a specific Perl module is required at build time, use `+perl(+`__`+MODULE+`__`+)+` syntax as documented above. This applies to so called _core_ modules as well, since they may move in and out of the base Perl package over time. +If a specific Perl module is required at build time, use `perl(__MODULE__)` syntax as documented above. This applies to so called _core_ modules as well, since they may move in and out of the base Perl package over time. If you need to limit your package to a specific Perl version, use `+perl(:VERSION)+` dependency with desired version constraint (e.g. `+perl(:VERSION) >= 5.22+`). Do not use a comparison against the version of the `+perl+` package because it includes an epoch number, which makes version comparisons tricky. @@ -51,7 +51,7 @@ It is recommended to include explicit dependencies for core modules, because the All Perl modules must include the versioned MODULE_COMPAT Requires: .... -Requires: perl(:MODULE_COMPAT_%(eval "`+%{__perl} -V:version+`"; echo $version)) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) .... This is to ensure that Perl packages have a dependency on the particular version of Perl it was built against, or on a newer version of Perl that provides backward compatibility with it.