From ecf17080d0f8b375342079d6fdf09844d4884158 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Jun 09 2014 08:47:37 +0000 Subject: import perl516-perl-threads-1.89-2.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..83aa231 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/threads-1.89.tar.gz diff --git a/.perl516-perl-threads.metadata b/.perl516-perl-threads.metadata new file mode 100644 index 0000000..2291eff --- /dev/null +++ b/.perl516-perl-threads.metadata @@ -0,0 +1 @@ +0f8caa1330fcd73b7a58730178857e1d58475490 SOURCES/threads-1.89.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index ce46a88..0000000 --- a/README.md +++ /dev/null @@ -1,5 +0,0 @@ -\ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SPECS/perl-threads.spec b/SPECS/perl-threads.spec new file mode 100644 index 0000000..1c89dbf --- /dev/null +++ b/SPECS/perl-threads.spec @@ -0,0 +1,92 @@ +%{?scl:%scl_package perl-threads} +%{!?scl:%global pkg_name %{name}} + +Name: %{?scl_prefix}perl-threads +Epoch: 1 +Version: 1.89 +Release: 2%{?dist} +Summary: Perl interpreter-based threads +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/threads/ +Source0: http://search.cpan.org/CPAN/authors/id/J/JD/JDHEDDEN/threads-%{version}.tar.gz +BuildRequires: %{?scl_prefix}perl +BuildRequires: %{?scl_prefix}perl(Config) +BuildRequires: %{?scl_prefix}perl(ExtUtils::MakeMaker) +BuildRequires: %{?scl_prefix}perl(File::Spec) +BuildRequires: %{?scl_prefix}perl(strict) +BuildRequires: %{?scl_prefix}perl(warnings) +# Run-time: +BuildRequires: %{?scl_prefix}perl(Carp) +BuildRequires: %{?scl_prefix}perl(overload) +BuildRequires: %{?scl_prefix}perl(XSLoader) +# Tests only: +BuildRequires: %{?scl_prefix}perl(ExtUtils::testlib) +BuildRequires: %{?scl_prefix}perl(File::Path) +BuildRequires: %{?scl_prefix}perl(Hash::Util) +BuildRequires: %{?scl_prefix}perl(IO::File) +BuildRequires: %{?scl_prefix}perl(POSIX) +BuildRequires: %{?scl_prefix}perl(Test::More) +BuildRequires: %{?scl_prefix}perl(Thread::Queue) +BuildRequires: %{?scl_prefix}perl(Thread::Semaphore) +BuildRequires: %{?scl_prefix}perl(threads::shared) +%{?scl:%global perl_version %(scl enable %{scl} 'eval "`perl -V:version`"; echo $version')} +%{!?scl:%global perl_version %(eval "`perl -V:version`"; echo $version)} +Requires: %{?scl_prefix}perl(:MODULE_COMPAT_%{perl_version}) +Requires: %{?scl_prefix}perl(Carp) + +%{?perl_default_filter} + +%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.) + +%prep +%setup -q -n threads-%{version} + +%build +%{?scl:scl enable %{scl} '} +perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" +%{?scl:'} +%{?scl:scl enable %{scl} "} +make %{?_smp_mflags} +%{?scl:"} + +%install +%{?scl:scl enable %{scl} "} +make pure_install DESTDIR=$RPM_BUILD_ROOT +%{?scl:"} +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \; +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +%{?scl:scl enable %{scl} "} +make test +%{?scl:"} + +%files +%doc Changes README +%{perl_vendorarch}/auto/* +%{perl_vendorarch}/threads* +%{_mandir}/man3/* + +%changelog +* Tue Feb 11 2014 Jitka Plesnikova - 1:1.89-2 +- Fixed rpmlint error +- Resolves: rhbz#1063206 + +* Wed Nov 13 2013 Jitka Plesnikova - 1:1.89-1 +- 1.89 bump + +* Mon Sep 23 2013 Jitka Plesnikova - 1.87-1 +- 1.87 bump +- Resolves: rhbz#1008474 - Specify all dependencies dependencies + +* Wed Feb 13 2013 Jitka Plesnikova - 1.86-100 +- SCL package - initial import