65 lines
1.7 KiB
RPMSpec
65 lines
1.7 KiB
RPMSpec
Name: perl-threads
|
|
Epoch: 1
|
|
Version: 2.22
|
|
Release: 419
|
|
Summary: Perl interpreter-based threads
|
|
License: GPL+ or Artistic
|
|
URL: https://metacpan.org/release/threads
|
|
#This is a devel version
|
|
Source0: https://cpan.metacpan.org/authors/id/R/RU/RURBAN/threads-2.22_01.tar.gz
|
|
BuildRequires: perl-devel perl-generators perl-interpreter
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 perl(ExtUtils::testlib) perl(Test::More)
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
Requires: perl(Carp)
|
|
|
|
%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.)
|
|
|
|
%package help
|
|
Summary: Doc files for %{name}
|
|
Buildarch: noarch
|
|
Requires: man
|
|
|
|
%description help
|
|
The %{name}-help package contains doc files for %{name}.
|
|
|
|
%prep
|
|
%autosetup -n threads-2.22_01
|
|
chmod -x examples/*
|
|
|
|
%build
|
|
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 OPTIMIZE="$RPM_OPT_FLAGS"
|
|
%make_build
|
|
|
|
%install
|
|
make pure_install DESTDIR=%{buildroot}
|
|
%{_fixperms} %{buildroot}/*
|
|
|
|
%check
|
|
make test
|
|
|
|
%files
|
|
%doc README
|
|
%{perl_vendorarch}/auto/*
|
|
%{perl_vendorarch}/threads*
|
|
|
|
%files help
|
|
%doc Changes examples
|
|
%{_mandir}/man3/*
|
|
|
|
%changelog
|
|
* Tue Sep 27 2019 luhuaxin <luhuaxin@huawei.com> - 1:2.22-419
|
|
- Type: enhancement
|
|
- ID: NA
|
|
- SUG: NA
|
|
- DESC: move README file to main package
|
|
|
|
* Wed Sep 11 2019 luhuaxin <luhuaxin@huawei.com> - 1:2.22-418
|
|
- Package init
|