aboutsummaryrefslogtreecommitdiffstats
path: root/perl.prov
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2014-09-08 11:08:46 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2014-09-09 15:06:23 +0200
commitf4a2e1372fbfc5f364b3f3360f6cf72587a70ff4 (patch)
tree73671eb4c27e77a5ffbe73b1b565c2cc47b5444d /perl.prov
parentae31cb53a9a7edbf041afc160654181e8f29d60e (diff)
downloadrpm-setup-f4a2e1372fbfc5f364b3f3360f6cf72587a70ff4.tar
rpm-setup-f4a2e1372fbfc5f364b3f3360f6cf72587a70ff4.tar.gz
rpm-setup-f4a2e1372fbfc5f364b3f3360f6cf72587a70ff4.tar.bz2
rpm-setup-f4a2e1372fbfc5f364b3f3360f6cf72587a70ff4.tar.xz
rpm-setup-f4a2e1372fbfc5f364b3f3360f6cf72587a70ff4.zip
reduce diff with upstream: sync comments
Diffstat (limited to 'perl.prov')
-rwxr-xr-xperl.prov26
1 files changed, 20 insertions, 6 deletions
diff --git a/perl.prov b/perl.prov
index 1668d29..d6839a0 100755
--- a/perl.prov
+++ b/perl.prov
@@ -19,7 +19,7 @@
# a simple script to print the proper name for perl libraries.
-# To save development time I do not parse the perl grammmar but
+# To save development time I do not parse the perl grammar but
# instead just lex it looking for what I want. I take special care to
# ignore comments and pod's.
@@ -68,7 +68,7 @@ foreach $module (sort keys %require) {
print "perl($module)\n";
} else {
- # I am not using rpm3.0 so I do not want spaces arround my
+ # I am not using rpm3.0 so I do not want spaces around my
# operators. Also I will need to change the processing of the
# $RPM_* variable when I upgrade.
@@ -154,11 +154,15 @@ sub process_file {
# here are examples of VERSION lines from the perl distribution
- #FindBin.pm:$VERSION = $VERSION = sprintf("%d.%02d", q$Revision: 270245 $ =~ /(\d+)\.(\d+)/);
- #ExtUtils/Install.pm:$VERSION = substr q$Revision: 270245 $, 10;
- #CGI/Apache.pm:$VERSION = (qw$Revision: 270245 $)[1];
+ #FindBin.pm:$VERSION = $VERSION = sprintf("%d.%02d", q$Revision: 1.9 $ =~ /(\d+)\.(\d+)/);
+ #ExtUtils/Install.pm:$VERSION = substr q$Revision: 1.9 $, 10;
+ #CGI/Apache.pm:$VERSION = (qw$Revision: 1.9 $)[1];
#DynaLoader.pm:$VERSION = $VERSION = "1.03"; # avoid typo warning
- #$Locale::Maketext::Simple::VERSION = '0.21';
+ #General.pm:$Config::General::VERSION = 2.33;
+ #
+ # or with the new "our" pragma you could (read will) see:
+ #
+ # our $VERSION = '1.00'
if (
$package &&
@@ -180,6 +184,16 @@ sub process_file {
$require{$package} = $version;
}
+ # Allow someone to have a variable that defines virtual packages
+ # The variable is called $RPM_Provides. It must be scoped with
+ # "our", but not "local" or "my" (just would not make sense).
+ #
+ # For instance:
+ #
+ # $RPM_Provides = "blah bleah"
+ #
+ # Will generate provides for "blah" and "bleah".
+ #
# Each keyword can appear multiple times. Don't
# bother with datastructures to store these strings,
# if we need to print it print it now.