75 lines
2.1 KiB
RPMSpec
75 lines
2.1 KiB
RPMSpec
Name: perl-CPAN-Common-Index
|
|
Version: 0.010
|
|
Release: 1
|
|
Summary: Common library for searching CPAN modules, authors and distributions
|
|
License: Apache-2.0
|
|
URL: https://metacpan.org/release/CPAN-Common-Index
|
|
Source0: https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/CPAN-Common-Index-%{version}.tar.gz
|
|
BuildArch: noarch
|
|
# Build
|
|
BuildRequires: coreutils
|
|
BuildRequires: make
|
|
BuildRequires: perl-interpreter
|
|
BuildRequires: perl-generators
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
|
BuildRequires: perl(strict)
|
|
BuildRequires: perl(warnings)
|
|
# Runtime
|
|
BuildRequires: perl(Carp)
|
|
BuildRequires: perl(Class::Tiny)
|
|
BuildRequires: perl(CPAN::DistnameInfo)
|
|
BuildRequires: perl(CPAN::Meta::YAML)
|
|
BuildRequires: perl(File::Basename)
|
|
BuildRequires: perl(File::Copy)
|
|
BuildRequires: perl(File::Fetch)
|
|
BuildRequires: perl(File::Spec)
|
|
BuildRequires: perl(File::stat)
|
|
BuildRequires: perl(File::Temp) >= 0.19
|
|
BuildRequires: perl(HTTP::Tiny)
|
|
BuildRequires: perl(Module::Load)
|
|
BuildRequires: perl(parent)
|
|
BuildRequires: perl(Search::Dict) >= 1.07
|
|
BuildRequires: perl(Tie::Handle::SkipHeader)
|
|
BuildRequires: perl(URI)
|
|
# Optional run-time:
|
|
BuildRequires: perl(IO::Uncompress::Gunzip)
|
|
# Tests only
|
|
BuildRequires: perl(Cwd)
|
|
BuildRequires: perl(Exporter)
|
|
BuildRequires: perl(File::Spec::Functions)
|
|
BuildRequires: perl(lib)
|
|
BuildRequires: perl(Test::Deep)
|
|
BuildRequires: perl(Test::FailWarnings)
|
|
BuildRequires: perl(Test::Fatal)
|
|
BuildRequires: perl(Test::More) >= 0.96
|
|
Recommends: perl(IO::Uncompress::Gunzip)
|
|
|
|
%description
|
|
This module provides a common library for working with a variety of CPAN
|
|
index services. It is intentionally minimalist, trying to use as few non-
|
|
core modules as possible.
|
|
|
|
%prep
|
|
%setup -q -n CPAN-Common-Index-%{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 CONTRIBUTING.mkdn README Todo examples
|
|
%{perl_vendorlib}/*
|
|
%{_mandir}/man3/*
|
|
|
|
%changelog
|
|
* Wed Jul 12 2023 leeffo <liweiganga@uniontech.com> - 0.010-1
|
|
- init package
|