From e1edeefba855b66035253baaf95e6d51b522d2ef Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Tue, 7 May 2019 08:19:01 -0400 Subject: [PATCH] import perl-App-cpanminus-1.7044-4.module+el8+2548+71791163 --- .gitignore | 1 + .perl-App-cpanminus.metadata | 1 + SOURCES/fatunpack | 114 ++++++++ SPECS/perl-App-cpanminus.spec | 497 ++++++++++++++++++++++++++++++++++ 4 files changed, 613 insertions(+) create mode 100644 .gitignore create mode 100644 .perl-App-cpanminus.metadata create mode 100755 SOURCES/fatunpack create mode 100644 SPECS/perl-App-cpanminus.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0709193 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/App-cpanminus-1.7044.tar.gz diff --git a/.perl-App-cpanminus.metadata b/.perl-App-cpanminus.metadata new file mode 100644 index 0000000..f2a11b0 --- /dev/null +++ b/.perl-App-cpanminus.metadata @@ -0,0 +1 @@ +3cd3997099036fce470b42b0c95d31f01e2543ff SOURCES/App-cpanminus-1.7044.tar.gz diff --git a/SOURCES/fatunpack b/SOURCES/fatunpack new file mode 100755 index 0000000..0cc0652 --- /dev/null +++ b/SOURCES/fatunpack @@ -0,0 +1,114 @@ +#!/usr/bin/perl +use strict; +use warnings; +use File::Path; +use File::Spec; +use Getopt::Long; + +my $libdir = 'lib'; +my $filter = ''; + +GetOptions('libdir=s' => \$libdir, 'filter=s' => \$filter) or + die "Could not parse arguments\n"; +if ($filter eq '') { + # Empty pattern passes previous result by definition. Do not use it. + # Interpolared compilation is fixed in perl 5.18.0. RT#119095. + $filter = qr/(?:)/; +} +eval { $filter = qr{$filter}; 1} or + die "Could not compile filter as a regular expression: $@\n"; + +my ($file, $filename, $delimiter); +while (<>) { + if (/^\$fatpacked\{\s*"([^"]*)"\s*\}\s*=.*<<\s*'([^']*)'\s*;/) { + # Packed module beginning found + $filename = $1; + $delimiter = $2; + if ($filename =~ $filter) { + print STDERR "Extracting `$filename'\n"; + my $directory = (File::Spec->splitpath($filename))[1]; + File::Path::make_path(File::Spec->catfile($libdir, $directory)); + if ($file) { + die "Unballanced fat-packed module at line $.\n"; + } + open($file, '>', File::Spec->catfile($libdir, $filename)) or + die "Could not create `", + File::Spec->catfile($libdir, $filename), "': $!\n"; + } else { + print STDERR "Removing `$filename'\n"; + } + } elsif (defined $delimiter and /^\Q$delimiter\E$/) { + # Packed module end found + if (defined $file) { + close($file) or + die "Could not close `", + File::Spec->catfile($libdir, $filename), "': $!\n"; + $file = undef; + } + $filename = undef; + $delimiter = undef; + } elsif (defined $file) { + # Packed module to extract + s/^ //; # de-escape recursive here-documents + print $file $_; + } elsif (! defined $delimiter) { + # Rest of code to output + print STDOUT $_; + } +} + +__END__ + +=encoding utf8 + +=head1 NAME + +fatunpack - Unpacker for App::FatPacker packets + +=head1 SYNOPSYS + +fatunpack [OPTION…] [PACKED_SCRIPT…] + +=head1 DESCRIPTION + +This tool unpacks scripts packed with App::FatPacker. + +Packed script's file names are specified as positional arguments. If no +argument is given, a script from standard intput will be processed. + +The content of packed script stripped of all bundled modules is written to +standard output. + +=head1 OPTIONS + +=over 8 + +=item B<--libdir DIRECTORY> + +Directory to output unpacked modules to that where bundled into the input +script. Default value is C. + +=item B<--filter REGULAR_EXPRESSION> + +Save only modules whose file name matches the B. The file +names are compared without B<--libdir> prefix. The expession is not anchored +by default. Empty expression matches any file name. Default value is empty +regular expression, i.e. to save all modules. + +=back + +=head1 VERSION + +This is version 2. + +=head1 COPYRIGHT + +Copyright © 2013, 2014 Petr Písař . + +=head1 LICENSE + +This is free software. You may redistribute copies of it under the terms of +the GNU General Public License L. +There is NO WARRANTY, to the extent permitted by law. + +=cut diff --git a/SPECS/perl-App-cpanminus.spec b/SPECS/perl-App-cpanminus.spec new file mode 100644 index 0000000..c32cc41 --- /dev/null +++ b/SPECS/perl-App-cpanminus.spec @@ -0,0 +1,497 @@ +Name: perl-App-cpanminus +Version: 1.7044 +Release: 4%{?dist} +Summary: Get, unpack, build and install CPAN modules +License: GPL+ or Artistic +Group: Development/Libraries +URL: https://metacpan.org/release/App-cpanminus +Source0: https://cpan.metacpan.org/authors/id/M/MI/MIYAGAWA/App-cpanminus-%{version}.tar.gz +Source1: fatunpack +BuildArch: noarch +BuildRequires: %{_bindir}/podselect +BuildRequires: coreutils +BuildRequires: findutils +BuildRequires: make +BuildRequires: perl-interpreter +BuildRequires: perl-generators +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30 +BuildRequires: perl(File::Path) +BuildRequires: perl(File::Spec) +BuildRequires: perl(Getopt::Long) +BuildRequires: perl(strict) +BuildRequires: perl(warnings) +# Run-time: +# Nothing special. The tests are very poor. But we run perl -c at built-time +# to check for correct unpacking. So we need non-optional run-time +# dependencies at build-time too: +BuildRequires: perl(Config) +BuildRequires: perl(constant) +# CPAN::DistnameInfo not needed for compilation +# CPAN::Meta not needed for copmilation +# CPAN::Meta::Check not needed for compilation +BuildRequires: perl(CPAN::Meta::Requirements) +# CPAN::Meta::YAML not needed for compilation +BuildRequires: perl(Cwd) +# Digest::SHA not needed for compilation +# ExtUtils::Manifest not needed for compilation +BuildRequires: perl(File::Basename) +BuildRequires: perl(File::Copy) +BuildRequires: perl(File::Find) +# File::HomeDir not needed for compilation +# File::pushd not needed for compilation +BuildRequires: perl(File::Temp) +# HTTP::Tiny not needed for compilation +# JSON::PP not needed for compilation +# local::lib not needed for compilation +# LWP::Protocol::https not needed for compilation +# LWP::UserAgent not needed for compilation +# Module::CoreList not needed for compilation +# Module::CPANfile not needed for compilation +# Module::Metadata not needed for compilation +# Module::Signature not needed for compilation +# Parse::PMFile not needed for compilation +# Safe not needed for compilation +BuildRequires: perl(String::ShellQuote) +BuildRequires: perl(Symbol) +BuildRequires: perl(version) +# version::vpp not needed +# Win32 not used +# YAML not needed for compilation +# Tests: +BuildRequires: perl(Test::More) +# There is no way to install core non-duallived modules from CPAN, +# (e.g. Path-Tiny CPAN distribution requiers "open" module), require full Perl +# for that. +%if 0%(perl -e 'print $] < 5.026' 2>/dev/null) +Requires: perl-core +%else +Requires: perl +%endif +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) +# Current dependency generator cannot parse compressed code. Use PPI to find +# them, and list them manually: +# Archive::Tar is optional +# Archive::Zip is optional +# Compress::Zlib is optional +Requires: perl(CPAN::DistnameInfo) +Requires: perl(CPAN::Meta) +Requires: perl(CPAN::Meta::Check) +Requires: perl(CPAN::Meta::YAML) +Requires: perl(Digest::SHA) +Requires: perl(ExtUtils::Install) >= 1.46 +Requires: perl(ExtUtils::MakeMaker) >= 6.58 +Requires: perl(ExtUtils::Manifest) +# File::HomeDir is optional +Requires: perl(File::pushd) +# HTTP getter by LWP::UserAgent or wget or curl or HTTP::Tiny +Requires: perl(HTTP::Tiny) +Requires: perl(local::lib) +# LWP::Protocol::https is optional +# LWP::UserAgent is optional +Requires: perl(Module::Build) >= 0.38 +Requires: perl(Module::CoreList) +Requires: perl(Module::CPANfile) +Requires: perl(Module::Metadata) +# Module::Signature is optional +Requires: perl(Parse::PMFile) +Requires: perl(Safe) +# version::vpp not used +# Win32 not used +Requires: perl(YAML) +# XXX: Keep Provides: cpanminus to allow `yum install cpanminus' instead of +# longer `yum install perl-App-cpanminus'. +Provides: cpanminus = %{version}-%{release} +Obsoletes: cpanminus <= 1.2002 + +# Filter under-specified dependencies +%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}^perl\\(App::cpanminus\\)$ +# Filter private modules +%global __provides_exclude %{__provides_exclude}|^perl\\(ModuleBuildSkipMan\\) + +%description +Why? It's dependency free, requires zero configuration, and stands alone +but it's maintainable and extensible with plug-ins and friendly to shell +scripting. When running, it requires only 10 MB of RAM. + +%prep +%setup -q -n App-cpanminus-%{version} +# Unbundle fat-packed modules +podselect lib/App/cpanminus.pm > lib/App/cpanminus.pod + +for F in bin/cpanm lib/App/cpanminus/fatscript.pm; do + %{SOURCE1} --libdir lib --filter '^App/cpanminus' "$F" > "${F}.stripped" + perl -c -Ilib "${F}.stripped" + mv "${F}.stripped" "$F" +done + +%build +perl Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +make pure_install DESTDIR=%{buildroot} +find %{buildroot} -type f -name .packlist -delete +%{_fixperms} %{buildroot}/* + +%check +make test + +%files +%license LICENSE +%doc Changes README +%{perl_vendorlib}/* +%{_mandir}/man3/* +%{_mandir}/man1/* +%{_bindir}/cpanm + +%changelog +* Mon Jul 16 2018 Petr Pisar - 1.7044-4 +- Require full Perl for non-duallived sub-packaged core modules + +* Fri Jul 13 2018 Fedora Release Engineering - 1.7044-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Thu Jun 28 2018 Jitka Plesnikova - 1.7044-2 +- Perl 5.28 rebuild + +* Fri Apr 20 2018 Jitka Plesnikova - 1.7044-1 +- 1.7044 bump + +* Thu Feb 08 2018 Fedora Release Engineering - 1.7043-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 1.7043-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sun Jun 04 2017 Jitka Plesnikova - 1.7043-2 +- Perl 5.26 rebuild + +* Mon Apr 03 2017 Jitka Plesnikova - 1.7043-1 +- 1.7043 bump + +* Sat Feb 11 2017 Fedora Release Engineering - 1.7042-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Tue Jun 07 2016 Petr Pisar - 1.7042-1 +- 1.7042 bump + +* Sun May 15 2016 Jitka Plesnikova - 1.7041-2 +- Perl 5.24 rebuild + +* Tue May 10 2016 Jitka Plesnikova - 1.7041-1 +- 1.7041 bump + +* Thu Feb 04 2016 Fedora Release Engineering - 1.7040-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Mon Jan 11 2016 Jitka Plesnikova - 1.7040-1 +- 1.7040 bump + +* Mon Jun 29 2015 Jitka Plesnikova - 1.7039-1 +- 1.7039 bump + +* Wed Jun 24 2015 Jitka Plesnikova - 1.7038-1 +- 1.7038 bump + +* Fri Jun 19 2015 Jitka Plesnikova - 1.7037-1 +- 1.7037 bump + +* Thu Jun 18 2015 Fedora Release Engineering - 1.7036-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Thu Jun 11 2015 Jitka Plesnikova - 1.7036-2 +- Perl 5.22 rebuild + +* Wed Jun 10 2015 Petr Pisar - 1.7036-1 +- 1.7036 bump + +* Fri Jun 05 2015 Jitka Plesnikova - 1.7034-2 +- Perl 5.22 rebuild + +* Mon May 11 2015 Jitka Plesnikova - 1.7034-1 +- 1.7034 bump + +* Thu Apr 23 2015 Jitka Plesnikova - 1.7031-1 +- 1.7031 bump + +* Mon Apr 20 2015 Jitka Plesnikova - 1.7030-1 +- 1.7030 bump + +* Tue Feb 17 2015 Jitka Plesnikova - 1.7027-1 +- 1.7027 bump + +* Mon Feb 09 2015 Petr Pisar - 1.7025-1 +- 1.7025 bump + +* Tue Dec 16 2014 Jitka Plesnikova - 1.7022-1 +- 1.7022 bump + +* Thu Dec 11 2014 Jitka Plesnikova - 1.7020-1 +- 1.7020 bump; README was removed + +* Mon Dec 08 2014 Jitka Plesnikova - 1.7019-1 +- 1.7019 bump + +* Wed Dec 03 2014 Jitka Plesnikova - 1.7018-1 +- 1.7018 bump + +* Tue Nov 18 2014 Jitka Plesnikova - 1.7016-1 +- 1.7016 bump + +* Wed Oct 08 2014 Jitka Plesnikova - 1.7014-1 +- 1.7014 bump + +* Mon Sep 29 2014 Jitka Plesnikova - 1.7012-1 +- 1.7012 bump + +* Tue Sep 23 2014 Jitka Plesnikova - 1.7011-1 +- 1.7011 bump + +* Wed Sep 10 2014 Jitka Plesnikova - 1.7009-1 +- 1.7009 bump + +* Thu Aug 28 2014 Jitka Plesnikova - 1.7004-3 +- Perl 5.20 rebuild + +* Sat Jun 07 2014 Fedora Release Engineering - 1.7004-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Wed Apr 30 2014 Jitka Plesnikova - 1.7004-1 +- 1.7004 bump +- Updated the script fatunpack (ppisar) + +* Wed Sep 11 2013 Petr Pisar - 1.7001-1 +- 1.7001 bump + +* Wed Sep 11 2013 Petr Pisar - 1.6927-3 +- Unbundle all modules (bug #907464) + +* Sat Aug 03 2013 Fedora Release Engineering - 1.6927-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Wed Jul 24 2013 Jitka Plesnikova - 1.6927-1 +- 1.6927 bump + +* Thu Jul 18 2013 Petr Pisar - 1.6922-2 +- Perl 5.18 rebuild + +* Fri Jun 21 2013 Petr Pisar - 1.6922-1 +- 1.6922 bump + +* Thu Jun 20 2013 Jitka Plesnikova - 1.6921-1 +- 1.6921 bump + +* Thu Jun 13 2013 Jitka Plesnikova - 1.6918-1 +- 1.6918 bump + +* Thu May 16 2013 Petr Pisar - 1.6915-1 +- 1.6915 bump + +* Mon May 13 2013 Petr Pisar - 1.6914-1 +- 1.6914 bump + +* Mon May 13 2013 Petr Pisar - 1.6913-1 +- 1.6913 bump + +* Tue May 07 2013 Petr Pisar - 1.6912-1 +- 1.6912 bump + +* Mon May 06 2013 Petr Pisar - 1.6911-1 +- 1.6911 bump + +* Thu May 02 2013 Jitka Plesnikova - 1.6909-1 +- 1.6909 bump + +* Mon Apr 29 2013 Petr Pisar - 1.6907-1 +- 1.6907 bump + +* Mon Apr 22 2013 Jitka Plesnikova - 1.6902-1 +- 1.6902 bump + +* Mon Apr 15 2013 Petr Pisar - 1.6108-1 +- 1.6108 bump + +* Mon Apr 08 2013 Petr Pisar - 1.6107-1 +- 1.6107 bump + +* Mon Apr 08 2013 Petr Pisar - 1.6105-1 +- 1.6105 bump + +* Wed Apr 03 2013 Petr Pisar - 1.6104-1 +- 1.6104 bump + +* Thu Mar 28 2013 Petr Pisar - 1.6102-1 +- 1.6102 bump + +* Tue Mar 26 2013 Petr Pisar - 1.6101-1 +- 1.6101 bump + +* Wed Mar 20 2013 Petr Pisar - 1.6008-1 +- 1.6008 bump + +* Thu Mar 14 2013 Petr Pisar - 1.6006-1 +- 1.6006 bump + +* Mon Mar 11 2013 Jitka Plesnikova - 1.6005-1 +- 1.6005 bump + +* Thu Feb 28 2013 Petr Pisar - 1.6002-1 +- 1.6002 bump + +* Mon Feb 4 2013 Jitka Plesnikova - 1.5021-1 +- 1.5021 bump + +* Wed Jan 02 2013 Petr Pisar - 1.5019-1 +- 1.5019 bump + +* Wed Sep 19 2012 Jitka Plesnikova - 1.5018-1 +- 1.5018 bump + +* Fri Jul 20 2012 Jitka Plesnikova - 1.5017-1 +- 1.5017 bump + +* Fri Jul 20 2012 Fedora Release Engineering - 1.5015-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Thu Jun 28 2012 Petr Pisar - 1.5015-2 +- Perl 5.16 rebuild + +* Mon Jun 25 2012 Petr Šabata - 1.5015-1 +- 1.5015 bump + +* Wed Jun 13 2012 Petr Šabata - 1.5014-1 +- 1.5014 bump +- Drop command macros + +* Mon Jun 11 2012 Petr Pisar - 1.5013-2 +- Perl 5.16 rebuild + +* Mon May 14 2012 Jitka Plesnikova - 1.5013-1 +- 1.5013 bump + +* Fri Apr 13 2012 Petr Šabata - 1.5011-1 +- 1.5011 bump + +* Tue Apr 03 2012 Petr Šabata - 1.5010-1 +- 1.5010 bump + +* Mon Mar 19 2012 Marcela Mašláňová 1.5008-1 +- bump to 1.5008 + +* Fri Jan 13 2012 Fedora Release Engineering - 1.5007-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Wed Dec 21 2011 Marcela Mašláňová 1.5007-1 +- 1.5007 bump + +* Wed Nov 30 2011 Petr Šabata - 1.5006-1 +- 1.5006 bump + +* Wed Nov 23 2011 Petr Šabata - 1.5005-1 +- 1.5005 bump +- defattr removed + +* Wed Nov 09 2011 Petr Sabata - 1.5004-1 +- 1.5004 bump + +* Wed Oct 19 2011 Petr Sabata - 1.5003-1 +- 1.5003 bump + +* Tue Oct 18 2011 Petr Sabata - 1.5002-1 +- 1.5002 bump + +* Fri Oct 14 2011 Petr Sabata - 1.5001-1 +- 1.5001 bump + +* Thu Oct 13 2011 Petr Sabata - 1.5000-1 +- 1.5000 bump + +* Fri Jul 22 2011 Petr Pisar - 1.4008-3 +- RPM 4.9 dependency filtering added + +* Fri Jun 17 2011 Marcela Mašláňová - 1.4008-2 +- Perl mass rebuild + +* Thu Jun 16 2011 Petr Pisar - 1.4008-1 +- 1.4008 bump + +* Wed May 18 2011 Petr Pisar - 1.4007-1 +- 1.4007 bump +- LWP is optional since this package bundles HTTP::Tiny. Upstream recognized + LWP being heavy. Follow upstream decision in RPM package dependencies. + +* Tue May 17 2011 Petr Pisar - 1.4006-1 +- 1.4006 bump +- Fix obsoleted version string + +* Thu May 12 2011 Petr Sabata - 1.4005-1 +- 1.4005 bump + +* Fri Mar 11 2011 Petr Sabata - 1.4004-1 +- 1.4004 bump + +* Thu Mar 10 2011 Petr Pisar - 1.4003-1 +- 1.4003 bump + +* Tue Mar 08 2011 Petr Pisar - 1.4000-1 +- 1.4000 bump + +* Fri Mar 04 2011 Petr Pisar - 1.3001-1 +- 1.3001 bump + +* Thu Mar 03 2011 Petr Pisar - 1.3000-1 +- 1.3000 bump +- Clean up spec file +- Require modules needed by cpanm +- Merge cpanminus into main package as cpanminus required main package and + main package did not contain any code (i.e. was useless). + +* Thu Feb 17 2011 Petr Sabata - 1.2001-1 +- 1.2001 bump + +* Tue Feb 08 2011 Fedora Release Engineering - 1.1008-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Thu Jan 27 2011 Petr Pisar - 1.1008-1 +- 1.1008 bump + +* Mon Jan 24 2011 Petr Pisar - 1.1007-1 +- 1.1007 bump + +* Mon Jan 3 2011 Petr Sabata - 1.1006-1 +- 1.1006 bump + +* Thu Dec 2 2010 Petr Sabata - 1.1004-1 +- 1.1004 bump + +* Fri Nov 19 2010 Petr Pisar - 1.1002-1 +- 1.1002 bump + +* Mon Sep 27 2010 Petr Pisar - 1.0015-1 +- 1.0015 bump + +* Thu Sep 23 2010 Petr Pisar - 1.0014-1 +- 1.0014 bump + +* Tue Sep 14 2010 Petr Pisar - 1.0013-1 +- 1.0013 bump +- Correct description spelling + +* Thu Apr 29 2010 Marcela Maslanova - 0.9935-3 +- Mass rebuild with perl-5.12.0 + +* Tue Mar 16 2010 Marcela Mašláňová 0.9935-2 +- filter unwanted requires + +* Tue Mar 16 2010 Marcela Mašláňová 0.9935-1 +- update + +* Tue Mar 16 2010 Marcela Mašláňová 0.9923-1 +- update +- create sub-package + +* Tue Mar 2 2010 Marcela Mašláňová 0.9911-1 +- new version & fix description + +* Tue Feb 23 2010 Marcela Mašláňová 0.09-1 +- Specfile autogenerated by cpanspec 1.78.