Blame SPECS/perl-threads.spec

4c52ba
%{?scl:%scl_package perl-threads}
4c52ba
4c52ba
%global base_version 2.21
4c52ba
Name:           %{?scl_prefix}perl-threads
4c52ba
Epoch:          1
4c52ba
Version:        2.22
4c52ba
Release:        452%{?dist}
4c52ba
Summary:        Perl interpreter-based threads
4c52ba
License:        GPL+ or Artistic
4c52ba
URL:            https://metacpan.org/release/threads
4c52ba
Source0:        https://cpan.metacpan.org/authors/id/J/JD/JDHEDDEN/threads-%{base_version}.tar.gz
4c52ba
# Unbundled from perl 5.28.0
4c52ba
Patch0:         threads-2.21-Upgrade-to-2.22.patch
4c52ba
BuildRequires:  coreutils
4c52ba
BuildRequires:  findutils
4c52ba
BuildRequires:  gcc
4c52ba
BuildRequires:  make
4c52ba
BuildRequires:  %{?scl_prefix}perl-devel
4c52ba
BuildRequires:  %{?scl_prefix}perl-generators
4c52ba
BuildRequires:  %{?scl_prefix}perl-interpreter
4c52ba
BuildRequires:  %{?scl_prefix}perl(Config)
4c52ba
BuildRequires:  %{?scl_prefix}perl(ExtUtils::MakeMaker) >= 6.76
4c52ba
BuildRequires:  %{?scl_prefix}perl(File::Spec)
4c52ba
BuildRequires:  %{?scl_prefix}perl(strict)
4c52ba
BuildRequires:  %{?scl_prefix}perl(warnings)
4c52ba
# Run-time:
4c52ba
BuildRequires:  %{?scl_prefix}perl(Carp)
4c52ba
BuildRequires:  %{?scl_prefix}perl(overload)
4c52ba
BuildRequires:  %{?scl_prefix}perl(XSLoader)
4c52ba
# Tests only:
4c52ba
BuildRequires:  %{?scl_prefix}perl(Cwd)
4c52ba
BuildRequires:  %{?scl_prefix}perl(ExtUtils::testlib)
4c52ba
BuildRequires:  %{?scl_prefix}perl(File::Path)
4c52ba
BuildRequires:  %{?scl_prefix}perl(Hash::Util)
4c52ba
BuildRequires:  %{?scl_prefix}perl(IO::File)
4c52ba
BuildRequires:  %{?scl_prefix}perl(POSIX)
4c52ba
BuildRequires:  %{?scl_prefix}perl(Test::More)
4c52ba
# Optional tests:
4c52ba
BuildRequires:  %{?scl_prefix}perl(Thread::Queue)
4c52ba
BuildRequires:  %{?scl_prefix}perl(Thread::Semaphore)
4c52ba
BuildRequires:  %{?scl_prefix}perl(threads::shared)
4c52ba
Requires:       %{?scl_prefix}perl(:MODULE_COMPAT_%(%{?scl:scl enable %{scl} '}eval "$(perl -V:version)";echo $version%{?scl:'}))
4c52ba
Requires:       %{?scl_prefix}perl(Carp)
4c52ba
4c52ba
%{?perl_default_filter}
4c52ba
4c52ba
%description
4c52ba
Since Perl 5.8, thread programming has been available using a model called
4c52ba
interpreter threads which provides a new Perl interpreter for each thread,
4c52ba
and, by default, results in no data or state information being shared
4c52ba
between threads.
4c52ba
4c52ba
(Prior to Perl 5.8, 5005threads was available through the "Thread.pm" API.
4c52ba
This threading model has been deprecated, and was removed as of Perl 5.10.0.)
4c52ba
4c52ba
%prep
4c52ba
%setup -q -n threads-%{base_version}
4c52ba
%patch0 -p1
4c52ba
chmod -x examples/*
4c52ba
%{?scl:scl enable %{scl} '}perl -MConfig -i -pe %{?scl:'"}'%{?scl:"'}s{^#!/usr/bin/perl}{$Config{startperl}}%{?scl:'"}'%{?scl:"'} examples/*%{?scl:'}
4c52ba
4c52ba
%build
4c52ba
%{?scl:scl enable %{scl} '}perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 OPTIMIZE="$RPM_OPT_FLAGS" && make %{?_smp_mflags}%{?scl:'}
4c52ba
4c52ba
%install
4c52ba
%{?scl:scl enable %{scl} '}make pure_install DESTDIR=$RPM_BUILD_ROOT%{?scl:'}
4c52ba
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -delete
4c52ba
%{_fixperms} $RPM_BUILD_ROOT/*
4c52ba
4c52ba
%check
4c52ba
%{?scl:scl enable %{scl} '}make test%{?scl:'}
4c52ba
4c52ba
%files
4c52ba
%doc Changes examples README
4c52ba
%{perl_vendorarch}/auto/*
4c52ba
%{perl_vendorarch}/threads*
4c52ba
%{_mandir}/man3/*
4c52ba
4c52ba
%changelog
4c52ba
* Tue Mar 17 2020 Petr Pisar <ppisar@redhat.com> - 1:2.22-452
4c52ba
- Normalize shebangs in the examples (bug #1813352)
4c52ba
4c52ba
* Thu Jan 02 2020 Jitka Plesnikova <jplesnik@redhat.com> - 1:2.22-451
4c52ba
- SCL
4c52ba
4c52ba
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.22-439
4c52ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
4c52ba
4c52ba
* Thu May 30 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1:2.22-438
4c52ba
- Increase release to favour standalone package
4c52ba
4c52ba
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.22-418
4c52ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
4c52ba
4c52ba
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.22-417
4c52ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
4c52ba
4c52ba
* Wed Jun 27 2018 Jitka Plesnikova <jplesnik@redhat.com> - 1:2.22-416
4c52ba
- Upgrade to 2.22 as provided in perl-5.28.0
4c52ba
- Perl 5.28 rebuild
4c52ba
4c52ba
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.21-2
4c52ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
4c52ba
4c52ba
* Wed Jan 24 2018 Petr Pisar <ppisar@redhat.com> - 1:2.21-1
4c52ba
- 2.21 bump
4c52ba
4c52ba
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.16-4
4c52ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
4c52ba
4c52ba
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.16-3
4c52ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
4c52ba
4c52ba
* Wed Jun 07 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1:2.16-2
4c52ba
- Perl 5.26 re-rebuild of bootstrapped packages
4c52ba
4c52ba
* Mon Jun 05 2017 Petr Pisar <ppisar@redhat.com> - 1:2.16-1
4c52ba
- 2.16 bump
4c52ba
4c52ba
* Sat Jun 03 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1:2.15-393
4c52ba
- Perl 5.26 rebuild
4c52ba
4c52ba
* Mon Feb 27 2017 Petr Pisar <ppisar@redhat.com> - 1:2.15-1
4c52ba
- 2.15 bump
4c52ba
4c52ba
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.12-2
4c52ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
4c52ba
4c52ba
* Mon Jan 02 2017 Petr Pisar <ppisar@redhat.com> - 1:2.12-1
4c52ba
- 2.12 bump
4c52ba
4c52ba
* Mon May 23 2016 Petr Pisar <ppisar@redhat.com> - 1:2.09-1
4c52ba
- 2.09 bump
4c52ba
4c52ba
* Wed May 18 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1:2.08-3
4c52ba
- Perl 5.24 rebuild
4c52ba
4c52ba
* Wed May 18 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1:2.08-2
4c52ba
- Perl 5.24 rebuild
4c52ba
4c52ba
* Tue May 17 2016 Petr Pisar <ppisar@redhat.com> - 1:2.08-1
4c52ba
- 2.08 bump
4c52ba
4c52ba
* Sat May 14 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1:2.07-365
4c52ba
- Increase release to favour standalone package
4c52ba
4c52ba
* Mon May 02 2016 Petr Pisar <ppisar@redhat.com> - 1:2.07-1
4c52ba
- 2.07 bump
4c52ba
4c52ba
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.02-3
4c52ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
4c52ba
4c52ba
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2.02-2
4c52ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
4c52ba
4c52ba
* Mon Jun 15 2015 Petr Pisar <ppisar@redhat.com> - 1:2.02-1
4c52ba
- 2.02 bump
4c52ba
4c52ba
* Thu Jun 04 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1:2.01-345
4c52ba
- Increase release to favour standalone package
4c52ba
4c52ba
* Wed Jun 03 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1:2.01-2
4c52ba
- Perl 5.22 rebuild
4c52ba
4c52ba
* Fri Mar 13 2015 Petr Pisar <ppisar@redhat.com> - 1:2.01-1
4c52ba
- 2.01 bump
4c52ba
4c52ba
* Mon Mar 09 2015 Petr Pisar <ppisar@redhat.com> - 1:1.99-1
4c52ba
- 1.99 bump
4c52ba
4c52ba
* Fri Mar 06 2015 Petr Pisar <ppisar@redhat.com> - 1:1.98-1
4c52ba
- 1.98 bump
4c52ba
4c52ba
* Thu Mar 05 2015 Petr Pisar <ppisar@redhat.com> - 1:1.97-1
4c52ba
- 1.97 bump
4c52ba
4c52ba
* Wed Sep 10 2014 Petr Pisar <ppisar@redhat.com> - 1:1.96-1
4c52ba
- 1.96 bump
4c52ba
4c52ba
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.92-4
4c52ba
- Perl 5.20 rebuild
4c52ba
4c52ba
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.92-3
4c52ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
4c52ba
4c52ba
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.92-2
4c52ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
4c52ba
4c52ba
* Wed Feb 05 2014 Petr Pisar <ppisar@redhat.com> - 1:1.92-1
4c52ba
- 1.92 bump
4c52ba
4c52ba
* Wed Oct 02 2013 Petr Pisar <ppisar@redhat.com> - 1:1.89-1
4c52ba
- 1.89 bump
4c52ba
4c52ba
* Tue Sep 24 2013 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.87-6
4c52ba
- Update dependencies
4c52ba
4c52ba
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.87-5
4c52ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
4c52ba
4c52ba
* Fri Jul 12 2013 Petr Pisar <ppisar@redhat.com> - 1:1.87-4
4c52ba
- Link minimal build-root packages against libperl.so explicitly
4c52ba
4c52ba
* Fri Jul 12 2013 Petr Pisar <ppisar@redhat.com> - 1:1.87-3
4c52ba
- Perl 5.18 rebuild
4c52ba
4c52ba
* Fri Jul 12 2013 Petr Pisar <ppisar@redhat.com> - 1:1.87-2
4c52ba
- Perl 5.18 rebuild
4c52ba
4c52ba
* Fri Jul 12 2013 Petr Pisar <ppisar@redhat.com> - 1:1.87-1
4c52ba
- Increase epoch to compete with perl.spec
4c52ba
4c52ba
* Mon Jul 01 2013 Petr Pisar <ppisar@redhat.com> - 1.87-2
4c52ba
- Specify all dependencies
4c52ba
4c52ba
* Thu May 30 2013 Petr Pisar <ppisar@redhat.com> - 1.87-1
4c52ba
- 1.87 bump
4c52ba
4c52ba
* Tue Apr 30 2013 Petr Pisar <ppisar@redhat.com> - 1.86-243
4c52ba
- Increase release number to supersede perl sub-package (bug #957931)
4c52ba
4c52ba
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.86-242
4c52ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
4c52ba
4c52ba
* Thu Nov 01 2012 Jitka Plesnikova <jplesnik@redhat.com> - 1.86-241
4c52ba
- Update dependencies.
4c52ba
- Use DESTDIR rather than PERL_INSTALL_ROOT
4c52ba
4c52ba
* Mon Aug 13 2012 Marcela Mašláňová <mmaslano@redhat.com> - 1.86-240
4c52ba
- bump release to override sub-package from perl.spec
4c52ba
4c52ba
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.86-4
4c52ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
4c52ba
4c52ba
* Wed Jun 06 2012 Petr Pisar <ppisar@redhat.com> - 1.86-3
4c52ba
- Perl 5.16 rebuild
4c52ba
4c52ba
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.86-2
4c52ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
4c52ba
4c52ba
* Thu Dec 15 2011 Petr Pisar <ppisar@redhat.com> - 1.86-1
4c52ba
- 1.86 bump
4c52ba
4c52ba
* Tue Sep 06 2011 Petr Pisar <ppisar@redhat.com> - 1.85-1
4c52ba
- 1.85 bump
4c52ba
4c52ba
* Tue Aug 16 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.83-4
4c52ba
- change path on vendor, so our debuginfo are not conflicting with
4c52ba
  perl core debuginfos
4c52ba
4c52ba
* Fri Jun 17 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.83-3
4c52ba
- Perl mass rebuild
4c52ba
4c52ba
* Thu Jun 09 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.83-2
4c52ba
- Perl 5.14 mass rebuild
4c52ba
4c52ba
* Tue Apr 26 2011 Petr Pisar <ppisar@redhat.com> - 1.83-1
4c52ba
- 1.83 bump
4c52ba
4c52ba
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.82-2
4c52ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
4c52ba
4c52ba
* Mon Jan 03 2011 Petr Pisar <ppisar@redhat.com> - 1.82-1
4c52ba
- 1.82 bump
4c52ba
4c52ba
* Wed Oct 06 2010 Petr Pisar <ppisar@redhat.com> - 1.81-1
4c52ba
- 1.81 bump
4c52ba
4c52ba
* Fri Oct 01 2010 Petr Pisar <ppisar@redhat.com> 1.79-1
4c52ba
- Specfile autogenerated by cpanspec 1.78.
4c52ba
- Remove BuildRoot stuff