[perl-Module-Extract-Namespaces] Initial import (perl-Module-Extract-Namespaces-1.02-2)

Paul Howarth pghmcfc at fedoraproject.org
Wed Feb 26 14:26:19 UTC 2014


commit 960a226ccc445145c9bb11e30930a96f13733dfc
Author: Paul Howarth <paul at city-fan.org>
Date:   Wed Feb 26 14:21:58 2014 +0000

    Initial import (perl-Module-Extract-Namespaces-1.02-2)
    
    This module extracts package declarations from Perl code without running the
    code.
    
    It does not extract:
    
     * Packages declared dynamically (e.g. in eval)
     * Packages created as part of a fully qualified variable name

 .gitignore                                    |    1 +
 Module-Extract-Namespaces-1.02-provides.patch |   12 +++++
 perl-Module-Extract-Namespaces.spec           |   67 +++++++++++++++++++++++++
 sources                                       |    1 +
 4 files changed, 81 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..198a821 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Module-Extract-Namespaces-[0-9.]*.tar.gz
diff --git a/Module-Extract-Namespaces-1.02-provides.patch b/Module-Extract-Namespaces-1.02-provides.patch
new file mode 100644
index 0000000..29bc5ce
--- /dev/null
+++ b/Module-Extract-Namespaces-1.02-provides.patch
@@ -0,0 +1,12 @@
+--- lib/Module/Extract/Namespaces.pm
++++ lib/Module/Extract/Namespaces.pm
+@@ -262,7 +262,8 @@
+ 	no warnings 'redefine';
+ 	sub PPI::Statement::Package::__LEXER__normal { '' }
+ 	sub PPI::Lexer::_continues {
+-		package PPI::Lexer;
++		package # hide from rpm
++			PPI::Lexer;
+ 		my ($self, $Statement, $Token) = @_;
+ 		# my $self      = shift;
+ 		# my $Statement = _INSTANCE(shift, 'PPI::Statement') or die "Bad param 1";
diff --git a/perl-Module-Extract-Namespaces.spec b/perl-Module-Extract-Namespaces.spec
new file mode 100644
index 0000000..4065468
--- /dev/null
+++ b/perl-Module-Extract-Namespaces.spec
@@ -0,0 +1,67 @@
+Name:		perl-Module-Extract-Namespaces
+Version:	1.02
+Release:	2%{?dist}
+Summary:	Extract the package declarations from a module
+License:	GPL+ or Artistic
+Group:		Development/Libraries
+URL:		http://search.cpan.org/dist/Module-Extract-Namespaces/
+Source0:	http://search.cpan.org/CPAN/authors/id/B/BD/BDFOY/Module-Extract-Namespaces-%{version}.tar.gz
+Patch0:		Module-Extract-Namespaces-1.02-provides.patch
+BuildArch:	noarch
+# Module Build
+BuildRequires:	perl(ExtUtils::MakeMaker)
+BuildRequires:	perl(Test::Manifest) >= 1.21
+# Module Runtime
+BuildRequires:	perl(Carp)
+BuildRequires:	perl(File::Spec::Functions)
+BuildRequires:	perl(PPI)
+BuildRequires:	perl(strict)
+BuildRequires:	perl(subs)
+BuildRequires:	perl(vars)
+BuildRequires:	perl(warnings)
+# Test Suite
+BuildRequires:	perl(File::Spec)
+BuildRequires:	perl(Test::More)
+BuildRequires:	perl(Test::Pod) >= 1.00
+BuildRequires:	perl(Test::Pod::Coverage) >= 1.00
+# Runtime
+Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
+
+%description
+This module extracts package declarations from Perl code without running the
+code.
+
+It does not extract:
+
+ * Packages declared dynamically (e.g. in eval)
+ * Packages created as part of a fully qualified variable name
+
+%prep
+%setup -q -n Module-Extract-Namespaces-%{version}
+
+# Hide private PPI::Lexer package from rpm
+%patch0
+
+%build
+perl Makefile.PL INSTALLDIRS=vendor
+make %{?_smp_mflags}
+
+%install
+make pure_install DESTDIR=%{buildroot}
+find %{buildroot} -type f -name .packlist -exec rm -f {} \;
+%{_fixperms} %{buildroot}
+
+%check
+make test
+
+%files
+%doc Changes LICENSE README
+%{perl_vendorlib}/Module/
+%{_mandir}/man3/Module::Extract::Namespaces.3pm*
+
+%changelog
+* Tue Feb 25 2014 Paul Howarth <paul at city-fan.org> - 1.02-2
+- Sanitize for Fedora submission
+
+* Thu Feb  6 2014 Paul Howarth <paul at city-fan.org> - 1.02-1
+- Initial RPM version
diff --git a/sources b/sources
index e69de29..b15e94c 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+4d4b6c1e4dde63e8ac334fdec15aba99  Module-Extract-Namespaces-1.02.tar.gz


More information about the scm-commits mailing list