5ae7776
Name:           perl-threads
5ae7776
Version:        1.79
5ae7776
Release:        1%{?dist}
5ae7776
Summary:        Perl interpreter-based threads
5ae7776
License:        GPL+ or Artistic
5ae7776
Group:          Development/Libraries
5ae7776
URL:            http://search.cpan.org/dist/threads/
5ae7776
Source0:        http://search.cpan.org/CPAN/authors/id/J/JD/JDHEDDEN/threads-%{version}.tar.gz
5ae7776
BuildRequires:  perl(Config)
5ae7776
BuildRequires:  perl(ExtUtils::MakeMaker)
5ae7776
BuildRequires:  perl(ExtUtils::testlib)
5ae7776
BuildRequires:  perl(Test::More)
5ae7776
BuildRequires:  perl(XSLoader)
5ae7776
# Tests only:
5ae7776
BuildRequires:  perl(ExtUtils::testlib)
5ae7776
BuildRequires:  perl(IO::File)
5ae7776
BuildRequires:  perl(Test::More)
5ae7776
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
5ae7776
5ae7776
%{?perl_default_filter}
5ae7776
5ae7776
%description
5ae7776
Since Perl 5.8, thread programming has been available using a model called
5ae7776
interpreter threads which provides a new Perl interpreter for each thread,
5ae7776
and, by default, results in no data or state information being shared
5ae7776
between threads.
5ae7776
5ae7776
(Prior to Perl 5.8, 5005threads was available through the "Thread.pm" API.
5ae7776
This threading model has been deprecated, and was removed as of Perl 5.10.0.)
5ae7776
5ae7776
%prep
5ae7776
%setup -q -n threads-%{version}
5ae7776
5ae7776
%build
5ae7776
%{__perl} Makefile.PL INSTALLDIRS=perl OPTIMIZE="$RPM_OPT_FLAGS"
5ae7776
make %{?_smp_mflags}
5ae7776
5ae7776
%install
5ae7776
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
5ae7776
5ae7776
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
5ae7776
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
5ae7776
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
5ae7776
5ae7776
%{_fixperms} $RPM_BUILD_ROOT/*
5ae7776
5ae7776
%check
5ae7776
make test
5ae7776
5ae7776
%files
5ae7776
%defattr(-,root,root,-)
5ae7776
%doc Changes README
5ae7776
%{perl_archlib}/auto/*
5ae7776
%{perl_archlib}/threads*
5ae7776
%{_mandir}/man3/*
5ae7776
5ae7776
%changelog
5ae7776
* Fri Oct 01 2010 Petr Pisar <ppisar@redhat.com> 1.79-1
5ae7776
- Specfile autogenerated by cpanspec 1.78.
5ae7776
- Remove BuildRoot stuff