From 5d79f117b71341023012a58497d1e17e3d76a024 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ralf=20Cors=C3=A9pius?= <corse...@fedoraproject.org>
Date: Mon, 13 Mar 2017 19:13:46 +0100
Subject: Initial import

---
 .gitignore                |  1 +
 perl-namespace-sweep.spec | 67 +++++++++++++++++++++++++++++++++++++++++++++++
 sources                   |  1 +
 3 files changed, 69 insertions(+)
 create mode 100644 perl-namespace-sweep.spec

diff --git a/.gitignore b/.gitignore
index e69de29..aae7e90 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/namespace-sweep-0.006.tar.gz
diff --git a/perl-namespace-sweep.spec b/perl-namespace-sweep.spec
new file mode 100644
index 0000000..84ff778
--- /dev/null
+++ b/perl-namespace-sweep.spec
@@ -0,0 +1,67 @@
+Name:           perl-namespace-sweep
+Version:        0.006
+Release:        1%{?dist}
+Summary:        Sweep up imported subs in your classes
+License:        GPL+ or Artistic
+URL:            http://search.cpan.org/dist/namespace-sweep/
+Source0:        
http://www.cpan.org/authors/id/F/FR/FRIEDO/namespace-sweep-%{version}.tar.gz
+BuildArch:      noarch
+
+BuildRequires:  %{__perl}
+BuildRequires:  %{__make}
+
+BuildRequires:  perl-generators
+
+BuildRequires:  perl(B::Hooks::EndOfScope) >= 0.09
+BuildRequires:  perl(Carp)
+BuildRequires:  perl(Data::Dumper)
+BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.30
+BuildRequires:  perl(List::Util)
+BuildRequires:  perl(Package::Stash) >= 0.33
+BuildRequires:  perl(Scalar::Util)
+BuildRequires:  perl(Sub::Identify) >= 0.04
+BuildRequires:  perl(Sub::Name)
+BuildRequires:  perl(Test::More)
+BuildRequires:  perl(strict)
+BuildRequires:  perl(warnings)
+
+# Optional testsuite requirements
+BuildRequires: perl(Moo)
+BuildRequires:  perl(Moose)
+BuildRequires:  perl(Mouse)
+
+
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo 
$version))
+
+%description
+Because Perl methods are just regular subroutines, it's difficult to tell
+what's a method and what's just an imported function. As a result, imported
+functions can be called as methods on your objects. This pragma will delete
+imported functions from your class's symbol table, thereby ensuring that
+your interface is as you specified it. However, code inside your module
+will still be able to use the imported functions without any problems.
+
+%prep
+%setup -q -n namespace-sweep-%{version}
+
+%build
+%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
+%{__make} %{?_smp_mflags}
+
+%install
+%{__make} pure_install DESTDIR=$RPM_BUILD_ROOT
+
+%{_fixperms} $RPM_BUILD_ROOT/*
+
+%check
+make test
+
+%files
+%doc README
+%license LICENSE
+%{perl_vendorlib}/*
+%{_mandir}/man3/*
+
+%changelog
+* Mon Feb 13 2017 Ralf Corsépius <corse...@fedoraproject.org> - 0.006-1
+- Initial Fedora package.
diff --git a/sources b/sources
index e69de29..8b3c1cb 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (namespace-sweep-0.006.tar.gz) = 
25eab21a53c557f9684961c764b3d3ef2c654b36c6ada9361a3b19a263ab640faa0669858de7750f634a476541b3b5b796ebb7413c17c6591d38971a92e29804
-- 
cgit v1.1


        
https://src.fedoraproject.org/cgit/perl-namespace-sweep.git/commit/?h=f25&id=5d79f117b71341023012a58497d1e17e3d76a024
_______________________________________________
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