[perl-Devel-Comments] Import

Petr Pisar ppisar at fedoraproject.org
Tue Dec 13 15:00:58 UTC 2011


commit c9fdab2584523f51aa5017995cb2e9704fd1984e
Author: Petr Písař <ppisar at redhat.com>
Date:   Tue Dec 13 16:00:50 2011 +0100

    Import

 .gitignore               |    1 +
 perl-Devel-Comments.spec |   68 ++++++++++++++++++++++++++++++++++++++++++++++
 sources                  |    1 +
 3 files changed, 70 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..5383b38 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Devel-Comments-v1.1.4.tar.gz
diff --git a/perl-Devel-Comments.spec b/perl-Devel-Comments.spec
new file mode 100644
index 0000000..39fdbc5
--- /dev/null
+++ b/perl-Devel-Comments.spec
@@ -0,0 +1,68 @@
+Name:           perl-Devel-Comments
+Version:        1.1.4
+Release:        1%{?dist}
+Summary:        Debug with executable smart comments to logs
+License:        GPL+ or Artistic
+Group:          Development/Libraries
+URL:            http://search.cpan.org/dist/Devel-Comments/
+Source0:        http://www.cpan.org/authors/id/X/XI/XIONG/developer-tools/Devel-Comments-v%{version}.tar.gz
+BuildArch:      noarch
+# Compile-time:
+BuildRequires:  perl(Module::Build)
+# Run-time:
+BuildRequires:  perl(Carp)
+BuildRequires:  perl(Data::Dumper)
+BuildRequires:  perl(Filter::Simple) >= 0.8
+BuildRequires:  perl(IO::Capture::Tie_STDx)
+BuildRequires:  perl(IO::Capture::Stdout)
+BuildRequires:  perl(List::Util)
+BuildRequires:  perl(Text::Balanced) >= 2
+BuildRequires:  perl(version) >= 0.77
+# Tests only:
+BuildRequires:  perl(lib)
+BuildRequires:  perl(Test::More) >= 0.94
+BuildRequires:  perl(Test::Deep)
+BuildRequires:  perl(Try::Tiny)
+BuildRequires:  perl(IO::Capture::Stderr::Extended)
+BuildRequires:  perl(IO::Capture::Stdout::Extended)
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+Requires:       perl(Filter::Simple) >= 0.8
+Requires:       perl(Test::More) >= 0.94
+Requires:       perl(Text::Balanced) >= 2
+
+# Remove under-specifed dependencies
+%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Filter::Simple|Text::Balanced\\)\\s*$
+
+%description
+Devel::Comments is a source filter for your Perl code, intended to be used
+only during development. Specially-formatted 'smart' comments are replaced by
+executable code to dump variables to screen or to file, display loop progress
+bars, or enforce conditions. These smart comments can all be disabled at once
+by commenting out the "use Devel::Comments" line, whereupon they return to
+being simple, dumb comments. Your debugging code can remain in place,
+guaranteed harmless, ready for the next development cycle.
+
+%prep
+%setup -q -n Devel-Comments-v%{version}
+
+%build
+%{__perl} Build.PL installdirs=vendor
+./Build
+
+%install
+./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
+find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
+%{_fixperms} $RPM_BUILD_ROOT/*
+
+%check
+./Build test
+
+%files
+%doc Changes README
+%{perl_vendorlib}/*
+%{_mandir}/man3/*
+
+%changelog
+* Mon Dec 12 2011 Petr Pisar <ppisar at redhat.com> 1.1.4-1
+- Specfile autogenerated by cpanspec 1.78.
+- Remove BuildRoot and defattr from spec code.
diff --git a/sources b/sources
index e69de29..c701aa9 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+fd83e3fbad70bcd911acd4d0343da7e2  Devel-Comments-v1.1.4.tar.gz


More information about the scm-commits mailing list