[perl-Devel-Trace/el6/master] Initial package of perl-Devel-Trace.

Mathieu Bridon bochecha at fedoraproject.org
Tue Apr 26 04:22:48 UTC 2011


commit 88f8f3e38a24321fd66465e167c64800c0644954
Author: Mathieu Bridon <bochecha at fedoraproject.org>
Date:   Fri Apr 8 10:33:04 2011 +0800

    Initial package of perl-Devel-Trace.
    
    This package was submitted for review in Fedora on Fri Apr 08 2011:
        https://bugzilla.redhat.com/show_bug.cgi?id=694692

 perl-Devel-Trace-0.11-Uninteractive-tests.patch |   26 +++++++++
 perl-Devel-Trace.spec                           |   68 +++++++++++++++++++++++
 2 files changed, 94 insertions(+), 0 deletions(-)
---
diff --git a/perl-Devel-Trace-0.11-Uninteractive-tests.patch b/perl-Devel-Trace-0.11-Uninteractive-tests.patch
new file mode 100644
index 0000000..bb1ef45
--- /dev/null
+++ b/perl-Devel-Trace-0.11-Uninteractive-tests.patch
@@ -0,0 +1,26 @@
+From c4f11e1f91c0b867d1bf7df550352eeec7b33cd6 Mon Sep 17 00:00:00 2001
+From: Mathieu Bridon <bochecha at fedoraproject.org>
+Date: Thu, 20 Jan 2011 14:36:11 +0800
+Subject: [PATCH] Uninteractive tests.
+
+Tests are run at build time, and they ask the user to "press enter to continue".
+This is unacceptable at build time, and is fixed by this patch.
+---
+ test.pl |    2 --
+ 1 files changed, 0 insertions(+), 2 deletions(-)
+
+diff --git a/test.pl b/test.pl
+index 5a86221..951e426 100755
+--- a/test.pl
++++ b/test.pl
+@@ -15,7 +15,5 @@ open S, "< sample" or die "Couldn't open sample demo file: $!; aborting";
+ print while <S>;
+ close S;
+ print "\n";
+-print "Press enter to execute this file.  \n";
+-<STDIN>;
+ system("perl -I./blib/lib -d:Trace sample");
+ $? and die "Problem running sample program: $? exit status\n";
+-- 
+1.7.4.2
+
diff --git a/perl-Devel-Trace.spec b/perl-Devel-Trace.spec
new file mode 100644
index 0000000..0add238
--- /dev/null
+++ b/perl-Devel-Trace.spec
@@ -0,0 +1,68 @@
+Name:           perl-Devel-Trace
+Version:        0.11
+Release:        1%{?dist}
+Summary:        Print out each line before it is executed (like sh -x)
+License:        Public Domain
+Group:          Development/Libraries
+URL:            http://search.cpan.org/dist/Devel-Trace/
+Source0:        http://www.cpan.org/authors/id/M/MJ/MJD/Devel-Trace-%{version}.tar.gz
+Patch0:         perl-Devel-Trace-0.11-Uninteractive-tests.patch
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildArch:      noarch
+BuildRequires:  perl(ExtUtils::MakeMaker)
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
+
+%description
+If you run your program with perl -d:Trace program, this module will print
+a message to standard error just before each line is executed.
+
+This is something like the shell's -x option.
+
+
+%prep
+%setup -q -n Devel-Trace-%{version}
+%patch0 -p1
+
+# doc file must not be executable:
+#   -> http://fedoraproject.org/wiki/Packaging/Guidelines#Documentation
+chmod -x sample
+
+
+%build
+%{__perl} Makefile.PL INSTALLDIRS=vendor
+make %{?_smp_mflags}
+
+
+%install
+rm -rf %{buildroot}
+
+make pure_install PERL_INSTALL_ROOT=%{buildroot}
+
+find %{buildroot} -type f -name .packlist -exec rm -f {} \;
+find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
+
+%{_fixperms} %{buildroot}/*
+
+
+%check
+make test
+
+
+%clean
+rm -rf %{buildroot}
+
+
+%files
+%defattr(-,root,root,-)
+%doc Changes README sample
+%{perl_vendorlib}/*
+%{_mandir}/man3/*
+
+
+%changelog
+* Fri Apr 08 2011 Mathieu Bridon <bochecha at fedoraproject.org> 0.11-1
+- Specfile autogenerated by cpanspec 1.78.
+- Fixed the license (incorrectly guessed by cpanspec).
+- Patched the tests to make the build non interactive.
+- Removed dubious executable permission on a doc file.


More information about the scm-commits mailing list