[perl-Devel-DProf] Import

Petr Pisar ppisar at fedoraproject.org
Thu Jun 28 12:39:41 UTC 2012


commit c3c70a9018dd3dbce19fbd044a2dc9c732300890
Author: Petr Písař <ppisar at redhat.com>
Date:   Thu Jun 28 14:39:21 2012 +0200

    Import

 .gitignore                                         |    1 +
 ...round-static-XS_Devel__DProf_END-mismatch.patch |   23 ++++++++
 perl-Devel-DProf.spec                              |   60 ++++++++++++++++++++
 sources                                            |    1 +
 4 files changed, 85 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..1d8a762 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Devel-DProf-20110802.00.tar.gz
diff --git a/Devel-DProf-20110802.00-Work-around-static-XS_Devel__DProf_END-mismatch.patch b/Devel-DProf-20110802.00-Work-around-static-XS_Devel__DProf_END-mismatch.patch
new file mode 100644
index 0000000..7a81c6c
--- /dev/null
+++ b/Devel-DProf-20110802.00-Work-around-static-XS_Devel__DProf_END-mismatch.patch
@@ -0,0 +1,23 @@
+From 658895c781a8f42752791e4d6f1b32423d1a36f6 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar at redhat.com>
+Date: Wed, 27 Jun 2012 17:18:48 +0200
+Subject: [PATCH] Work around static XS_Devel__DProf_END mismatch
+
+https://rt.cpan.org/Public/Bug/Display.html?id=70629
+---
+ DProf.xs |    1 +
+ 1 files changed, 1 insertions(+), 0 deletions(-)
+
+diff --git a/DProf.xs b/DProf.xs
+index a4bbb4b..9642010 100644
+--- a/DProf.xs
++++ b/DProf.xs
+@@ -1,4 +1,5 @@
+ #define PERL_NO_GET_CONTEXT
++#define PERL_EUPXS_ALWAYS_EXPORT /* Perl 5.16 makes XSUB static, RT #70629 */
+ #include "EXTERN.h"
+ #include "perl.h"
+ #include "XSUB.h"
+-- 
+1.7.7.6
+
diff --git a/perl-Devel-DProf.spec b/perl-Devel-DProf.spec
new file mode 100644
index 0000000..693337a
--- /dev/null
+++ b/perl-Devel-DProf.spec
@@ -0,0 +1,60 @@
+Name:           perl-Devel-DProf
+Version:        20110802.00
+Release:        1%{?dist}
+Summary:        Deprecated Perl code profiler
+License:        GPL+ or Artistic
+Group:          Development/Libraries
+URL:            http://search.cpan.org/dist/Devel-DProf/
+Source0:        http://www.cpan.org/authors/id/F/FL/FLORA/Devel-DProf-%{version}.tar.gz
+# Perl 5.16 compatibility, CPAN RT #70629
+Patch0:         Devel-DProf-20110802.00-Work-around-static-XS_Devel__DProf_END-mismatch.patch
+BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.30
+# Run-time
+BuildRequires:  perl(if)
+BuildRequires:  perl(XSLoader)
+# Tests:
+BuildRequires:  perl(Test::More)
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
+%{?perl_default_filter}
+
+%description
+The Devel::DProf package is a Perl code profiler. This will collect
+information on the execution time of a Perl script and of the subs in that
+script. This information can be used to determine which subroutines are
+using the most time and which subroutines are being called most often. This
+information can also be used to create an execution graph of the script,
+showing subroutine relationships.
+
+This module is deprecated and new users are advised to use Devel::NYTProf
+instead.
+
+%prep
+%setup -q -n Devel-DProf-%{version}
+%patch0 -p1
+
+%build
+%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
+make %{?_smp_mflags}
+
+%install
+make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
+find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
+find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
+find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
+%{_fixperms} $RPM_BUILD_ROOT/*
+
+%check
+make test
+
+%files
+%doc Changes LICENSE README Todo
+%{_bindir}/*
+%{perl_vendorarch}/auto/*
+%{perl_vendorarch}/Devel*
+%{_mandir}/man1/*
+%{_mandir}/man3/*
+
+%changelog
+* Mon Jun 25 2012 Petr Pisar <ppisar at redhat.com> 20110802.00-1
+- Restore perl 5.16 compatibility (CPAN RT #70629)
diff --git a/sources b/sources
index e69de29..54fbe0d 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+9b2f7782b43e57fc3c475691f5331443  Devel-DProf-20110802.00.tar.gz


More information about the scm-commits mailing list