You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
225 lines
9.8 KiB
225 lines
9.8 KiB
## |
|
## perl-module.spec -- OpenPKG RPM Package Specification |
|
## Copyright (c) 2000-2007 OpenPKG Foundation e.V. <http://openpkg.net/> |
|
## Copyright (c) 2000-2007 Ralf S. Engelschall <http://engelschall.com/> |
|
## |
|
## Permission to use, copy, modify, and distribute this software for |
|
## any purpose with or without fee is hereby granted, provided that |
|
## the above copyright notice and this permission notice appear in all |
|
## copies. |
|
## |
|
## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED |
|
## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
|
## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
|
## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR |
|
## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
|
## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
|
## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF |
|
## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
|
## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
|
## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT |
|
## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
|
## SUCH DAMAGE. |
|
## |
|
|
|
# NOTICE: This is some sort of a Perl module bootstrapping package. |
|
# Hence keep this package as small as possible and especially make |
|
# sure that its modules do *NOT* depend on anything which is not |
|
# shipped with the standard Perl distribution. |
|
|
|
# versions of individual parts |
|
%define V_perl 5.8.8 |
|
%define V_extutils_depends 0.205 |
|
%define V_extutils_pkgconfig 1.07 |
|
%define V_extutils_modulemaker 0.47 |
|
%define V_extutils_makemaker 6.30 |
|
%define V_module_scandeps 0.70 |
|
%define V_module_build 0.2806 |
|
%define V_module_corelist 2.09 |
|
%define V_module_info 0.30 |
|
%define V_module_locate 1.7 |
|
%define V_module_pluggable 3.4 |
|
%define V_module_pluggable_ordered 1.5 |
|
%define V_class_inspector 1.16 |
|
%define V_cpan 1.8802 |
|
%define V_cpan_wait 0.27-2 |
|
%define V_version 0.6701 |
|
|
|
# package information |
|
Name: perl-module |
|
Summary: Perl Modules for use with Perl Archive |
|
URL: http://www.cpan.org/ |
|
Vendor: Perl Community |
|
Packager: OpenPKG Foundation e.V. |
|
Distribution: OpenPKG Community |
|
Class: BASE |
|
Group: Perl |
|
License: GPL/Artistic |
|
Version: %{V_perl} |
|
Release: 20061216 |
|
|
|
# list of sources |
|
Source0: http://www.cpan.org/modules/by-module/ExtUtils/ExtUtils-Depends-%{V_extutils_depends}.tar.gz |
|
Source1: http://www.cpan.org/modules/by-module/ExtUtils/ExtUtils-PkgConfig-%{V_extutils_pkgconfig}.tar.gz |
|
Source2: http://www.cpan.org/modules/by-module/ExtUtils/ExtUtils-ModuleMaker-%{V_extutils_modulemaker}.tar.gz |
|
Source3: http://www.cpan.org/modules/by-module/ExtUtils/ExtUtils-MakeMaker-%{V_extutils_makemaker}.tar.gz |
|
Source4: http://www.cpan.org/modules/by-module/Module/Module-ScanDeps-%{V_module_scandeps}.tar.gz |
|
Source5: http://www.cpan.org/modules/by-module/Module/Module-Build-%{V_module_build}.tar.gz |
|
Source6: http://www.cpan.org/modules/by-module/Module/Module-CoreList-%{V_module_corelist}.tar.gz |
|
Source7: http://www.cpan.org/authors/id/M/MB/MBARBON/Module-Info-%{V_module_info}.tar.gz |
|
Source8: http://www.cpan.org/modules/by-module/Module/Module-Locate-%{V_module_locate}.tar.gz |
|
Source9: http://www.cpan.org/modules/by-module/Class/Class-Inspector-%{V_class_inspector}.tar.gz |
|
Source10: http://www.cpan.org/modules/by-module/Module/Module-Pluggable-%{V_module_pluggable}.tar.gz |
|
Source11: http://www.cpan.org/modules/by-module/Module/Module-Pluggable-Ordered-%{V_module_pluggable_ordered}.tar.gz |
|
Source12: http://www.cpan.org/modules/by-module/CPAN/CPAN-%{V_cpan}.tar.gz |
|
Source13: http://www.cpan.org/modules/by-module/CPAN/CPAN-WAIT-%{V_cpan_wait}.tar.gz |
|
Source14: http://www.cpan.org/authors/id/J/JP/JPEACOCK/version-%{V_version}.tar.gz |
|
Patch0: perl-module.patch |
|
|
|
# build information |
|
Prefix: %{l_prefix} |
|
BuildRoot: %{l_buildroot} |
|
BuildPreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20051031 |
|
PreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl} |
|
AutoReq: no |
|
AutoReqProv: no |
|
|
|
%description |
|
Perl modules for use with networks: |
|
- ExtUtils::Depends (%{V_extutils_depends}) |
|
- ExtUtils::PkgConfig (%{V_extutils_pkgconfig}) |
|
- ExtUtils::ModuleMaker (%{V_extutils_modulemaker}) |
|
- ExtUtils::MakeMaker (%{V_extutils_makemaker}) |
|
- Module::ScanDeps (%{V_module_scandeps}) |
|
- Module::Build (%{V_module_build}) |
|
- Module::CoreList (%{V_module_corelist}) |
|
- Module::Info (%{V_module_info}) |
|
- Module::Locate (%{V_module_locate}) |
|
- Module::Pluggable (%{V_module_pluggable}) |
|
- Module::Pluggable::Ordered (%{V_module_pluggable_ordered}) |
|
- Class::Inspector (%{V_class_inspector}) |
|
- CPAN (%{V_cpan}) |
|
- CPAN::WAIT (%{V_cpan_wait}) |
|
- version (%{V_version}) |
|
|
|
%track |
|
prog perl-module:ExtUtils-Depends = { |
|
version = %{V_extutils_depends} |
|
url = http://www.cpan.org/modules/by-module/ExtUtils/ |
|
regex = ExtUtils-Depends-(__VER__)\.tar\.gz |
|
} |
|
prog perl-module:ExtUtils-PkgConfig = { |
|
version = %{V_extutils_pkgconfig} |
|
url = http://www.cpan.org/modules/by-module/ExtUtils/ |
|
regex = ExtUtils-PkgConfig-(__VER__)\.tar\.gz |
|
} |
|
prog perl-module:ExtUtils-ModuleMaker = { |
|
version = %{V_extutils_modulemaker} |
|
url = http://www.cpan.org/modules/by-module/ExtUtils/ |
|
regex = ExtUtils-ModuleMaker-(\d+\.\d\d)\.tar\.gz |
|
} |
|
prog perl-module:Module-ScanDeps = { |
|
version = %{V_module_scandeps} |
|
url = http://www.cpan.org/modules/by-module/Module/ |
|
regex = Module-ScanDeps-(__VER__)\.tar\.gz |
|
} |
|
prog perl-module:Module-Build = { |
|
version = %{V_module_build} |
|
url = http://www.cpan.org/modules/by-module/Module/ |
|
regex = Module-Build-(__VER__)\.tar\.gz |
|
} |
|
prog perl-module:Module-CoreList = { |
|
version = %{V_module_corelist} |
|
url = http://www.cpan.org/modules/by-module/Module/ |
|
regex = Module-CoreList-(__VER__)\.tar\.gz |
|
} |
|
prog perl-module:Module-Info = { |
|
version = %{V_module_info} |
|
url = http://www.cpan.org/authors/id/M/MB/MBARBON/ |
|
regex = Module-Info-(__VER__)\.tar\.gz |
|
} |
|
prog perl-module:Module-Locate = { |
|
version = %{V_module_locate} |
|
url = http://www.cpan.org/modules/by-module/Module/ |
|
regex = Module-Locate-(__VER__)\.tar\.gz |
|
} |
|
prog perl-module:Module-Pluggable = { |
|
version = %{V_module_pluggable} |
|
url = http://www.cpan.org/modules/by-module/Module/ |
|
regex = Module-Pluggable-(__VER__)\.tar\.gz |
|
} |
|
prog perl-module:Module-Pluggable-Ordered = { |
|
version = %{V_module_pluggable_ordered} |
|
url = http://www.cpan.org/modules/by-module/Module/ |
|
regex = Module-Pluggable-Ordered-(__VER__)\.tar\.gz |
|
} |
|
prog perl-module:Class-Inspector = { |
|
version = %{V_class_inspector} |
|
url = http://www.cpan.org/modules/by-module/Class/ |
|
regex = Class-Inspector-(__VER__)\.tar\.gz |
|
} |
|
prog perl-module:CPAN = { |
|
version = %{V_cpan} |
|
url = http://www.cpan.org/modules/by-module/CPAN/ |
|
regex = CPAN-(__VER__)\.tar\.gz |
|
} |
|
prog perl-module:CPAN-WAIT = { |
|
version = %{V_cpan_wait} |
|
url = http://www.cpan.org/modules/by-module/CPAN/ |
|
regex = CPAN-WAIT-(__VER__)\.tar\.gz |
|
} |
|
prog perl-module:version = { |
|
version = %{V_version} |
|
url = http://www.cpan.org/authors/id/J/JP/JPEACOCK/ |
|
regex = version-(__VER__)\.tar\.gz |
|
} |
|
|
|
%prep |
|
%setup -q -c |
|
%setup -q -T -D -a 1 |
|
%setup -q -T -D -a 2 |
|
%setup -q -T -D -a 3 |
|
%setup -q -T -D -a 4 |
|
%setup -q -T -D -a 5 |
|
%setup -q -T -D -a 6 |
|
%setup -q -T -D -a 7 |
|
%setup -q -T -D -a 8 |
|
%setup -q -T -D -a 9 |
|
%setup -q -T -D -a 10 |
|
%setup -q -T -D -a 11 |
|
%setup -q -T -D -a 12 |
|
%setup -q -T -D -a 13 |
|
%setup -q -T -D -a 14 |
|
%patch -p0 |
|
|
|
%build |
|
|
|
%install |
|
rm -rf $RPM_BUILD_ROOT |
|
%{l_prefix}/bin/perl-openpkg prepare |
|
%{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install |
|
%{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install |
|
%{l_prefix}/bin/perl-openpkg -d %{SOURCE2} configure build install |
|
%{l_prefix}/bin/perl-openpkg -d %{SOURCE3} configure build install |
|
%{l_prefix}/bin/perl-openpkg -d %{SOURCE4} configure build install |
|
%{l_prefix}/bin/perl-openpkg -d %{SOURCE5} configure build install |
|
%{l_prefix}/bin/perl-openpkg -d %{SOURCE6} configure build install |
|
%{l_prefix}/bin/perl-openpkg -d %{SOURCE7} configure build install |
|
%{l_prefix}/bin/perl-openpkg -d %{SOURCE8} configure build install |
|
%{l_prefix}/bin/perl-openpkg -d %{SOURCE9} configure build install |
|
%{l_prefix}/bin/perl-openpkg -d %{SOURCE10} configure build install |
|
%{l_prefix}/bin/perl-openpkg -d %{SOURCE11} configure build install |
|
%{l_prefix}/bin/perl-openpkg -d %{SOURCE12} configure build install |
|
%{l_prefix}/bin/perl-openpkg -d %{SOURCE13} configure build install |
|
%{l_prefix}/bin/perl-openpkg -d %{SOURCE14} configure build install |
|
%{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup |
|
rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/{cpan,instmodsh} |
|
mv $RPM_BUILD_ROOT%{l_prefix}/bin/scandeps.pl \ |
|
$RPM_BUILD_ROOT%{l_prefix}/bin/scandeps |
|
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files` |
|
|
|
%files -f files |
|
|
|
%clean |
|
rm -rf $RPM_BUILD_ROOT |
|
|
|
|