commit 5ae7776c881cac1a70757cf76796adcca7d3ac96 Author: Petr PÃsaÅ <ppisar@xxxxxxxxxx> Date: Mon Oct 4 11:30:00 2010 +0200 1.79 imported .gitignore | 1 + perl-threads.spec | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 62 insertions(+), 0 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..3f78e8d 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/threads-1.79.tar.gz diff --git a/perl-threads.spec b/perl-threads.spec new file mode 100644 index 0000000..afafd6e --- /dev/null +++ b/perl-threads.spec @@ -0,0 +1,60 @@ +Name: perl-threads +Version: 1.79 +Release: 1%{?dist} +Summary: Perl interpreter-based threads +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/threads/ +Source0: http://search.cpan.org/CPAN/authors/id/J/JD/JDHEDDEN/threads-%{version}.tar.gz +BuildRequires: perl(Config) +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(ExtUtils::testlib) +BuildRequires: perl(Test::More) +BuildRequires: perl(XSLoader) +# Tests only: +BuildRequires: perl(ExtUtils::testlib) +BuildRequires: perl(IO::File) +BuildRequires: perl(Test::More) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%{?perl_default_filter} + +%description +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.) + +%prep +%setup -q -n threads-%{version} + +%build +%{__perl} Makefile.PL INSTALLDIRS=perl OPTIMIZE="$RPM_OPT_FLAGS" +make %{?_smp_mflags} + +%install +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT + +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \; +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%files +%defattr(-,root,root,-) +%doc Changes README +%{perl_archlib}/auto/* +%{perl_archlib}/threads* +%{_mandir}/man3/* + +%changelog +* Fri Oct 01 2010 Petr Pisar <ppisar@xxxxxxxxxx> 1.79-1 +- Specfile autogenerated by cpanspec 1.78. +- Remove BuildRoot stuff diff --git a/sources b/sources index e69de29..4031288 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +32bc8af6d7e6eff15897fe49a6848ca7 threads-1.79.tar.gz -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel