0e9315
%global base_version 1.59
0e9315
0e9315
Name:           perl-threads-shared
0e9315
Version:        1.61
0e9315
Release:        457%{?dist}
0e9315
Summary:        Perl extension for sharing data structures between threads
0e9315
License:        GPL+ or Artistic
0e9315
URL:            https://metacpan.org/release/threads-shared
0e9315
Source0:        https://cpan.metacpan.org/authors/id/J/JD/JDHEDDEN/threads-shared-%{base_version}.tar.gz
0e9315
# Unbundled from perl 5.29.10
0e9315
Patch0:         threads-shared-1.59-Upgrade-to-1.60.patch
0e9315
# Fix a memory leak when assigning a shared reference to a shared string
0e9315
# variable, in perl after 5.31.1
0e9315
Patch1:         threads-shared-1.60-threads-shared-fix-leak.patch
0e9315
# Unbundled from perl 5.32.0
0e9315
Patch2:         threads-shared-1.59-Upgrade-to-1.61.patch
0e9315
BuildRequires:  findutils
0e9315
BuildRequires:  gcc
0e9315
BuildRequires:  make
0e9315
BuildRequires:  perl-devel
0e9315
BuildRequires:  perl-generators
0e9315
BuildRequires:  perl-interpreter
0e9315
BuildRequires:  perl(Config)
0e9315
# Config_m not needed
0e9315
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
0e9315
BuildRequires:  perl(File::Spec)
0e9315
BuildRequires:  perl(strict)
0e9315
BuildRequires:  perl(warnings)
0e9315
# Run-time:
0e9315
BuildRequires:  perl(Carp)
0e9315
BuildRequires:  perl(Scalar::Util)
0e9315
BuildRequires:  perl(threads) >= 1.73
0e9315
BuildRequires:  perl(XSLoader)
0e9315
# Tests:
0e9315
BuildRequires:  perl(ExtUtils::testlib)
0e9315
BuildRequires:  perl(File::Path)
0e9315
BuildRequires:  perl(Test::More)
0e9315
# Optional tests:
0e9315
BuildRequires:  perl(POSIX)
0e9315
BuildRequires:  perl(Time::HiRes)
0e9315
# Win32 not needed
0e9315
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
0e9315
Requires:       perl(Carp)
0e9315
Requires:       perl(threads) >= 1.73
0e9315
Requires:       perl(XSLoader)
0e9315
0e9315
%{?perl_default_filter}
0e9315
0e9315
%description
0e9315
By default, variables are private to each thread, and each newly created
0e9315
thread gets a private copy of each existing variable. This module allows
0e9315
you to share variables across different threads (and pseudo-forks on
0e9315
Win32). It is used together with the threads module.
0e9315
0e9315
%prep
0e9315
%setup -q -n threads-shared-%{base_version}
0e9315
%patch0 -p1
0e9315
%patch1 -p1
0e9315
%patch2 -p1
0e9315
0e9315
%build
0e9315
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 OPTIMIZE="$RPM_OPT_FLAGS"
0e9315
%{make_build}
0e9315
0e9315
%install
0e9315
%{make_install}
0e9315
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -delete
0e9315
%{_fixperms} $RPM_BUILD_ROOT/*
0e9315
0e9315
%check
0e9315
unset GIT_DIR PERL_BUILD_PACKAGING PERL_CORE PERL_RUNPERL_DEBUG \
0e9315
    RUN_MAINTAINER_TESTS
0e9315
make test
0e9315
0e9315
%files
0e9315
%doc Changes examples README
0e9315
%{perl_vendorarch}/auto/*
0e9315
%{perl_vendorarch}/threads*
0e9315
%{_mandir}/man3/*
0e9315
0e9315
%changelog
0e9315
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.61-457
0e9315
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
0e9315
0e9315
* Mon Jun 22 2020 Jitka Plesnikova <jplesnik@redhat.com> - 1.61-456
0e9315
- Upgrade to 1.61 as provided in perl-5.32.0
0e9315
0e9315
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.60-441
0e9315
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
0e9315
0e9315
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.60-440
0e9315
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
0e9315
0e9315
* Fri Jul 12 2019 Petr Pisar <ppisar@redhat.com> - 1.60-439
0e9315
- Fix a memory leak when assigning a shared reference to a shared string
0e9315
  variable
0e9315
0e9315
* Thu May 30 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1.60-438
0e9315
- Increase release to favour standalone package
0e9315
0e9315
* Fri Apr 26 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1.60-1
0e9315
- Upgrade to 1.60 as provided in perl-5.29.10
0e9315
0e9315
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.59-2
0e9315
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
0e9315
0e9315
* Fri Nov 30 2018 Petr Pisar <ppisar@redhat.com> - 1.59-1
0e9315
- 1.59 bump
0e9315
0e9315
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.58-417
0e9315
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
0e9315
0e9315
* Wed Jun 27 2018 Jitka Plesnikova <jplesnik@redhat.com> - 1.58-416
0e9315
- Increase release to favour standalone package
0e9315
0e9315
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.58-2
0e9315
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
0e9315
0e9315
* Wed Jan 24 2018 Petr Pisar <ppisar@redhat.com> - 1.58-1
0e9315
- 1.58 bump
0e9315
0e9315
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.57-4
0e9315
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
0e9315
0e9315
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.57-3
0e9315
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
0e9315
0e9315
* Wed Jun 07 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1.57-2
0e9315
- Perl 5.26 re-rebuild of bootstrapped packages
0e9315
0e9315
* Mon Jun 05 2017 Petr Pisar <ppisar@redhat.com> - 1.57-1
0e9315
- 1.57 bump
0e9315
0e9315
* Sat Jun 03 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1.56-393
0e9315
- Perl 5.26 rebuild
0e9315
0e9315
* Thu May 11 2017 Petr Pisar <ppisar@redhat.com> - 1.56-1
0e9315
- Upgrade to 1.56 as provided in perl-5.25.12
0e9315
0e9315
* Fri Apr 21 2017 Petr Pisar <ppisar@redhat.com> - 1.55-2
0e9315
- Fix arenas allocation (RT#131124)
0e9315
0e9315
* Mon Feb 27 2017 Petr Pisar <ppisar@redhat.com> - 1.55-1
0e9315
- 1.55 bump
0e9315
0e9315
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.54-2
0e9315
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
0e9315
0e9315
* Mon Jan 02 2017 Petr Pisar <ppisar@redhat.com> - 1.54-1
0e9315
- 1.54 bump
0e9315
0e9315
* Wed May 18 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.52-3
0e9315
- Perl 5.24 rebuild
0e9315
0e9315
* Wed May 18 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.52-2
0e9315
- Perl 5.24 rebuild
0e9315
0e9315
* Tue May 17 2016 Petr Pisar <ppisar@redhat.com> - 1.52-1
0e9315
- 1.52 bump
0e9315
0e9315
* Sat May 14 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.51-365
0e9315
- Increase release to favour standalone package
0e9315
0e9315
* Mon May 02 2016 Petr Pisar <ppisar@redhat.com> - 1.51-1
0e9315
- 1.51 bump
0e9315
0e9315
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.48-347
0e9315
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
0e9315
0e9315
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.48-346
0e9315
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
0e9315
0e9315
* Thu Jun 04 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.48-345
0e9315
- Increase release to favour standalone package
0e9315
0e9315
* Wed Jun 03 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.48-341
0e9315
- Perl 5.22 rebuild
0e9315
0e9315
* Tue May 05 2015 Petr Pisar <ppisar@redhat.com> - 1.48-340
0e9315
- 1.48 bump in order to dual-live with perl 5.22
0e9315
0e9315
* Wed Sep 03 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.46-310
0e9315
- Increase release to favour standalone package
0e9315
0e9315
* Tue Aug 26 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.46-5
0e9315
- Perl 5.20 rebuild
0e9315
0e9315
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.46-4
0e9315
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
0e9315
0e9315
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.46-3
0e9315
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
0e9315
0e9315
* Wed Feb 19 2014 Petr Pisar <ppisar@redhat.com> - 1.46-2
0e9315
- Declare optional tests
0e9315
0e9315
* Wed Feb 05 2014 Petr Pisar <ppisar@redhat.com> - 1.46-1
0e9315
- 1.46 bump
0e9315
0e9315
* Thu Nov 14 2013 Petr Pisar <ppisar@redhat.com> - 1.45-1
0e9315
- 1.45 bump
0e9315
0e9315
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.43-291
0e9315
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
0e9315
0e9315
* Mon Jul 15 2013 Petr Pisar <ppisar@redhat.com> - 1.43-290
0e9315
- Increase release to favour standalone package
0e9315
0e9315
* Fri Jul 12 2013 Petr Pisar <ppisar@redhat.com> - 1.43-5
0e9315
- Link minimal build-root packages against libperl.so explicitly
0e9315
0e9315
* Tue Jul 02 2013 Jitka Plesnikova <jplesnik@redhat.com> - 1.43-4
0e9315
- Remove BR perl(Test)
0e9315
0e9315
* Tue Jul 02 2013 Jitka Plesnikova <jplesnik@redhat.com> - 1.43-3
0e9315
- Specify all dependencies
0e9315
0e9315
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.43-2
0e9315
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
0e9315
0e9315
* Tue Jan 15 2013 Petr Pisar <ppisar@redhat.com> - 1.43-1
0e9315
- 1.43 bump
0e9315
0e9315
* Fri Nov 23 2012 Jitka Plesnikova <jplesnik@redhat.com> - 1.42-2
0e9315
- Add BR perl(File::Spec)
0e9315
- Replace PERL_INSTALL_ROOT with DESTDIR
0e9315
- Remove deleting empty directories
0e9315
- Remove defattr
0e9315
0e9315
* Wed Oct 03 2012 Petr Pisar <ppisar@redhat.com> - 1.42-1
0e9315
- 1.42 bump
0e9315
0e9315
* Mon Sep 10 2012 Petr Pisar <ppisar@redhat.com> - 1.41-1
0e9315
- 1.41 bump
0e9315
0e9315
* Mon Aug 13 2012 Marcela Mašláňová <mmaslano@redhat.com> - 1.40-240
0e9315
- bump release to override sub-package from perl.spec 
0e9315
0e9315
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.40-4
0e9315
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
0e9315
0e9315
* Wed Jun 06 2012 Petr Pisar <ppisar@redhat.com> - 1.40-3
0e9315
- Perl 5.16 rebuild
0e9315
0e9315
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.40-2
0e9315
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
0e9315
0e9315
* Mon Sep 12 2011 Petr Pisar <ppisar@redhat.com> - 1.40-1
0e9315
- 1.40 bump
0e9315
0e9315
* Tue Sep 06 2011 Petr Pisar <ppisar@redhat.com> - 1.39-1
0e9315
- 1.39 bump
0e9315
0e9315
* Wed Aug 17 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.37-3
0e9315
- change path on vendor, so our debuginfo are not conflicting with
0e9315
 perl core debuginfos
0e9315
0e9315
* Mon Jun 20 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.37-2
0e9315
- Perl mass rebuild
0e9315
0e9315
* Tue Apr 26 2011 Petr Pisar <ppisar@redhat.com> - 1.37-1
0e9315
- 1.37 bump
0e9315
0e9315
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.36-2
0e9315
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
0e9315
0e9315
* Mon Jan 03 2011 Petr Pisar <ppisar@redhat.com> - 1.36-1
0e9315
- 1.36 bump
0e9315
0e9315
* Mon Oct 11 2010 Petr Pisar <ppisar@redhat.com> - 1.34-1
0e9315
- 1.34 bump
0e9315
0e9315
* Thu Sep 23 2010 Petr Pisar <ppisar@redhat.com> 1.33-1
0e9315
- Specfile autogenerated by cpanspec 1.78.
0e9315
- Fix dependencies
0e9315
- Requires perl(Scalar::Util) is autodetected
0e9315
- Do not provide private library
0e9315
- Remove pre-F12 BuildRoot stuff