Blame SPECS/perl-threads-shared.spec

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