From b8db8cdb8406ea8ed3aec38a33cde31a8db6a15a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcela=20Ma=C5=A1l=C3=A1=C5=88ov=C3=A1?= Date: Fri, 10 Aug 2012 15:56:17 +0200 Subject: [PATCH] Add rebuild_from_scratch for bootstraping of new Perl. --- perl.spec | 88 +++++++++++++++++++++++++++---------------------------- 1 file changed, 44 insertions(+), 44 deletions(-) diff --git a/perl.spec b/perl.spec index b0a3c97..bebd531 100644 --- a/perl.spec +++ b/perl.spec @@ -265,7 +265,7 @@ for the creation of tar file objects for custom manipulation. If you have the IO::Zlib module installed, Archive::Tar will also support compressed or gzipped tar files. -%if %{dual_life} +%if %{dual_life} || %{rebuild_from_scratch} %package Carp Summary: Alternative warn and die for modules Epoch: 0 @@ -289,7 +289,7 @@ module was called. There is no guarantee that that is where the error was, but it is a good educated guess. %endif -%if %{dual_life} +%if %{dual_life} || %{rebuild_from_scratch} %package CGI Summary: Handle Common Gateway Interface requests and responses Group: Development/Libraries @@ -318,7 +318,7 @@ CGI.pm performs very well in in a vanilla CGI.pm environment and also comes with built-in support for mod_perl and mod_perl2 as well as FastCGI. %endif -%if %{dual_life} +%if %{dual_life} || %{rebuild_from_scratch} %package Compress-Raw-Bzip2 Summary: Low-Level Interface to bzip2 compression library Group: Development/Libraries @@ -360,7 +360,7 @@ BuildArch: noarch %description CPAN Query, download and build perl modules from CPAN sites. -%if %{dual_life} +%if %{dual_life} || %{rebuild_from_scratch} %package CPAN-Meta Summary: Distribution metadata for a CPAN dist Epoch: 0 @@ -413,7 +413,7 @@ BuildArch: noarch The CPANPLUS library is an API to the CPAN mirrors and a collection of interactive shells, commandline programs, etc, that use this API. -%if %{dual_life} +%if %{dual_life} || %{rebuild_from_scratch} %package Data-Dumper Summary: Stringify perl data structures, suitable for printing and eval Group: Development/Libraries @@ -431,7 +431,7 @@ variable is output in a single Perl statement. Handles self-referential structures correctly. %endif -%if %{dual_life} +%if %{dual_life} || %{rebuild_from_scratch} %package Digest Summary: Modules that calculate message digests Group: Development/Libraries @@ -468,7 +468,7 @@ Message Digest algorithm from within Perl programs. The algorithm takes as input a message of arbitrary length and produces as output a 128-bit "fingerprint" or "message digest" of the input. -%if %{dual_life} +%if %{dual_life} || %{rebuild_from_scratch} %package Digest-SHA Summary: Perl extension for SHA-1/224/256/384/512 Group: Development/Libraries @@ -534,7 +534,7 @@ BuildArch: noarch Handles the installing and uninstalling of perl modules, scripts, man pages, etc. -%if %{dual_life} +%if %{dual_life} || %{rebuild_from_scratch} %package ExtUtils-MakeMaker Summary: Create a module Makefile Group: Development/Languages @@ -557,7 +557,7 @@ BuildArch: noarch Create a module Makefile. %endif -%if %{dual_life} +%if %{dual_life} || %{rebuild_from_scratch} %package ExtUtils-Manifest Summary: Utilities to write and check a MANIFEST file Group: Development/Languages @@ -618,7 +618,7 @@ Source filters alter the program text of a module before Perl sees it, much as a C preprocessor alters the source text of a C program before the compiler sees it. -%if %{dual_life} +%if %{dual_life} || %{rebuild_from_scratch} %package IO-Compress Summary: IO::Compress wrapper for modules Group: Development/Libraries @@ -686,7 +686,7 @@ It is more correct and more complete than HTTP::Lite. It supports proxies (currently only non-authenticating ones) and redirection. It also correctly resumes after EINTR. -%if %{dual_life} +%if %{dual_life} || %{rebuild_from_scratch} %package JSON-PP Summary: JSON::XS compatible pure-Perl module Epoch: 0 @@ -705,7 +705,7 @@ Marc Lehmann in C, so must be compiled and installed in the used environment. JSON::PP is a pure-Perl module and is compatible with JSON::XS. %endif -%if %{dual_life} +%if %{dual_life} || %{rebuild_from_scratch} %package Locale-Codes Summary: Distribution of modules to handle locale codes Epoch: 0 @@ -925,7 +925,7 @@ Package::Constants lists all the constants defined in a certain package. This can be useful for, among others, setting up an autogenerated @EXPORT/@EXPORT_OK for a Constants.pm file. -%if %{dual_life} +%if %{dual_life} || %{rebuild_from_scratch} %package PathTools Summary: PathTools Perl module (Cwd, File::Spec) # PathTools aka File::Spec @@ -952,7 +952,7 @@ BuildArch: noarch %description Params-Check Params::Check is a generic input parsing/checking mechanism. -%if %{dual_life} +%if %{dual_life} || %{rebuild_from_scratch} %package Parse-CPAN-Meta Summary: Parse META.yml and other similar CPAN metadata files Group: Development/Libraries @@ -972,7 +972,7 @@ Parse::CPAN::Meta is a parser for META.yml files, based on the parser half of YAML::Tiny. %endif -%if %{dual_life} +%if %{dual_life} || %{rebuild_from_scratch} %package Perl-OSType Summary: Map Perl operating system names to generic types Version: 1.002 @@ -1023,7 +1023,7 @@ This software distribution contains the packages for using Perl5 POD (Plain Old Documentation). See the "perlpod" and "perlsyn" manual pages from your Perl5 distribution for more information about POD. -%if %{dual_life} +%if %{dual_life} || %{rebuild_from_scratch} %package Pod-Perldoc Summary: Look up Perl documentation in Pod format Group: Development/Libraries @@ -1057,7 +1057,7 @@ Pod::Simple is a Perl library for parsing text in the Pod ("plain old documentation") markup language that is typically used for writing documentation for Perl and for Perl modules. -%if %{dual_life} +%if %{dual_life} || %{rebuild_from_scratch} %package Scalar-List-Utils Summary: A selection of general-utility scalar and list subroutines Group: Development/Libraries @@ -1106,7 +1106,7 @@ Obsoletes: perl-TAP-Harness < 3.10 Run Perl standard test scripts with statistics. Use TAP::Parser, Test::Harness package was whole rewritten. -%if %{dual_life} +%if %{dual_life} || %{rebuild_from_scratch} %package Test-Simple Summary: Basic utilities for writing tests Group: Development/Languages @@ -1152,7 +1152,7 @@ with implementations that return objects. It does so in a backwards compatible manner, so that using localtime or gmtime as documented in perlfunc still behave as expected. -%if %{dual_life} +%if %{dual_life} || %{rebuild_from_scratch} %package parent Summary: Establish an ISA relationship with base classes at compile time Group: Development/Libraries @@ -1177,7 +1177,7 @@ inheritance from those modules at the same time. Mostly similar in effect to: } %endif -%if %{dual_life} +%if %{dual_life} || %{rebuild_from_scratch} %package Socket Summary: C socket.h defines and structure manipulators Group: Development/Libraries @@ -1194,7 +1194,7 @@ that it has a far more likely chance of getting the numbers right. This includes all of the commonly used pound-defines like AF_INET, SOCK_STREAM, etc. %endif -%if %{dual_life} +%if %{dual_life} || %{rebuild_from_scratch} %package threads Summary: Perl interpreter-based threads Group: Development/Libraries @@ -1216,7 +1216,7 @@ As just mentioned, all variables are, by default, thread local. To use shared variables, you need to also load threads::shared. %endif -%if %{dual_life} +%if %{dual_life} || %{rebuild_from_scratch} %package threads-shared Summary: Perl extension for sharing data structures between threads Group: Development/Libraries @@ -1234,7 +1234,7 @@ following data types only: scalars and scalar refs, arrays and array refs, and hashes and hash refs. %endif -%if %{dual_life} +%if %{dual_life} || %{rebuild_from_scratch} %package version Summary: Perl extension for Version Objects Group: Development/Libraries @@ -1249,7 +1249,7 @@ BuildArch: noarch Perl extension for Version Objects %endif -%if %{dual_life} +%if %{dual_life} || %{rebuild_from_scratch} %package Version-Requirements Summary: Set of version requirements for a CPAN dist License: GPL+ or Artistic @@ -2119,7 +2119,7 @@ sed \ %{_mandir}/man1/ptargrep.1* %{_mandir}/man3/Archive::Tar* -%if %{dual_life} +%if %{dual_life} || %{rebuild_from_scratch} %files Carp %{privlib}/Carp %{privlib}/Carp.* @@ -2161,7 +2161,7 @@ sed \ %exclude %{privlib}/CPAN/Meta.pm %exclude %{_mandir}/man3/CPAN::Meta* -%if %{dual_life} +%if %{dual_life} || %{rebuild_from_scratch} %files CPAN-Meta %dir %{privlib}/CPAN/Meta %{privlib}/CPAN/Meta.pm @@ -2189,7 +2189,7 @@ sed \ %{_mandir}/man1/cpanp.1* %{_mandir}/man3/CPANPLUS* -%if %{dual_life} +%if %{dual_life} || %{rebuild_from_scratch} %files Data-Dumper %dir %{archlib}/auto/Data %dir %{archlib}/auto/Data/Dumper @@ -2213,7 +2213,7 @@ sed \ %{archlib}/auto/Digest/MD5/ %{_mandir}/man3/Digest::MD5.3* -%if %{dual_life} +%if %{dual_life} || %{rebuild_from_scratch} %files Digest-SHA %{_bindir}/shasum %dir %{archlib}/Digest/ @@ -2240,7 +2240,7 @@ sed \ %{_mandir}/man3/ExtUtils::Installed.3* %{_mandir}/man3/ExtUtils::Packlist.3* -%if %{dual_life} +%if %{dual_life} || %{rebuild_from_scratch} %files ExtUtils-Manifest %{privlib}/ExtUtils/Manifest.pm %{privlib}/ExtUtils/MANIFEST.SKIP @@ -2305,7 +2305,7 @@ sed \ %{_mandir}/man1/perlfilter.* %{_mandir}/man3/Filter::Util::* -%if %{dual_life} +%if %{dual_life} || %{rebuild_from_scratch} %files IO-Compress # IO-Compress %{_bindir}/zipdetails @@ -2368,7 +2368,7 @@ sed \ %{privlib}/IPC/Cmd.pm %{_mandir}/man3/IPC::Cmd.3* -%if %{dual_life} +%if %{dual_life} || %{rebuild_from_scratch} %files JSON-PP %{_bindir}/json_pp %{privlib}/JSON/PP @@ -2378,7 +2378,7 @@ sed \ %{_mandir}/man3/JSON::PP::Boolean.3pm* %endif -%if %{dual_life} +%if %{dual_life} || %{rebuild_from_scratch} %files Locale-Codes %{privlib}/Locale/Codes %{privlib}/Locale/Codes.* @@ -2461,7 +2461,7 @@ sed \ %{privlib}/Package/ %{_mandir}/man3/Package::Constants* -%if %{dual_life} +%if %{dual_life} || %{rebuild_from_scratch} %files PathTools %{archlib}/Cwd.pm %{archlib}/File/Spec* @@ -2474,7 +2474,7 @@ sed \ %{privlib}/Params/ %{_mandir}/man3/Params::Check* -%if %{dual_life} +%if %{dual_life} || %{rebuild_from_scratch} %files Parse-CPAN-Meta %dir %{privlib}/Parse/ %dir %{privlib}/Parse/CPAN/ @@ -2482,13 +2482,13 @@ sed \ %{_mandir}/man3/Parse::CPAN::Meta.3* %endif -%if %{dual_life} +%if %{dual_life} || %{rebuild_from_scratch} %files parent %{privlib}/parent.pm %{_mandir}/man3/parent.3* %endif -%if %{dual_life} +%if %{dual_life} || %{rebuild_from_scratch} %files Perl-OSType %{privlib}/Perl/OSType.pm %{_mandir}/man3/Perl::OSType.3pm* @@ -2522,7 +2522,7 @@ sed \ %{_mandir}/man3/Pod::Select.* %{_mandir}/man3/Pod::Usage.* -%if %{dual_life} +%if %{dual_life} || %{rebuild_from_scratch} %files Pod-Perldoc %{_bindir}/perldoc %{privlib}/pod/perldoc.pod @@ -2538,7 +2538,7 @@ sed \ %{privlib}/Pod/Simple.pod %{_mandir}/man3/Pod::Simple* -%if %{dual_life} +%if %{dual_life} || %{rebuild_from_scratch} %files Scalar-List-Utils %{archlib}/List/ %{archlib}/Scalar/ @@ -2547,7 +2547,7 @@ sed \ %{_mandir}/man3/Scalar::Util* %endif -%if %{dual_life} +%if %{dual_life} || %{rebuild_from_scratch} %files Socket %dir %{archlib}/auto/Socket %{archlib}/auto/Socket/Socket.* @@ -2570,7 +2570,7 @@ sed \ %{_mandir}/man3/TAP* %{_mandir}/man3/Test::Harness* -%if %{dual_life} +%if %{dual_life} || %{rebuild_from_scratch} %files Test-Simple %{privlib}/Test/More* %{privlib}/Test/Builder* @@ -2593,13 +2593,13 @@ sed \ %{_mandir}/man3/Time::Piece.3* %{_mandir}/man3/Time::Seconds.3* -%if %{dual_life} +%if %{dual_life} || %{rebuild_from_scratch} %files Version-Requirements %{privlib}/Version/Requirements.pm %{_mandir}/man3/Version::Requirements* %endif -%if %{dual_life} +%if %{dual_life} || %{rebuild_from_scratch} %files threads %dir %{archlib}/auto/threads %{archlib}/auto/threads/threads* @@ -2607,7 +2607,7 @@ sed \ %{_mandir}/man3/threads.3* %endif -%if %{dual_life} +%if %{dual_life} || %{rebuild_from_scratch} %files threads-shared %{archlib}/auto/threads/shared* %dir %{archlib}/threads @@ -2615,7 +2615,7 @@ sed \ %{_mandir}/man3/threads::shared* %endif -%if %{dual_life} +%if %{dual_life} || %{rebuild_from_scratch} %files version %{privlib}/version.pm %{privlib}/version.pod