diff --git a/perl-threads-shared.spec b/perl-threads-shared.spec new file mode 100644 index 0000000000000000000000000000000000000000..797cf752670ad89b93a83ac48881de8e0732f203 --- /dev/null +++ b/perl-threads-shared.spec @@ -0,0 +1,66 @@ +%define anolis_release 1 + +Name: perl-threads-shared +Version: 1.59 +Release: %{anolis_release}%{?dist} +Summary: Perl extension for sharing data structures between threads +License: GPL+ or Artistic +URL: https://metacpan.org/release/threads-shared +Source0: https://cpan.metacpan.org/authors/id/J/JD/JDHEDDEN/threads-shared-%{version}.tar.gz +BuildRequires: findutils +BuildRequires: gcc +BuildRequires: make +BuildRequires: perl-devel +BuildRequires: perl-generators +BuildRequires: perl-interpreter +BuildRequires: perl(Config) +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 +BuildRequires: perl(File::Spec) +BuildRequires: perl(strict) +BuildRequires: perl(warnings) +BuildRequires: perl(Carp) +BuildRequires: perl(Scalar::Util) +BuildRequires: perl(threads) >= 1.73 +BuildRequires: perl(XSLoader) +BuildRequires: perl(ExtUtils::testlib) +BuildRequires: perl(File::Path) +BuildRequires: perl(Test::More) +BuildRequires: perl(POSIX) +BuildRequires: perl(Time::HiRes) +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) +Requires: perl(Carp) +Requires: perl(threads) >= 1.73 +Requires: perl(XSLoader) + +%description +By default, variables are private to each thread, and each newly created +thread gets a private copy of each existing variable. This module allows +you to share variables across different threads (and pseudo-forks on +Win32). It is used together with the threads module. + +%prep +%setup -q -n threads-shared-%{version} + +%build +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 OPTIMIZE="$RPM_OPT_FLAGS" +%{make_build} + +%install +%{make_install} +find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -delete +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +unset GIT_DIR PERL_BUILD_PACKAGING PERL_CORE PERL_RUNPERL_DEBUG \ + RUN_MAINTAINER_TESTS +make test + +%files +%doc Changes examples README +%{perl_vendorarch}/auto/* +%{perl_vendorarch}/threads* +%{_mandir}/man3/* + +%changelog +* Wed Mar 09 2022 liuzhilin - 1.59-1 +- Init for Anolis OS 23 diff --git a/threads-shared-1.59.tar.gz b/threads-shared-1.59.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..84b2816bbf9bd8211e0487543951668d6e72328e Binary files /dev/null and b/threads-shared-1.59.tar.gz differ