1 | %global cpan_version 0.9172
|
---|
2 | Name: perl-CPANPLUS
|
---|
3 | Version: 0.917.200
|
---|
4 | Release: 1%{?dist}
|
---|
5 | Summary: Ameliorated interface to the Comprehensive Perl Archive Network
|
---|
6 | # Other files: GPL_ or Artistic
|
---|
7 | ## Unbundled, not used
|
---|
8 | # inc/bundle/Locale/Maketext/Simple.pm: MIT
|
---|
9 | License: GPL+ or Artistic
|
---|
10 | Vendor: bww bitwise works GmbH
|
---|
11 | URL: http://search.cpan.org/dist/CPANPLUS/
|
---|
12 | Source0: http://www.cpan.org/authors/id/B/BI/BINGOS/CPANPLUS-%{cpan_version}.tar.gz
|
---|
13 | BuildArch: noarch
|
---|
14 | BuildRequires: coreutils
|
---|
15 | BuildRequires: make
|
---|
16 | BuildRequires: perl-generators
|
---|
17 | #BuildRequires: perl-interpreter
|
---|
18 | BuildRequires: perl(Config)
|
---|
19 | BuildRequires: perl(constant)
|
---|
20 | BuildRequires: perl(File::Spec)
|
---|
21 | BuildRequires: perl(FindBin)
|
---|
22 | BuildRequires: perl(Getopt::Long)
|
---|
23 | %if %{defined perl_bootstrap}
|
---|
24 | BuildRequires: perl(ExtUtils::MakeMaker) >= 6.63
|
---|
25 | # ExtUtils::Manifest not used
|
---|
26 | BuildRequires: perl(ExtUtils::MM_Unix)
|
---|
27 | # Module::Build not used
|
---|
28 | # YAML not used
|
---|
29 | %else
|
---|
30 | BuildRequires: perl(inc::Module::Install)
|
---|
31 | %endif
|
---|
32 | BuildRequires: perl(lib)
|
---|
33 | BuildRequires: perl(Locale::Maketext::Simple)
|
---|
34 | BuildRequires: perl(Module::Loaded)
|
---|
35 | BuildRequires: sed
|
---|
36 | # Run-time:
|
---|
37 | BuildRequires: perl(Archive::Extract)
|
---|
38 | BuildRequires: perl(base)
|
---|
39 | BuildRequires: perl(Carp)
|
---|
40 | BuildRequires: perl(Cwd)
|
---|
41 | BuildRequires: perl(Data::Dumper)
|
---|
42 | BuildRequires: perl(DBD::SQLite)
|
---|
43 | BuildRequires: perl(DBIx::Simple)
|
---|
44 | BuildRequires: perl(Exporter)
|
---|
45 | BuildRequires: perl(IPC::Cmd)
|
---|
46 | BuildRequires: perl(File::Basename)
|
---|
47 | BuildRequires: perl(File::Copy)
|
---|
48 | BuildRequires: perl(File::Fetch)
|
---|
49 | BuildRequires: perl(File::Find)
|
---|
50 | BuildRequires: perl(File::Glob)
|
---|
51 | BuildRequires: perl(FileHandle)
|
---|
52 | BuildRequires: perl(File::Path)
|
---|
53 | BuildRequires: perl(File::Spec::Unix)
|
---|
54 | BuildRequires: perl(File::stat)
|
---|
55 | BuildRequires: perl(File::Temp)
|
---|
56 | BuildRequires: perl(Log::Message)
|
---|
57 | BuildRequires: perl(Module::CoreList) >= 2.22
|
---|
58 | BuildRequires: perl(Module::Load)
|
---|
59 | BuildRequires: perl(Module::Load::Conditional)
|
---|
60 | BuildRequires: perl(Module::Pluggable)
|
---|
61 | BuildRequires: perl(Object::Accessor)
|
---|
62 | BuildRequires: perl(overload)
|
---|
63 | BuildRequires: perl(Package::Constants)
|
---|
64 | BuildRequires: perl(Params::Check)
|
---|
65 | BuildRequires: perl(Parse::CPAN::Meta)
|
---|
66 | BuildRequires: perl(strict)
|
---|
67 | BuildRequires: perl(Term::ReadLine)
|
---|
68 | BuildRequires: perl(Term::UI)
|
---|
69 | BuildRequires: perl(Tie::Hash)
|
---|
70 | BuildRequires: perl(Time::Local)
|
---|
71 | BuildRequires: perl(vars)
|
---|
72 | BuildRequires: perl(version)
|
---|
73 | BuildRequires: perl(warnings)
|
---|
74 | # Tests:
|
---|
75 | #BuildRequires: perl(Test::More)
|
---|
76 | #Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
---|
77 | # lib/CPANPLUS/Internals.pm:465
|
---|
78 | #Requires: perl(File::Glob)
|
---|
79 | # File::Path not found in lib/CPANPLUS/Internals/Utils.pm:68 and
|
---|
80 | # generated from lib/CPANPLUS/Internals/Extract.pm
|
---|
81 | # lib/CPANPLUS/Internals/Utils.pm:323
|
---|
82 | #Requires: perl(File::stat)
|
---|
83 | # bin/cpanp-boxed:10
|
---|
84 | #Requires: perl(FindBin)
|
---|
85 | # lib/CPANPLUS/Module.pm:477
|
---|
86 | #Requires: perl(Module::CoreList) >= 2.22
|
---|
87 | # lib/CPANPLUS/Configure.pm:181
|
---|
88 | #Requires: perl(Module::Pluggable)
|
---|
89 |
|
---|
90 | %global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\((Your::Module::Here|Test)\\)
|
---|
91 |
|
---|
92 | %description
|
---|
93 | The CPANPLUS library is an API to the CPAN mirrors and a collection of
|
---|
94 | interactive shells, command line programs, etc., that use this API.
|
---|
95 |
|
---|
96 | %prep
|
---|
97 | %setup -q -n CPANPLUS-%{cpan_version}
|
---|
98 | # Remove bundled modules
|
---|
99 | %if !%{defined perl_bootstrap}
|
---|
100 | rm -rf inc
|
---|
101 | sed -i -e '/^inc\//d' MANIFEST
|
---|
102 | %else
|
---|
103 | rm -rf inc/bundle
|
---|
104 | sed -i -e '/^inc\/bundle\//d' MANIFEST
|
---|
105 | %endif
|
---|
106 | # Add shebang
|
---|
107 | sed -i -e '1i#!perl' bin/cpanp-run-perl
|
---|
108 |
|
---|
109 | %build
|
---|
110 | perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
|
---|
111 | make %{?_smp_mflags}
|
---|
112 | make manifypods
|
---|
113 |
|
---|
114 | %install
|
---|
115 | make pure_install DESTDIR=$RPM_BUILD_ROOT
|
---|
116 | find %{buildroot} -type f -name .packlist -exec rm -f {} \;
|
---|
117 | %{_fixperms} $RPM_BUILD_ROOT/*
|
---|
118 |
|
---|
119 | %check
|
---|
120 | #make test %{?_smp_mflags}
|
---|
121 |
|
---|
122 | %files
|
---|
123 | %doc ChangeLog README
|
---|
124 | %{_bindir}/*
|
---|
125 | %{perl_vendorlib}/*
|
---|
126 | %{_mandir}/man1/*
|
---|
127 | %{_mandir}/man3/*
|
---|
128 |
|
---|
129 | %changelog
|
---|
130 | * Sun May 20 2018 Elbert Pol <elbert.pol@gmail.com> - 0.917.200-1
|
---|
131 | - initial rpm for OS2
|
---|