From fbd7d20385b66b7d266debf98e0490250122cf05 Mon Sep 17 00:00:00 2001
From: Paul Howarth <p...@city-fan.org>
Date: Mon, 28 Nov 2016 15:14:30 +0000
Subject: Initial import (perl-Module-Extract-Use-1.04-2)

Extract the names of the modules used in a file using a static analysis. Since
this module does not run code, it cannot find dynamic uses of modules, such as
eval "require $class". It only reports modules that the file loads directly.
Modules loaded with parent or base, for instance, will be in the import list
for those pragmas but won't have separate entries in the data this module
returns.
---
 .gitignore                   |  1 +
 perl-Module-Extract-Use.spec | 72 ++++++++++++++++++++++++++++++++++++++++++++
 sources                      |  1 +
 3 files changed, 74 insertions(+)
 create mode 100644 perl-Module-Extract-Use.spec

diff --git a/.gitignore b/.gitignore
index e69de29..f26524c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Module-Extract-Use-[0-9.]*.tar.gz
diff --git a/perl-Module-Extract-Use.spec b/perl-Module-Extract-Use.spec
new file mode 100644
index 0000000..be2f69e
--- /dev/null
+++ b/perl-Module-Extract-Use.spec
@@ -0,0 +1,72 @@
+Summary:       Pull out the modules a module explicitly uses
+Name:          perl-Module-Extract-Use
+Version:       1.04
+Release:       2%{?dist}
+License:       GPL+ or Artistic
+URL:           http://search.cpan.org/dist/Module-Extract-Use/
+Source0:       
http://search.cpan.org/CPAN/authors/id/B/BD/BDFOY/Module-Extract-Use-%{version}.tar.gz
+BuildArch:     noarch
+# Module Build
+BuildRequires: coreutils
+BuildRequires: findutils
+BuildRequires: make
+BuildRequires: perl
+BuildRequires: perl-generators
+BuildRequires: perl(ExtUtils::MakeMaker) >= 6.48
+# Module Runtime
+BuildRequires: perl(PPI)
+BuildRequires: perl(strict)
+BuildRequires: perl(subs)
+BuildRequires: perl(vars)
+BuildRequires: perl(warnings)
+# Test Suite
+BuildRequires: perl(Data::Dumper)
+BuildRequires: perl(File::Basename)
+BuildRequires: perl(File::Spec::Functions)
+BuildRequires: perl(Test::More)
+# Optional Tests
+BuildRequires: perl(Test::Pod) >= 1.00
+BuildRequires: perl(Test::Pod::Coverage) >= 1.00
+# Dependencies
+Requires:      perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
+Requires:      perl(PPI)
+
+%description
+Extract the names of the modules used in a file using a static analysis. Since
+this module does not run code, it cannot find dynamic uses of modules, such as
+eval "require $class". It only reports modules that the file loads directly.
+Modules loaded with parent or base, for instance, will be in the import list
+for those pragmas but won't have separate entries in the data this module
+returns.
+
+%prep
+%setup -q -n Module-Extract-Use-%{version}
+
+%build
+perl Makefile.PL INSTALLDIRS=vendor
+make %{?_smp_mflags}
+
+%install
+make pure_install DESTDIR=%{buildroot}
+find %{buildroot} -type f -name .packlist -delete
+%{_fixperms} -c %{buildroot}
+
+%check
+make test
+
+%files
+%if 0%{?_licensedir:1}
+%license LICENSE
+%else
+%doc LICENSE
+%endif
+%doc Changes examples/ README
+%{perl_vendorlib}/Module/
+%{_mandir}/man3/Module::Extract::Use.3*
+
+%changelog
+* Fri Nov 25 2016 Paul Howarth <p...@city-fan.org> - 1.04-2
+- Sanitize for Fedora submission
+
+* Fri Nov 25 2016 Paul Howarth <p...@city-fan.org> - 1.04-1
+- Initial RPM version
diff --git a/sources b/sources
index e69de29..8a39a58 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+ac724177aa58e683dc5fbb58810ebdfe  Module-Extract-Use-1.04.tar.gz
-- 
cgit v0.12


        
http://pkgs.fedoraproject.org/cgit/perl-Module-Extract-Use.git/commit/?h=f25&id=fbd7d20385b66b7d266debf98e0490250122cf05
_______________________________________________
perl-devel mailing list -- perl-devel@lists.fedoraproject.org
To unsubscribe send an email to perl-devel-le...@lists.fedoraproject.org

Reply via email to