commit b7053bbb075bd7f7f8c431c2195715389f1e28fd Author: Petr PÃsaÅ <ppisar@xxxxxxxxxx> Date: Wed May 11 09:38:25 2011 +0200 Import .gitignore | 1 + perl-threads-lite.spec | 59 ++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 61 insertions(+), 0 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..b808fa4 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/threads-lite-0.030.tar.gz diff --git a/perl-threads-lite.spec b/perl-threads-lite.spec new file mode 100644 index 0000000..7bfa897 --- /dev/null +++ b/perl-threads-lite.spec @@ -0,0 +1,59 @@ +Name: perl-threads-lite +Version: 0.030 +Release: 1%{?dist} +Summary: Actor model threading for Perl +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/threads-lite/ +Source0: http://www.cpan.org/authors/id/L/LE/LEONT/threads-lite-%{version}.tar.gz +BuildRequires: perl(ExtUtils::CBuilder) +BuildRequires: perl(Module::Build) +# Test time only: +BuildRequires: perl(constant) +BuildRequires: perl(Exporter) >= 5.57 +BuildRequires: perl(Scalar::Util) +BuildRequires: perl(Storable) >= 2.05 +BuildRequires: perl(Test::Differences) +BuildRequires: perl(Test::Exception) +BuildRequires: perl(Test::More) +BuildRequires: perl(Time::HiRes) +BuildRequires: perl(XSLoader) +# Optional tests only: +BuildRequires: perl(Test::Pod) >= 1.22 +BuildRequires: perl(Test::Pod::Coverage) >= 1.08 +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%{?perl_default_filter} + +%description +This module implements threads for perl. One crucial difference with +threads.pm threads is that the threads are disconnected, except by message +queues. It thus facilitates a message passing style of multi-threading. + +%prep +%setup -q -n threads-lite-%{version} + +%build +%{__perl} Build.PL installdirs=vendor optimize="$RPM_OPT_FLAGS" +./Build + +%install +./Build install destdir=$RPM_BUILD_ROOT create_packlist=0 +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 +./Build test + +%files +%defattr(-,root,root,-) +%doc Changes examples LICENSE README +%{perl_vendorarch}/auto/* +%{perl_vendorarch}/threads* +%{_mandir}/man3/* + +%changelog +* Tue May 10 2011 Petr Pisar <ppisar@xxxxxxxxxx> 0.030-1 +- Specfile autogenerated by cpanspec 1.78. +- Remove BuildRoot stuff diff --git a/sources b/sources index e69de29..e7ad55b 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +05f8f0ab104a551750eac2b7f0e0d409 threads-lite-0.030.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