diff --git a/Menlo-1.9019.tar.gz b/Menlo-1.9019.tar.gz new file mode 100644 index 0000000..416a344 Binary files /dev/null and b/Menlo-1.9019.tar.gz differ diff --git a/perl-Menlo.spec b/perl-Menlo.spec new file mode 100644 index 0000000..4bf5904 --- /dev/null +++ b/perl-Menlo.spec @@ -0,0 +1,75 @@ +Name: perl-Menlo +Version: 1.9019 +Release: 1 +Summary: A CPAN client +License: GPL-1.0-or-later OR Artistic-1.0-Perl +URL: https://metacpan.org/release/Menlo +Source0: https://cpan.metacpan.org/authors/id/M/MI/MIYAGAWA/Menlo-%{version}.tar.gz +BuildArch: noarch +# Build +BuildRequires: coreutils +BuildRequires: make +BuildRequires: perl-generators +BuildRequires: perl-interpreter +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 +BuildRequires: perl(strict) +BuildRequires: perl(warnings) +BuildRequires: sed +# Runtime +BuildRequires: perl(Class::Tiny) >= 1.001 +BuildRequires: perl(constant) +BuildRequires: perl(CPAN::Meta::Requirements) +BuildRequires: perl(Exporter) +BuildRequires: perl(File::Basename) +BuildRequires: perl(File::Find) +BuildRequires: perl(File::Path) +BuildRequires: perl(File::Spec) +BuildRequires: perl(Getopt::Long) >= 2.36 +# Tests only +BuildRequires: perl(Test::More) +Requires: git +Requires: perl(Class::Tiny) >= 1.001 +Requires: perl(CPAN::Common::Index) >= 0.006 +Requires: perl(CPAN::Meta) >= 2.132830 +Requires: perl(File::pushd) +Requires: perl(HTTP::Tiny) >= 0.054 +Requires: perl(HTTP::Tinyish) >= 0.04 +Requires: perl(Pod::Man) +Requires: perl(String::ShellQuote) +Requires: perl(TAP::Harness::Env) + +%{?perl_default_filter} + +%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(CPAN::Common::Index\\)$ +%global __requires_exclude :%__requires_exclude|^perl\\(CPAN::Meta\\)$ +%global __requires_exclude :%__requires_exclude|^perl\\(Class::Tiny\\)$ +%global __requires_exclude :%__requires_exclude|^perl\\(HTTP::Tiny\\)$ + +%description +Menlo is a code name for cpanm 2.0, developed with the goal to +replace cpanm and its back-end with a more flexible, extensible and +easier to use APIs. + +%prep +%setup -q -n Menlo-%{version} + +%build +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 +%{make_build} + +%install +%{make_install} +%{_fixperms} %{buildroot}/* + +%check +make test + +%files +%license LICENSE +%doc Changes README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Tue Feb 6 2024 Dongxing Wang - 1.9019-1 +- Initial package