Browse Source

add Benchmark::Timer

master
parent
commit
3c6d7bd87a
  1. 15
      perl-time/perl-time.spec

15
perl-time/perl-time.spec

@ -29,6 +29,7 @@
%define V_date_manip 5.40
%define V_date_calc 5.0
%define V_class_date 1.0.10
%define V_benchmark_timer 0.5
# package information
Name: perl-time
@ -39,8 +40,8 @@ Packager: The OpenPKG Project
Distribution: OpenPKG [EXP]
Group: Language
License: GPL/Artistic
Version: 20020517
Release: 20020517
Version: 20020527
Release: 20020527
# list of sources
Source0: http://www.cpan.org/modules/by-module/Date/TimeDate-%{V_time_date}.tar.gz
@ -48,6 +49,7 @@ Source1: http://www.cpan.org/modules/by-module/Time/Time-HiRes-%{V_time_hir
Source2: http://www.cpan.org/modules/by-module/Date/DateManip-%{V_date_manip}.tar.gz
Source3: http://www.cpan.org/modules/by-module/Date/Date-Calc-%{V_date_calc}.tar.gz
Source4: http://hacks.dlux.hu/Class-Date/download/Class-Date-%{V_class_date}.tar.gz
Source5: http://www.cpan.org/authors/id/A/AN/ANDREWHO/Benchmark-Timer-%{V_benchmark_timer}.tar.gz
# build information
Prefix: %{l_prefix}
@ -64,6 +66,7 @@ AutoReqProv: no
- Date::Manip (%{V_date_manip})
- Date::Calc (%{V_date_calc})
- Class::Date (%{V_class_date})
- Benchmark::Timer (%{V_benchmark_timer})
%prep
%setup0 -q -c -n %{name}-%{version}
@ -71,6 +74,7 @@ AutoReqProv: no
%setup2 -q -T -D -a 2
%setup3 -q -T -D -a 3
%setup4 -q -T -D -a 4
%setup5 -q -T -D -a 5
%build
@ -133,6 +137,13 @@ AutoReqProv: no
$make $makeargs install
)
# build Benchmark::Timer
( cd Benchmark-Timer-%{V_benchmark_timer}
$perl Makefile.PL $perlargs
$make $makeargs all
$make $makeargs install
)
# hack out the Date::Calc doc conflicts
rm -f $RPM_BUILD_ROOT%{l_prefix}/man/man3/Carp::Clan.3

Loading…
Cancel
Save