initial import

This commit is contained in:
Chris Weyl 2009-07-02 06:05:40 +00:00
parent bd2ca150d7
commit 7b2d381109
4 changed files with 70 additions and 0 deletions

View File

@ -0,0 +1 @@
namespace-autoclean-0.08.tar.gz

1
import.log Normal file
View File

@ -0,0 +1 @@
perl-namespace-autoclean-0_08-1_fc11:HEAD:perl-namespace-autoclean-0.08-1.fc11.src.rpm:1246514695

View File

@ -0,0 +1,67 @@
Name: perl-namespace-autoclean
Version: 0.08
Release: 1%{?dist}
License: GPL+ or Artistic
Group: Development/Libraries
Summary: Keep imports out of your namespace
Source: http://search.cpan.org/CPAN/authors/id/F/FL/FLORA/namespace-autoclean-%{version}.tar.gz
Url: http://search.cpan.org/dist/namespace-autoclean
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
BuildArch: noarch
BuildRequires: perl(B::Hooks::EndOfScope) >= 0.07
BuildRequires: perl(Class::MOP) >= 0.80
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(List::Util)
BuildRequires: perl(namespace::clean) >= 0.11
BuildRequires: perl(Test::More)
%description
When you import a function into a Perl package, it will naturally also
be available as a method. The 'namespace::autoclean' pragma will remove
all imported symbols at the end of the current package's compile cycle.
Functions called in the package itself will still be bound by their
name, but they won't show up as methods on your class or instances. This
module is very similar to namespace::clean, except it will clean all
imported functions, no matter if you imported them before or after you
'use'd the pagma. It will also not touch anything that looks like a
method, according to 'Class::MOP::Class::get_method_list'.
%prep
%setup -q -n namespace-autoclean-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
rm -rf %{buildroot}
make pure_install PERL_INSTALL_ROOT=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
%{_fixperms} %{buildroot}/*
%check
make test
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc Changes LICENSE README
%{perl_vendorlib}/*
%{_mandir}/man3/*.3*
%changelog
* Wed Jul 01 2009 Chris Weyl <cweyl@alumni.drew.edu> 0.08-1
- submission
* Wed Jul 01 2009 Chris Weyl <cweyl@alumni.drew.edu> 0.08-0
- initial RPM packaging
- generated with cpan2dist (CPANPLUS::Dist::RPM version 0.0.8)

View File

@ -0,0 +1 @@
b0d086797cdb060d23c0697605c39002 namespace-autoclean-0.08.tar.gz