[perl-bareword-filehandles] initial import (rhbz#810939)

Iain Arnell iarnell at fedoraproject.org
Thu May 10 11:15:34 UTC 2012


commit d0fa0d8d37195fd9b84465af748b8a2ba6448ee3
Author: Iain Arnell <iarnell at gmail.com>
Date:   Thu May 10 05:13:20 2012 -0600

    initial import (rhbz#810939)

 .gitignore                        |    1 +
 no-Lexical-SealRequireHints.patch |   11 +++++++
 perl-bareword-filehandles.spec    |   57 +++++++++++++++++++++++++++++++++++++
 sources                           |    1 +
 4 files changed, 70 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..99fc9e5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/bareword-filehandles-0.003.tar.gz
diff --git a/no-Lexical-SealRequireHints.patch b/no-Lexical-SealRequireHints.patch
new file mode 100644
index 0000000..1c26b2b
--- /dev/null
+++ b/no-Lexical-SealRequireHints.patch
@@ -0,0 +1,11 @@
+diff -up bareword-filehandles-0.003/lib/bareword/filehandles.pm.orig bareword-filehandles-0.003/lib/bareword/filehandles.pm
+--- bareword-filehandles-0.003/lib/bareword/filehandles.pm.orig	2011-03-15 07:03:09.000000000 -0600
++++ bareword-filehandles-0.003/lib/bareword/filehandles.pm	2012-04-09 10:42:07.000000000 -0600
+@@ -8,7 +8,6 @@ BEGIN {
+ use strict;
+ use warnings;
+ 
+-use Lexical::SealRequireHints;
+ use B::Hooks::OP::Check;
+ use XSLoader;
+ 
diff --git a/perl-bareword-filehandles.spec b/perl-bareword-filehandles.spec
new file mode 100644
index 0000000..9ea3bee
--- /dev/null
+++ b/perl-bareword-filehandles.spec
@@ -0,0 +1,57 @@
+Name:           perl-bareword-filehandles
+Version:        0.003
+Release:        1%{?dist}
+Summary:        Disables bareword filehandles
+License:        GPL+ or Artistic
+Group:          Development/Libraries
+URL:            http://search.cpan.org/dist/bareword-filehandles/
+Source0:        http://www.cpan.org/authors/id/I/IL/ILMARI/bareword-filehandles-%{version}.tar.gz
+# Lexical::SealRequireHints is only necessary on perl < 5.12
+Patch0:         no-Lexical-SealRequireHints.patch
+BuildRequires:  perl >= 0:5.008001
+BuildRequires:  perl(B::Hooks::OP::Check)
+BuildRequires:  perl(ExtUtils::Depends)
+BuildRequires:  perl(ExtUtils::MakeMaker)
+BuildRequires:  perl(Pod::Coverage::TrustPod)
+BuildRequires:  perl(Test::More)
+BuildRequires:  perl(Test::Pod)
+BuildRequires:  perl(Test::Pod::Coverage)
+BuildRequires:  perl(XSLoader)
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
+%{?perl_default_filter}
+
+%description
+This module lexically disables the use of bareword filehandles with builtin
+functions, except for the special builtin filehandles STDIN, STDOUT,
+STDERR, ARGV, ARGVOUT and DATA.
+
+%prep
+%setup -q -n bareword-filehandles-%{version}
+%patch0 -p1
+
+%build
+%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
+make %{?_smp_mflags}
+
+%install
+make pure_install DESTDIR=%{buildroot}
+
+find %{buildroot} -type f -name .packlist -exec rm -f {} \;
+find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} \;
+
+%{_fixperms} %{buildroot}/*
+
+%check
+RELEASE_TESTING=1 make test
+
+%files
+%doc Changes LICENSE README
+%{perl_vendorarch}/auto/*
+%{perl_vendorarch}/bareword*
+%{_mandir}/man3/*
+
+%changelog
+* Mon Apr 09 2012 Iain Arnell <iarnell at gmail.com> 0.003-1
+- Specfile autogenerated by cpanspec 1.79.
+- remove Lexical::SealRequireHints dependency
diff --git a/sources b/sources
index e69de29..21d4db5 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+1e0ec0e72c897b238b4f9d0eb71643a4  bareword-filehandles-0.003.tar.gz


More information about the scm-commits mailing list