commit e8be4f7cc3c1cb28f30a5bdac1accb1c76fb79ae Author: overweight <5324761+overweight@user.noreply.gitee.com> Date: Mon Sep 30 11:12:41 2019 -0400 Package init diff --git a/List-MoreUtils-XS-0.428-unbundle.patch b/List-MoreUtils-XS-0.428-unbundle.patch new file mode 100644 index 0000000..46be647 --- /dev/null +++ b/List-MoreUtils-XS-0.428-unbundle.patch @@ -0,0 +1,41 @@ +--- Makefile.PL ++++ Makefile.PL +@@ -13,18 +13,8 @@ BEGIN + } + } + +-use inc::latest 'Capture::Tiny'; +-use inc::latest 'Config::AutoConf'; +- +-if (inc::latest->can("write")) +-{ +- inc::latest->write("inc"); +- for my $mod (inc::latest->loaded_modules) +- { +- inc::latest->bundle_module($mod, "inc"); +- } +-} +- ++use Capture::Tiny; ++use Config::AutoConf; + use ExtUtils::MakeMaker; + + use inc::Config::AutoConf::LMU (); +@@ -48,7 +38,6 @@ my %RUN_DEPS = ( + 'XSLoader' => "0.22", + ); + my %BUNDLE_CONFIGURE_DEPS = ( +- 'inc::latest' => '0.500', + 'Config::AutoConf' => '0.315', + ); + my %CONFIGURE_DEPS = ( +--- t/lib/Test/LMU.pm ++++ t/lib/Test/LMU.pm +@@ -16,7 +16,6 @@ my $CLASS = __PACKAGE__; + eval "use Storable qw();"; + $@ or Storable->import(qw(freeze)); + __PACKAGE__->can("freeze") or eval <<'EOFR'; +-use inc::latest 'JSON::PP'; + use JSON::PP qw(); + sub freeze { + my $json = JSON::PP->new(); diff --git a/List-MoreUtils-XS-0.428.tar.gz b/List-MoreUtils-XS-0.428.tar.gz new file mode 100644 index 0000000..ccb89a3 Binary files /dev/null and b/List-MoreUtils-XS-0.428.tar.gz differ diff --git a/perl-List-MoreUtils-XS.spec b/perl-List-MoreUtils-XS.spec new file mode 100644 index 0000000..cf59ea6 --- /dev/null +++ b/perl-List-MoreUtils-XS.spec @@ -0,0 +1,63 @@ +Name : perl-List-MoreUtils-XS +Version: 0.428 +Release: 6 +Summary: Provide compiled List::MoreUtils functions +License: (GPL+ or Artistic) and ASL 2.0 +URL: https://metacpan.org/release/List-MoreUtils-XS +Source0: https://cpan.metacpan.org/authors/id/R/RE/REHSACK/List-MoreUtils-XS-%{version}.tar.gz + +Patch0: List-MoreUtils-XS-0.428-unbundle.patch + +BuildRequires: perl-generators perl-interpreter perl(Capture::Tiny) perl(Config::AutoConf) >= 0.315 +BuildRequires: coreutils findutils perl(Test::More) >= 0.96 perl(ExtUtils::CBuilder) +Requires: perl(:MODULE_COMPAT_%(perl -V:version | cut -d"'" -f 2)) + +%description +List::MoreUtils::XS is a backend for List::MoreUtils. Even if it's possible (because of user wishes) +to have it practically independent from List::MoreUtils, it technically depend on List::MoreUtils. +Since it's only a backend, the API is not public and can change without any warning. + +%package_help + +%prep +%autosetup -n List-MoreUtils-XS-%{version} -p0 + +%build +perl Makefile.PL INSTALLDIRS=vendor NO_PERLLOCAL=1 NO_PACKLIST=1 OPTIMIZE="%{optflags}" +%make_build + +%install +%make_install +%{_fixperms} -c %{buildroot} + +%check +make test + +%pre + +%preun + +%post + +%postun + +%files +%defattr(-,root,root) +%license ARTISTIC-1.0 GPL-1 LICENSE +%doc Changes README.md +%{perl_vendorarch}/* + +%files help +%defattr(-,root,root) +%doc MAINTAINER.md +%{_mandir}/*/* + +%changelog +* Sat Sep 21 2019 openEuler Buildteam - 0.428-6 +- Type:enhancement +- ID:NA +- SUG:NA +- DESC: remove some notes + +* Tue Sep 10 2019 openEuler Buildteam - 0.428-5 +- Package init