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