[perl-threads-tbb] Import

Petr Pisar ppisar at fedoraproject.org
Thu May 19 07:08:27 UTC 2011


commit 6ccdf575b99ed89445f269783a6e48063b7f7e60
Author: Petr Písař <ppisar at redhat.com>
Date:   Thu May 19 09:08:09 2011 +0200

    Import

 .gitignore            |    1 +
 perl-threads-tbb.spec |   63 +++++++++++++++++++++++++++++++++++++++++++++++++
 sources               |    1 +
 3 files changed, 65 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..c526507 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/threads-tbb-0.02.tar.gz
diff --git a/perl-threads-tbb.spec b/perl-threads-tbb.spec
new file mode 100644
index 0000000..2214cc8
--- /dev/null
+++ b/perl-threads-tbb.spec
@@ -0,0 +1,63 @@
+# This file is licensed under the terms of GPLv2+.
+Name:           perl-threads-tbb
+Version:        0.02
+Release:        1%{?dist}
+Summary:        Interface to the Threading Building Blocks (TBB) API
+License:        GPL+ or Artistic
+Group:          Development/Libraries
+URL:            http://search.cpan.org/dist/threads-tbb/
+Source0:        http://www.cpan.org/authors/id/S/SA/SAMV/threads-tbb-%{version}.tar.gz
+BuildRequires:  perl(ExtUtils::MakeMaker)
+BuildRequires:  perl(ExtUtils::XSpp) >= 0.01
+BuildRequires:  tbb-devel
+# Test-time only:
+BuildRequires:  perl(constant)
+BuildRequires:  perl(Data::Dumper)
+BuildRequires:  perl(Devel::Peek)
+BuildRequires:  perl(List::Util)
+BuildRequires:  perl(Scalar::Util)
+BuildRequires:  perl(Scriptalicious)
+BuildRequires:  perl(Storable)
+BuildRequires:  perl(Test::More)
+BuildRequires:  perl(Time::HiRes)
+BuildRequires:  perl(XSLoader)
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+Requires:       perl(ExtUtils::XSpp) >= 0.01
+
+%{?perl_default_filter}
+
+%description
+This module provides access to a few core TBB API functions to Perl programs.
+The algorithms employed by TBB are quite different to threads as provided by
+"use threads;" - instead of directly starting threads and managing their
+activity and communication/synchronization, an API is provided that provides
+data parallelism.
+
+%prep
+%setup -q -n threads-tbb-%{version}
+
+%build
+%{__perl} Makefile.PL INSTALLDIRS=vendor 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 doc/* examples README
+%{perl_vendorarch}/auto/*
+%{perl_vendorarch}/threads*
+%{_mandir}/man3/*
+
+%changelog
+* Tue May 10 2011 Petr Pisar <ppisar at redhat.com> 0.02-1
+- Specfile autogenerated by cpanspec 1.78.
+- Remove BuildRoot stuff
diff --git a/sources b/sources
index e69de29..d9289df 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+618ebc66546d1bc849ab7bd2eaa2caff  threads-tbb-0.02.tar.gz


More information about the scm-commits mailing list