Blame SPECS/perl-CPANPLUS.spec

ecc8c8
%global cpan_version 0.9138
ecc8c8
Name:           perl-CPANPLUS
ecc8c8
# Keep 2-digit major varion to compete with perl.spec for history
ecc8c8
Version:        %(echo '%{cpan_version}' | sed 's/\(\...\)/\1./')
518e70
Release:        4%{?dist}
ecc8c8
Summary:        Ameliorated interface to the Comprehensive Perl Archive Network
ecc8c8
License:        GPL+ or Artistic
ecc8c8
Group:          Development/Libraries
ecc8c8
URL:            http://search.cpan.org/dist/CPANPLUS/
ecc8c8
Source0:        http://www.cpan.org/authors/id/B/BI/BINGOS/CPANPLUS-%{cpan_version}.tar.gz
518e70
# Do not download 03modlist.data.gz, bug #1035782, CPAN RT#91273, in 0.9144
518e70
Patch0:         CPANPLUS-0.9142-RT-91273-Useless-downloading-03modlist.data.gz.patch
ecc8c8
BuildArch:      noarch
ecc8c8
BuildRequires:  perl
ecc8c8
BuildRequires:  perl(Config)
ecc8c8
BuildRequires:  perl(constant)
ecc8c8
BuildRequires:  perl(File::Copy)
ecc8c8
BuildRequires:  perl(File::Spec)
ecc8c8
BuildRequires:  perl(FindBin)
ecc8c8
BuildRequires:  perl(Getopt::Long)
ecc8c8
%if %{defined perl_bootstrap}
ecc8c8
BuildRequires:  perl(ExtUtils::MakeMaker)
ecc8c8
# ExtUtils::Manifest not used
ecc8c8
BuildRequires:  perl(ExtUtils::MM_Unix)
ecc8c8
# Module::Build not used
ecc8c8
# YAML not used
ecc8c8
%else
ecc8c8
BuildRequires:  perl(inc::Module::Install)
ecc8c8
%endif
ecc8c8
BuildRequires:  perl(lib)
ecc8c8
BuildRequires:  perl(Locale::Maketext::Simple)
ecc8c8
BuildRequires:  perl(Module::Loaded)
ecc8c8
# Run-time:
ecc8c8
BuildRequires:  perl(Archive::Extract)
ecc8c8
BuildRequires:  perl(base)
ecc8c8
BuildRequires:  perl(Carp)
ecc8c8
BuildRequires:  perl(Cwd)
ecc8c8
BuildRequires:  perl(Data::Dumper)
ecc8c8
BuildRequires:  perl(DBD::SQLite)
ecc8c8
BuildRequires:  perl(DBIx::Simple)
ecc8c8
BuildRequires:  perl(Exporter)
ecc8c8
BuildRequires:  perl(IPC::Cmd)
ecc8c8
BuildRequires:  perl(File::Basename)
ecc8c8
BuildRequires:  perl(File::Fetch)
ecc8c8
BuildRequires:  perl(File::Find)
ecc8c8
BuildRequires:  perl(File::Glob)
ecc8c8
BuildRequires:  perl(FileHandle)
ecc8c8
BuildRequires:  perl(File::Path)
ecc8c8
BuildRequires:  perl(File::Spec::Unix)
ecc8c8
BuildRequires:  perl(File::stat)
ecc8c8
BuildRequires:  perl(File::Temp)
ecc8c8
BuildRequires:  perl(Log::Message)
ecc8c8
BuildRequires:  perl(Module::CoreList) >= 2.22
ecc8c8
BuildRequires:  perl(Module::Load)
ecc8c8
BuildRequires:  perl(Module::Load::Conditional)
ecc8c8
BuildRequires:  perl(Module::Pluggable)
ecc8c8
BuildRequires:  perl(Object::Accessor)
ecc8c8
BuildRequires:  perl(overload)
ecc8c8
BuildRequires:  perl(Package::Constants)
ecc8c8
BuildRequires:  perl(Params::Check)
ecc8c8
BuildRequires:  perl(Parse::CPAN::Meta)
ecc8c8
BuildRequires:  perl(strict)
ecc8c8
BuildRequires:  perl(Term::ReadLine)
ecc8c8
BuildRequires:  perl(Term::UI)
ecc8c8
BuildRequires:  perl(Tie::Hash)
ecc8c8
BuildRequires:  perl(Time::Local)
ecc8c8
BuildRequires:  perl(vars)
ecc8c8
BuildRequires:  perl(version)
ecc8c8
BuildRequires:  perl(warnings)
ecc8c8
# Tests:
ecc8c8
BuildRequires:  perl(Test::More)
ecc8c8
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
ecc8c8
# lib/CPANPLUS/Internals.pm:465
ecc8c8
Requires:       perl(File::Glob)
ecc8c8
# lib/CPANPLUS/Internals/Utils.pm:68
ecc8c8
Requires:       perl(File::Path)
ecc8c8
# lib/CPANPLUS/Internals/Utils.pm:323
ecc8c8
Requires:       perl(File::stat)
ecc8c8
# bin/cpanp-boxed:10
ecc8c8
Requires:       perl(FindBin)
ecc8c8
# lib/CPANPLUS/Module.pm:477
ecc8c8
Requires:       perl(Module::CoreList) >= 2.22
ecc8c8
# lib/CPANPLUS/Configure.pm:181
ecc8c8
Requires:       perl(Module::Pluggable)
ecc8c8
ecc8c8
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\((Your::Module::Here|Test)\\)
ecc8c8
ecc8c8
%description
ecc8c8
The CPANPLUS library is an API to the CPAN mirrors and a collection of
ecc8c8
interactive shells, command line programs, etc., that use this API.
ecc8c8
ecc8c8
%prep
ecc8c8
%setup -q -n CPANPLUS-%{cpan_version}
518e70
%patch0 -p1
ecc8c8
# Remove bundled modules
ecc8c8
%if !%{defined perl_bootstrap}
ecc8c8
rm -rf inc
ecc8c8
sed -i -e '/^inc\//d' MANIFEST
ecc8c8
%else
ecc8c8
rm -rf inc/bundle
ecc8c8
sed -i -e '/^inc\/bundle\//d' MANIFEST
ecc8c8
%endif
ecc8c8
# Fix shebangs
ecc8c8
sed -i -e '1i#!%{__perl}' bin/cpanp-run-perl
ecc8c8
ecc8c8
%build
ecc8c8
perl Makefile.PL INSTALLDIRS=vendor
ecc8c8
make %{?_smp_mflags}
ecc8c8
ecc8c8
%install
ecc8c8
make pure_install DESTDIR=$RPM_BUILD_ROOT
ecc8c8
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
ecc8c8
%{_fixperms} $RPM_BUILD_ROOT/*
ecc8c8
ecc8c8
%check
ecc8c8
make test
ecc8c8
ecc8c8
%files
ecc8c8
%doc ChangeLog README
ecc8c8
%{_bindir}/*
ecc8c8
%{perl_vendorlib}/*
ecc8c8
%{_mandir}/man1/*
ecc8c8
%{_mandir}/man3/*
ecc8c8
ecc8c8
%changelog
518e70
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.91.38-4
518e70
- Mass rebuild 2013-12-27
518e70
518e70
* Wed Dec 11 2013 Petr Pisar <ppisar@redhat.com> - 0.91.38-3
518e70
- Do not download 03modlist.data.gz (bug #1035782)
518e70
ecc8c8
* Fri Jul 12 2013 Petr Pisar <ppisar@redhat.com> - 0.91.38-2
ecc8c8
- Specify all dependencies
ecc8c8
ecc8c8
* Tue May 21 2013 Petr Pisar <ppisar@redhat.com> - 0.91.38-1
ecc8c8
- 0.9138 bump
ecc8c8
ecc8c8
* Mon Apr 29 2013 Petr Pisar <ppisar@redhat.com> - 0.91.36-1
ecc8c8
- 0.9136 bump
ecc8c8
ecc8c8
* Thu Apr 04 2013 Petr Pisar <ppisar@redhat.com> - 0.91.34-2
ecc8c8
- Keep bundled inc::Module::Install modules at boot-strap (bug #947489)
ecc8c8
ecc8c8
* Thu Jan 24 2013 Petr Pisar <ppisar@redhat.com> 0.91.34-1
ecc8c8
- Specfile autogenerated by cpanspec 1.78.