%global base_version 1.59 Name: perl-threads-shared Version: 1.69 Release: 511%{?dist} Summary: Perl extension for sharing data structures between threads License: GPL-1.0-or-later OR Artistic-1.0-Perl URL: https://metacpan.org/release/threads-shared Source0: https://cpan.metacpan.org/authors/id/J/JD/JDHEDDEN/threads-shared-%{base_version}.tar.gz # Unbundled from perl 5.29.10 Patch0: threads-shared-1.59-Upgrade-to-1.60.patch # Fix a memory leak when assigning a shared reference to a shared string # variable, in perl after 5.31.1 Patch1: threads-shared-1.60-threads-shared-fix-leak.patch # Unbundled from perl 5.32.0 Patch2: threads-shared-1.59-Upgrade-to-1.61.patch # Unbundled from perl 5.34.0 Patch3: threads-shared-1.61-Upgrade-to-1.62.patch # Unbundled from perl 5.35.11 Patch4: threads-shared-1.62-Upgrade-to-1.64.patch # Unbundled from perl 5.37.11 Patch5: threads-shared-1.64-Upgrade-to-1.68.patch # Unbundled from perl 5.40.0-RC1 Patch6: threads-shared-1.68-Upgrade-to-1.69.patch BuildRequires: coreutils BuildRequires: findutils BuildRequires: gcc BuildRequires: make BuildRequires: perl-devel BuildRequires: perl-generators BuildRequires: perl-interpreter BuildRequires: perl(Config) # Config_m not needed BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 BuildRequires: perl(File::Spec) BuildRequires: perl(strict) BuildRequires: perl(warnings) # Run-time: BuildRequires: perl(Carp) BuildRequires: perl(Scalar::Util) BuildRequires: perl(threads) >= 1.73 BuildRequires: perl(XSLoader) # Tests: BuildRequires: perl(ExtUtils::testlib) BuildRequires: perl(File::Path) BuildRequires: perl(Test::More) # Optional tests: BuildRequires: perl(POSIX) BuildRequires: perl(Time::HiRes) # Win32 not needed Requires: perl(Carp) Requires: perl(threads) >= 1.73 Requires: perl(XSLoader) %{?perl_default_filter} %description By default, variables are private to each thread, and each newly created thread gets a private copy of each existing variable. This module allows you to share variables across different threads (and pseudo-forks on Win32). It is used together with the threads module. %package tests Summary: Tests for %{name} Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} Requires: perl-Test-Harness Requires: perl(POSIX) Requires: perl(Time::HiRes) %description tests Tests from %{name}. Execute them with "%{_libexecdir}/%{name}/test". %prep %autosetup -p1 -n threads-shared-%{base_version} # Help generators to recognize Perl scripts for F in t/*.t t/*pl; do perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl\b}{$Config{startperl}}' "$F" chmod +x "$F" done %build perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 OPTIMIZE="%{optflags}" %{make_build} %install %{make_install} find %{buildroot} -type f -name '*.bs' -size 0 -delete %{_fixperms} %{buildroot}/* # Install tests mkdir -p %{buildroot}%{_libexecdir}/%{name} cp -a t %{buildroot}%{_libexecdir}/%{name} cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF' #!/bin/sh cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)" EOF chmod +x %{buildroot}%{_libexecdir}/%{name}/test %check export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}') unset GIT_DIR PERL_BUILD_PACKAGING PERL_CORE PERL_RUNPERL_DEBUG \ RUN_MAINTAINER_TESTS make test %files %doc Changes examples README %{perl_vendorarch}/auto/threads* %{perl_vendorarch}/threads* %{_mandir}/man3/threads::shared* %files tests %{_libexecdir}/%{name} %changelog * Fri Jul 19 2024 Fedora Release Engineering - 1.69-511 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Mon Jun 10 2024 Jitka Plesnikova - 1.69-510 - Increase release to favour standalone package * Tue Jun 04 2024 Jitka Plesnikova - 1.69-503 - Upgrade to 1.69 as provided in perl-5.40.0-RC1 * Thu Jan 25 2024 Fedora Release Engineering - 1.68-502 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 1.68-501 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 1.68-500 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jul 11 2023 Jitka Plesnikova - 1.68-499 - Increase release to favour standalone package * Thu May 18 2023 Jitka Plesnikova - 1.68-1 - Upgrade to 1.68 as provided in perl-5.37.11 - Package tests * Fri Jan 20 2023 Fedora Release Engineering - 1.64-490 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 1.64-489 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon May 30 2022 Jitka Plesnikova - 1.64-488 - Increase release to favour standalone package * Thu May 12 2022 Jitka Plesnikova - 1.64-1 - Upgrade to 1.64 as provided in perl-5.35.11 * Fri Jan 21 2022 Fedora Release Engineering - 1.62-479 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 1.62-478 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri May 21 2021 Jitka Plesnikova - 1.62-477 - Upgrade to 1.62 as provided in perl-5.34.0 * Wed Jan 27 2021 Fedora Release Engineering - 1.61-458 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 1.61-457 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon Jun 22 2020 Jitka Plesnikova - 1.61-456 - Upgrade to 1.61 as provided in perl-5.32.0 * Thu Jan 30 2020 Fedora Release Engineering - 1.60-441 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Jul 26 2019 Fedora Release Engineering - 1.60-440 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri Jul 12 2019 Petr Pisar - 1.60-439 - Fix a memory leak when assigning a shared reference to a shared string variable * Thu May 30 2019 Jitka Plesnikova - 1.60-438 - Increase release to favour standalone package * Fri Apr 26 2019 Jitka Plesnikova - 1.60-1 - Upgrade to 1.60 as provided in perl-5.29.10 * Sat Feb 02 2019 Fedora Release Engineering - 1.59-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Nov 30 2018 Petr Pisar - 1.59-1 - 1.59 bump * Fri Jul 13 2018 Fedora Release Engineering - 1.58-417 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Wed Jun 27 2018 Jitka Plesnikova - 1.58-416 - Increase release to favour standalone package * Fri Feb 09 2018 Fedora Release Engineering - 1.58-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Wed Jan 24 2018 Petr Pisar - 1.58-1 - 1.58 bump * Thu Aug 03 2017 Fedora Release Engineering - 1.57-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 1.57-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Wed Jun 07 2017 Jitka Plesnikova - 1.57-2 - Perl 5.26 re-rebuild of bootstrapped packages * Mon Jun 05 2017 Petr Pisar - 1.57-1 - 1.57 bump * Sat Jun 03 2017 Jitka Plesnikova - 1.56-393 - Perl 5.26 rebuild * Thu May 11 2017 Petr Pisar - 1.56-1 - Upgrade to 1.56 as provided in perl-5.25.12 * Fri Apr 21 2017 Petr Pisar - 1.55-2 - Fix arenas allocation (RT#131124) * Mon Feb 27 2017 Petr Pisar - 1.55-1 - 1.55 bump * Sat Feb 11 2017 Fedora Release Engineering - 1.54-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Jan 02 2017 Petr Pisar - 1.54-1 - 1.54 bump * Wed May 18 2016 Jitka Plesnikova - 1.52-3 - Perl 5.24 rebuild * Wed May 18 2016 Jitka Plesnikova - 1.52-2 - Perl 5.24 rebuild * Tue May 17 2016 Petr Pisar - 1.52-1 - 1.52 bump * Sat May 14 2016 Jitka Plesnikova - 1.51-365 - Increase release to favour standalone package * Mon May 02 2016 Petr Pisar - 1.51-1 - 1.51 bump * Thu Feb 04 2016 Fedora Release Engineering - 1.48-347 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Jun 18 2015 Fedora Release Engineering - 1.48-346 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Thu Jun 04 2015 Jitka Plesnikova - 1.48-345 - Increase release to favour standalone package * Wed Jun 03 2015 Jitka Plesnikova - 1.48-341 - Perl 5.22 rebuild * Tue May 05 2015 Petr Pisar - 1.48-340 - 1.48 bump in order to dual-live with perl 5.22 * Wed Sep 03 2014 Jitka Plesnikova - 1.46-310 - Increase release to favour standalone package * Tue Aug 26 2014 Jitka Plesnikova - 1.46-5 - Perl 5.20 rebuild * Sun Aug 17 2014 Fedora Release Engineering - 1.46-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 1.46-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Wed Feb 19 2014 Petr Pisar - 1.46-2 - Declare optional tests * Wed Feb 05 2014 Petr Pisar - 1.46-1 - 1.46 bump * Thu Nov 14 2013 Petr Pisar - 1.45-1 - 1.45 bump * Sun Aug 04 2013 Fedora Release Engineering - 1.43-291 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Mon Jul 15 2013 Petr Pisar - 1.43-290 - Increase release to favour standalone package * Fri Jul 12 2013 Petr Pisar - 1.43-5 - Link minimal build-root packages against libperl.so explicitly * Tue Jul 02 2013 Jitka Plesnikova - 1.43-4 - Remove BR perl(Test) * Tue Jul 02 2013 Jitka Plesnikova - 1.43-3 - Specify all dependencies * Thu Feb 14 2013 Fedora Release Engineering - 1.43-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Tue Jan 15 2013 Petr Pisar - 1.43-1 - 1.43 bump * Fri Nov 23 2012 Jitka Plesnikova - 1.42-2 - Add BR perl(File::Spec) - Replace PERL_INSTALL_ROOT with DESTDIR - Remove deleting empty directories - Remove defattr * Wed Oct 03 2012 Petr Pisar - 1.42-1 - 1.42 bump * Mon Sep 10 2012 Petr Pisar - 1.41-1 - 1.41 bump * Mon Aug 13 2012 Marcela Mašláňová - 1.40-240 - bump release to override sub-package from perl.spec * Fri Jul 20 2012 Fedora Release Engineering - 1.40-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Wed Jun 06 2012 Petr Pisar - 1.40-3 - Perl 5.16 rebuild * Sat Jan 14 2012 Fedora Release Engineering - 1.40-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Mon Sep 12 2011 Petr Pisar - 1.40-1 - 1.40 bump * Tue Sep 06 2011 Petr Pisar - 1.39-1 - 1.39 bump * Wed Aug 17 2011 Marcela Mašláňová - 1.37-3 - change path on vendor, so our debuginfo are not conflicting with perl core debuginfos * Mon Jun 20 2011 Marcela Mašláňová - 1.37-2 - Perl mass rebuild * Tue Apr 26 2011 Petr Pisar - 1.37-1 - 1.37 bump * Wed Feb 09 2011 Fedora Release Engineering - 1.36-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Mon Jan 03 2011 Petr Pisar - 1.36-1 - 1.36 bump * Mon Oct 11 2010 Petr Pisar - 1.34-1 - 1.34 bump * Thu Sep 23 2010 Petr Pisar 1.33-1 - Specfile autogenerated by cpanspec 1.78. - Fix dependencies - Requires perl(Scalar::Util) is autodetected - Do not provide private library - Remove pre-F12 BuildRoot stuff