diff --git a/perl-threads-shared.spec b/perl-threads-shared.spec index 9b03ee91b0b821efe1b02657ec07746dd65431b4..73230199c2781c845bd1288249a0c9ed3aec4a46 100644 --- a/perl-threads-shared.spec +++ b/perl-threads-shared.spec @@ -1,4 +1,4 @@ -%define anolis_release 1 +%define anolis_release 2 %global base_version 1.59 Name: perl-threads-shared @@ -8,40 +8,20 @@ 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 -BuildRequires: findutils -BuildRequires: gcc -BuildRequires: make -BuildRequires: perl-devel -BuildRequires: perl-generators -BuildRequires: perl-interpreter -BuildRequires: perl(Config) -BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 -BuildRequires: perl(File::Spec) -BuildRequires: perl(strict) -BuildRequires: perl(warnings) -BuildRequires: perl(Carp) -BuildRequires: perl(Scalar::Util) -BuildRequires: perl(threads) >= 1.73 -BuildRequires: perl(XSLoader) -BuildRequires: perl(ExtUtils::testlib) -BuildRequires: perl(File::Path) -BuildRequires: perl(Test::More) -BuildRequires: perl(POSIX) -BuildRequires: perl(Time::HiRes) -Requires: perl(Carp) -Requires: perl(threads) >= 1.73 -Requires: perl(XSLoader) +BuildRequires: findutils gcc make +BuildRequires: perl-devel perl-generators perl-interpreter +BuildRequires: perl(Config) perl(ExtUtils::MakeMaker) >= 6.76 +BuildRequires: perl(File::Spec) perl(strict) perl(warnings) +BuildRequires: perl(Carp) perl(Scalar::Util) perl(threads) >= 1.73 +BuildRequires: perl(XSLoader) perl(ExtUtils::testlib) perl(File::Path) +BuildRequires: perl(Test::More) perl(POSIX) perl(Time::HiRes) + +Requires: perl(Carp) perl(threads) >= 1.73 perl(XSLoader) %description By default, variables are private to each thread, and each newly created @@ -58,12 +38,7 @@ BuildArch: noarch The %{name}-doc package contains documentation files for %{name}. %prep -%setup -q -n threads-shared-%{base_version} -%patch0 -p1 -%patch1 -p1 -%patch2 -p1 -%patch3 -p1 -%patch4 -p1 +%autosetup -p1 -n threads-shared-%{base_version} %build perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 OPTIMIZE="$RPM_OPT_FLAGS" @@ -88,6 +63,9 @@ make test %doc Changes examples README %changelog +* Fri Apr 14 2023 Kaihao Bai - 1.64-2 +- optimize spec + * Wed Feb 08 2023 mgb01105731 - 1.64-1 - remove versioned MODULE_COMPAT_ requires - update to version 1.64