rpms/perl-Devel-Profiler/devel perl-Devel-Profiler.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Steven Pritchard (steve) fedora-extras-commits at redhat.com
Mon Jul 23 19:41:01 UTC 2007


Author: steve

Update of /cvs/pkgs/rpms/perl-Devel-Profiler/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv30032/devel

Modified Files:
	.cvsignore sources 
Added Files:
	perl-Devel-Profiler.spec 
Log Message:
Import.



--- NEW FILE perl-Devel-Profiler.spec ---
Name:           perl-Devel-Profiler
Version:        0.04
Release:        2%{?dist}
Summary:        Perl profiler compatible with dprofpp
License:        GPL or Artistic
Group:          Development/Libraries
URL:            http://search.cpan.org/dist/Devel-Profiler/
Source0:        http://www.cpan.org/authors/id/S/SA/SAMTREGAR/Devel-Profiler-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch:      noarch
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(Test::More)
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

%description
This module implements a Perl profiler that outputs profiling data in a
format compatible with dprofpp, Devel::DProf's profile analysis tool. It is
meant to be a drop-in replacement for Devel::DProf.

%prep
%setup -q -n Devel-Profiler-%{version}

# t/01basic fails.  This is the failing test:
#
# # make sure that regsitered at least 1 second of user time
# ($real, $sys, $user) = get_times();
# ok($user >= 1, "check user time >= 1 seconds");
#
# That test seems a bit bogus, unless I'm missing something.
%{__perl} -pi -e 's/^/#/ if /"check user time >= 1 second/;' \
    -e 's/^(use Test::More tests => )(\d+)/$1 . ($2-1)/e' t/01basic.t

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}

%install
rm -rf $RPM_BUILD_ROOT

make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT

find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;

%{_fixperms} $RPM_BUILD_ROOT/*

%check
make test

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*

%changelog
* Mon Jul 16 2007 Steven Pritchard <steve at kspei.com> 0.04-2
- BR ExtUtils::MakeMaker and Test::More.

* Wed Oct 18 2006 Steven Pritchard <steve at kspei.com> 0.04-1
- Specfile autogenerated by cpanspec 1.69.1.
- Fix License.
- Disable bogus test in t/01basic.t.


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/perl-Devel-Profiler/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	23 Jul 2007 17:53:35 -0000	1.1
+++ .cvsignore	23 Jul 2007 19:40:29 -0000	1.2
@@ -0,0 +1 @@
+Devel-Profiler-0.04.tar.gz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/perl-Devel-Profiler/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	23 Jul 2007 17:53:35 -0000	1.1
+++ sources	23 Jul 2007 19:40:29 -0000	1.2
@@ -0,0 +1 @@
+c52d615e3083defd2c71726f21b2127a  Devel-Profiler-0.04.tar.gz




More information about the fedora-extras-commits mailing list