diff --git a/perl-Storable.spec b/perl-Storable.spec index 8cb557cb6211e1c50cd15d64c245b1ebd204b0dd..7759d8b7662ec055fdac53580cbc7de6957fdfb2 100644 --- a/perl-Storable.spec +++ b/perl-Storable.spec @@ -1,92 +1,71 @@ -%define anolis_release 1 +%define anolis_release 2 + %global base_version 3.25 +%global perl_name Storable + Name: perl-Storable Epoch: 1 Version: 3.26 Release: %{anolis_release}%{?dist} Summary: Persistence for Perl data structures -# Storable.pm: GPL+ or Artistic License: GPL-1.0-or-later OR Artistic-1.0-Perl URL: https://metacpan.org/release/Storable Source0: https://cpan.metacpan.org/authors/id/N/NW/NWCLARK/Storable-%{base_version}.tar.gz -# Unbundled from perl 5.35.11 + Patch0: Storable-3.25-Upgrade-to-3.26.patch -BuildRequires: coreutils -BuildRequires: gcc -BuildRequires: make -BuildRequires: perl-devel -BuildRequires: perl-generators -BuildRequires: perl-interpreter -BuildRequires: perl(Config) -BuildRequires: perl(Cwd) -BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 -BuildRequires: perl(File::Copy) -BuildRequires: perl(File::Spec) >= 0.8 -BuildRequires: perl(strict) -BuildRequires: perl(warnings) -# Win32 not used on Linux -# Win32API::File not used on Linux -# Run-time: -BuildRequires: perl(Carp) -BuildRequires: perl(Exporter) + +BuildRequires: coreutils gcc gcc-c++ make autoconf +BuildRequires: perl-devel perl-generators perl-interpreter +BuildRequires: perl(Config) perl(Cwd) perl(strict) perl(warnings) perl(ExtUtils::MakeMaker) >= 6.76 +BuildRequires: perl(File::Copy) perl(File::Spec) >= 0.8 +# Run-time +BuildRequires: perl(Carp) perl(Exporter) # Fcntl is optional, but locking is good -BuildRequires: perl(Fcntl) -BuildRequires: perl(IO::File) +BuildRequires: perl(Fcntl) perl(IO::File) # Log::Agent is optional BuildRequires: perl(XSLoader) -# Tests: -BuildRequires: perl(base) -BuildRequires: perl(bytes) -BuildRequires: perl(File::Temp) -BuildRequires: perl(integer) -BuildRequires: perl(overload) -BuildRequires: perl(utf8) -BuildRequires: perl(Test::More) -BuildRequires: perl(threads) -BuildRequires: perl(Safe) -BuildRequires: perl(Scalar::Util) -BuildRequires: perl(Tie::Array) +# Tests +BuildRequires: perl(base) perl(bytes) perl(File::Temp) +BuildRequires: perl(integer) perl(overload) perl(utf8) perl(Test::More) +BuildRequires: perl(threads) perl(Safe) perl(Scalar::Util) perl(Tie::Array) # Optional tests: # gzip not used -# Data::Dump not used -# Data::Dumper not used -BuildRequires: perl(B::Deparse) >= 0.61 -BuildRequires: perl(Digest::MD5) -BuildRequires: perl(Hash::Util) -# Test::LeakTrace omitted because it's not a core module requried for building -# core Storable. +# Data::Dump not used Data::Dumper not used +BuildRequires: perl(B::Deparse) >= 0.61 perl(Digest::MD5) perl(Hash::Util) BuildRequires: perl(Tie::Hash) -Requires: perl(Config) -# Fcntl is optional, but locking is good -Requires: perl(Fcntl) -Requires: perl(IO::File) - +Requires: perl(Config) perl(Fcntl) perl(IO::File) %{?perl_default_filter} %description -The Storable package brings persistence to your Perl data structures -containing scalar, array, hash or reference objects, i.e. anything that -can be conveniently stored to disk and retrieved at a later time. +The Storable package brings persistence to your Perl data structures containing scalar, +array, hash or reference objects, i.e. anything that can be conveniently stored to disk +and retrieved at a later time. It can be used in the regular procedural way by calling +store with a reference to the object to store, and providing a file name. The routine +returns undef for I/O problems or other internal error, a true value otherwise. Serious +errors are propagated as a die exception. %package doc -Summary: Documentation files for %{name} +Summary: Documentation files for perl-Storable Requires: %{name} = %{epoch}:%{version}-%{release} BuildArch: noarch %description doc -The %{name}-doc package contains documentation files for %{name}. +The perl-Storable-doc package contains documentation files for perl-Storable. + %prep -%setup -q -n Storable-%{base_version} +%autosetup -n %{perl_name}-%{base_version} -p1 %build -perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 OPTIMIZE="$RPM_OPT_FLAGS" -%{make_build} +perl Makefile.PL INSTALLDIRS=vendor NO_PERLLOCAL=1 NO_PACKLIST=1 OPTIMIZE="$RPM_OPT_FLAGS" +%make_build %install -%{make_install} -find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -delete -find $RPM_BUILD_ROOT -type f -name '*.3pm' -size 0 -delete +%make_install +for file in "*.1pm" "*.bs" +do + find $RPM_BUILD_ROOT -type f -name $file -size 0 -delete +done %{_fixperms} $RPM_BUILD_ROOT/* %check @@ -94,14 +73,17 @@ unset PERL_CORE PERL_TEST_MEMORY PERL_RUN_SLOW_TESTS make test %files -%{perl_vendorarch}/auto/* -%{perl_vendorarch}/Storable* -%{_mandir}/man3/* +%{perl_vendorarch}/auto/%{perl_name}/%{perl_name}.so +%{perl_vendorarch}/%{perl_name}.pm +%{_mandir}/man3/*.zst %files doc -%doc ChangeLog README +%doc README ChangeLog %changelog +* Tue Apr 11 2023 chen_yu_ao - 1:3.26-2 +- change spec file format + * Wed Feb 08 2023 mgb01105731 - 1:3.26-1 - remove versioned MODULE_COMPAT_ requires - update to version 3.26