[perl/f14/master] Sub-package threads

Petr Pisar ppisar at fedoraproject.org
Fri Oct 8 13:13:26 UTC 2010


commit 82dbfd6cb659c511f17afd3ec5318e5fc56beb5a
Author: Petr Písař <ppisar at redhat.com>
Date:   Fri Oct 8 14:53:22 2010 +0200

    Sub-package threads

 perl.spec |   42 ++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 40 insertions(+), 2 deletions(-)
---
diff --git a/perl.spec b/perl.spec
index 4445150..d79a79f 100644
--- a/perl.spec
+++ b/perl.spec
@@ -12,7 +12,7 @@
 Name:           perl
 Version:        %{perl_version}
 # release number must be even higher, becase dual-lived modules will be broken otherwise
-Release:        135%{?dist}
+Release:        136%{?dist}
 Epoch:          %{perl_epoch}
 Summary:        Practical Extraction and Report Language
 Group:          Development/Languages
@@ -791,6 +791,28 @@ effect to:
         push @ISA, qw(Foo Bar); 
     }
 
+
+%package threads
+Summary:        Perl interpreter-based threads
+Group:          Development/Libraries
+License:        GPL+ or Artistic
+Epoch:          0
+Version:        1.75
+Requires:       perl = %{perl_epoch}:%{perl_version}-%{release}
+
+%description threads
+Since Perl 5.8, thread programming has been available using a model called
+interpreter threads  which provides a new Perl interpreter for each thread,
+and, by default, results in no data or state information being shared between
+threads.
+
+(Prior to Perl 5.8, 5005threads was available through the Thread.pm API. This
+threading model has been deprecated, and was removed as of Perl 5.10.0.)
+
+As just mentioned, all variables are, by default, thread local. To use shared
+variables, you need to also load threads::shared.
+
+
 %package version
 Summary:        Perl extension for Version Objects
 Group:          Development/Libraries
@@ -828,7 +850,7 @@ Requires:       perl-Module-Load-Conditional, perl-Module-Loaded,
 Requires:       perl-Module-Pluggable, perl-Object-Accessor, perl-Package-Constants,
 Requires:       perl-Params-Check, perl-Pod-Escapes, perl-Pod-Simple, perl-Term-UI, 
 Requires:       perl-Test-Harness, perl-Test-Simple, perl-Time-Piece, perl-version
-Requires:       perl-parent, perl-Parse-CPAN-Meta
+Requires:       perl-threads, perl-parent, perl-Parse-CPAN-Meta
 
 %description core
 A metapackage which requires all of the perl bits and modules in the
@@ -1388,6 +1410,12 @@ rm -rf $RPM_BUILD_ROOT
 %exclude %{_mandir}/man3/Time::Piece.3*
 %exclude %{_mandir}/man3/Time::Seconds.3*
 
+# threads
+%dir %exclude %{archlib}/auto/threads
+%exclude %{archlib}/auto/threads/threads*
+%exclude %{archlib}/threads.pm
+%exclude %{_mandir}/man3/threads.3*
+
 # version
 %exclude %{privlib}/version.pm
 %exclude %{privlib}/version.pod
@@ -1723,6 +1751,13 @@ rm -rf $RPM_BUILD_ROOT
 %{privlib}/parent.pm
 %{_mandir}/man3/parent.3*
 
+%files threads
+%defattr(-,root,root,-)
+%dir %{archlib}/auto/threads
+%{archlib}/auto/threads/threads*
+%{archlib}/threads.pm
+%{_mandir}/man3/threads.3*
+
 %files version
 %defattr(-,root,root,-)
 %{privlib}/version.pm
@@ -1736,6 +1771,9 @@ rm -rf $RPM_BUILD_ROOT
 
 # Old changelog entries are preserved in CVS.
 %changelog
+* Fri Oct 08 2010 Petr Pisar <ppisar at redhat.com> - 4:5.12.2-136
+- Sub-package threads (bug #622190)
+
 * Thu Oct 07 2010 Petr Pisar <ppisar at redhat.com> - 4:5.12.2-135
 - Package Test-Simple tests to dual-live with standalone package (bug #640752)
 


More information about the scm-commits mailing list