- update filtering perl_default_filter

- auto-update to 0.13 (by cpan-spec-update 0.01)
- altered br on perl(ExtUtils::MakeMaker) (0 => 6.42)
- added a new br on perl(Sub::Identify) (version 0.04)
- added a new br on perl(Sub::Name) (version 0.04)
- altered br on perl(Test::More) (0.62 => 0.88)
- added a new br on CPAN (inc::Module::AutoInstall found)
- added a new req on perl(B::Hooks::EndOfScope) (version 0.07)
- added a new req on perl(Sub::Identify) (version 0.04)
- added a new req on perl(Sub::Name) (version 0.04)
- added a new req on perl(Symbol) (version 0)
This commit is contained in:
Chris Weyl 2010-02-05 18:21:54 +00:00
parent c0f8fd6068
commit 6bc44a2069
3 changed files with 36 additions and 32 deletions

View File

@ -1 +1 @@
namespace-clean-0.11.tar.gz namespace-clean-0.13.tar.gz

View File

@ -1,21 +1,31 @@
Name: perl-namespace-clean Name: perl-namespace-clean
Version: 0.11 Version: 0.13
Release: 3%{?dist} Release: 1%{?dist}
License: GPL+ or Artistic License: GPL+ or Artistic
Group: Development/Libraries Group: Development/Libraries
Summary: Keep your namespace tidy Summary: Keep your namespace tidy
Source: http://search.cpan.org/CPAN/authors/id/F/FL/FLORA/namespace-clean-%{version}.tar.gz Source: http://search.cpan.org/CPAN/authors/id/F/FL/FLORA/namespace-clean-%{version}.tar.gz
Url: http://search.cpan.org/dist/namespace-clean Url: http://search.cpan.org/dist/namespace-clean
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
BuildArch: noarch BuildArch: noarch
BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42
BuildRequires: perl(FindBin) BuildRequires: perl(FindBin)
BuildRequires: perl(B::Hooks::EndOfScope) >= 0.07 BuildRequires: perl(B::Hooks::EndOfScope) >= 0.07
BuildRequires: perl(Symbol) BuildRequires: perl(Symbol)
BuildRequires: perl(Test::More) >= 0.62 BuildRequires: perl(Test::More) >= 0.88
BuildRequires: perl(Sub::Identify) >= 0.04
BuildRequires: perl(Sub::Name) >= 0.04
BuildRequires: perl(CPAN)
Requires: perl(B::Hooks::EndOfScope) >= 0.07
Requires: perl(Sub::Identify) >= 0.04
Requires: perl(Sub::Name) >= 0.04
Requires: perl(Symbol)
%{?perl_default_filter}
%description %description
When you define a function, or import one, into a Perl package, it will When you define a function, or import one, into a Perl package, it will
@ -32,25 +42,6 @@ name, but they won't show up as methods on your class or instances.
%prep %prep
%setup -q -n namespace-clean-%{version} %setup -q -n namespace-clean-%{version}
# note we first filter out the bits in _docdir...
cat << \EOF > %{name}-prov
#!/bin/sh
%{__perl_provides} `perl -p -e 's|%{_docdir}/%{name}-%{version}\S+||'`
EOF
%define __perl_provides %{_builddir}/namespace-clean-%{version}/%{name}-prov
chmod +x %{__perl_provides}
cat << \EOF > %{name}-req
#!/bin/sh
%{__perl_requires} `perl -p -e 's|\S+%{_docdir}/%{name}-%{version}\S+||'`
EOF
%define __perl_requires %{_builddir}/namespace-clean-%{version}/%{name}-req
chmod +x %{__perl_requires}
%build %build
%{__perl} Makefile.PL INSTALLDIRS=vendor %{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags} make %{?_smp_mflags}
@ -68,15 +59,28 @@ find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
make test make test
%clean %clean
rm -rf %{buildroot} rm -rf %{buildroot}
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc Changes README t/ %doc Changes README t/
%{perl_vendorlib}/* %{perl_vendorlib}/*
%{_mandir}/man3/*.3* %{_mandir}/man3/*.3*
%changelog %changelog
* Fri Feb 05 2010 Chris Weyl <cweyl@alumni.drew.edu> 0.13-1
- update filtering perl_default_filter
- auto-update to 0.13 (by cpan-spec-update 0.01)
- altered br on perl(ExtUtils::MakeMaker) (0 => 6.42)
- added a new br on perl(Sub::Identify) (version 0.04)
- added a new br on perl(Sub::Name) (version 0.04)
- altered br on perl(Test::More) (0.62 => 0.88)
- added a new br on CPAN (inc::Module::AutoInstall found)
- added a new req on perl(B::Hooks::EndOfScope) (version 0.07)
- added a new req on perl(Sub::Identify) (version 0.04)
- added a new req on perl(Sub::Name) (version 0.04)
- added a new req on perl(Symbol) (version 0)
* Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 0.11-3 * Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 0.11-3
- rebuild against perl 5.10.1 - rebuild against perl 5.10.1

View File

@ -1 +1 @@
480c3735ffe40b491a4700df5e8659a3 namespace-clean-0.11.tar.gz 6703af0d6fa1a82b912c8c5ff4e75530 namespace-clean-0.13.tar.gz