[perl] add %%perl_bootstrap 1 and example for readability

Marcela Mašláňová mmaslano at fedoraproject.org
Mon Jun 27 11:45:09 UTC 2011


commit 8e2793a0e52e74259644330fdf7a2b33392295a7
Author: Marcela Mašláňová <mmaslano at redhat.com>
Date:   Mon Jun 27 13:44:32 2011 +0200

    add %%perl_bootstrap 1 and example for readability

 macros.perl |    7 +++----
 perl.spec   |    6 +++---
 2 files changed, 6 insertions(+), 7 deletions(-)
---
diff --git a/macros.perl b/macros.perl
index 7b22d27..b29584d 100644
--- a/macros.perl
+++ b/macros.perl
@@ -53,10 +53,9 @@ export PERL_MM_USE_DEFAULT=1
 # For rebuild of Perl and all related packages is needed switch, which enable
 # only vital build requires. This could help cyclic dependencies, for example:
 # perl-Test-Minimum-Version <-> perl-Perl-Minimum-Version
-# 0 - for bootstrap
-# 1 - without bootstrap
-
-%perl_bootstrap 0
+# Defined for bootstraping, undefined otherwise. Usage:
+# %%if !%%{defined perl_bootstrap} ... %%endif
+%perl_bootstrap 1
 
 #############################################################################
 # Macros to assist with generating a "-tests" subpackage in a semi-automatic
diff --git a/perl.spec b/perl.spec
index 82a7585..2997afa 100644
--- a/perl.spec
+++ b/perl.spec
@@ -17,7 +17,7 @@
 Name:           perl
 Version:        %{perl_version}
 # release number must be even higher, because dual-lived modules will be broken otherwise
-Release:        176%{?dist}
+Release:        177%{?dist}
 Epoch:          %{perl_epoch}
 Summary:        Practical Extraction and Report Language
 Group:          Development/Languages
@@ -2054,8 +2054,8 @@ sed \
 
 # Old changelog entries are preserved in CVS.
 %changelog
-* Mon Jun 27 2011 arcela Mašláňová <mmaslano at redhat.com> - 4:5.14.1-176
-- update macros -> add %%perl_bootstrap 0
+* Mon Jun 27 2011 Marcela Mašláňová <mmaslano at redhat.com> - 4:5.14.1-177
+- update macros -> add %%perl_bootstrap 1 and example for readability
 - add into Module::Build dependency on perl-devel (contains macros.perl)
 
 * Thu Jun 23 2011 Marcela Mašláňová <mmaslano at redhat.com> - 4:5.14.1-175


More information about the scm-commits mailing list