|
|
d87520a |
Name: perl-namespace-autoclean
|
|
|
ee3c30b |
Version: 0.28
|
|
|
37788da |
Release: 8%{?dist}
|
|
|
d87520a |
License: GPL+ or Artistic
|
|
|
d87520a |
Group: Development/Libraries
|
|
|
d87520a |
Summary: Keep imports out of your namespace
|
|
|
d87520a |
Source0: http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/namespace-autoclean-%{version}.tar.gz
|
|
|
d87520a |
URL: http://search.cpan.org/dist/namespace-autoclean
|
|
|
d87520a |
BuildArch: noarch
|
|
|
4c845dd |
# Module Build
|
|
|
67e3ced |
BuildRequires: coreutils
|
|
|
67e3ced |
BuildRequires: findutils
|
|
|
67e3ced |
BuildRequires: make
|
|
|
a6d2361 |
BuildRequires: perl-interpreter
|
|
|
8bdf5b4 |
BuildRequires: perl-generators
|
|
|
67e3ced |
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
4c845dd |
# Module
|
|
|
4c845dd |
BuildRequires: perl(B::Hooks::EndOfScope) >= 0.12
|
|
|
4c845dd |
BuildRequires: perl(List::Util)
|
|
|
4c845dd |
BuildRequires: perl(namespace::clean) >= 0.20
|
|
|
4c845dd |
BuildRequires: perl(strict)
|
|
|
4c845dd |
BuildRequires: perl(Sub::Identify)
|
|
|
4c845dd |
BuildRequires: perl(warnings)
|
|
|
4c845dd |
# Test Suite
|
|
|
ff4bcdc |
BuildRequires: perl(base)
|
|
|
4c845dd |
BuildRequires: perl(Carp)
|
|
|
4c845dd |
BuildRequires: perl(constant)
|
|
|
4c845dd |
BuildRequires: perl(File::Basename)
|
|
|
ff4bcdc |
BuildRequires: perl(File::Spec)
|
|
|
ee3c30b |
BuildRequires: perl(FindBin)
|
|
|
4c845dd |
BuildRequires: perl(overload)
|
|
|
4c845dd |
BuildRequires: perl(Scalar::Util)
|
|
|
ff4bcdc |
BuildRequires: perl(Test::More) >= 0.94
|
|
|
4c845dd |
BuildRequires: perl(Test::Requires)
|
|
|
4c845dd |
# Optional Tests
|
|
|
ff4bcdc |
BuildRequires: perl(CPAN::Meta) >= 2.120900
|
|
|
4c845dd |
%if 0%{?fedora} || 0%{?rhel} > 7
|
|
|
ee3c30b |
BuildRequires: perl(Moo) >= 1.004000
|
|
|
4c845dd |
%endif
|
|
|
9be59b2 |
%if ! %{defined perl_bootstrap}
|
|
|
9be59b2 |
# Break build-cycle: perl-namespace-autoclean → perl-Moose
|
|
|
9be59b2 |
# → perl-Package-DeprecationManager → perl-namespace-autoclean
|
|
|
9be59b2 |
# Break build-cycle: perl-namespace-autoclean → perl-Mouse → perl-Moose
|
|
|
9be59b2 |
# → perl-Package-DeprecationManager → perl-namespace-autoclean
|
|
|
4c845dd |
BuildRequires: perl(Moose) >= 0.56
|
|
|
4c845dd |
BuildRequires: perl(Moose::Role)
|
|
|
4c845dd |
BuildRequires: perl(MooseX::Role::WithOverloading) >= 0.09
|
|
|
4c845dd |
BuildRequires: perl(Mouse)
|
|
|
9be59b2 |
%endif
|
|
|
035c2de |
BuildRequires: perl(Sub::Install)
|
|
|
4c845dd |
BuildRequires: perl(Sub::Name)
|
|
|
4c845dd |
# Runtime
|
|
|
4c845dd |
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
4c845dd |
Requires: perl(Sub::Identify)
|
|
Chris Weyl |
7b2d381 |
|
|
Chris Weyl |
7b2d381 |
%description
|
|
|
4c845dd |
When you import a function into a Perl package, it will naturally also be
|
|
|
4c845dd |
available as a method. The 'namespace::autoclean' pragma will remove all
|
|
|
4c845dd |
imported symbols at the end of the current package's compile cycle. Functions
|
|
|
4c845dd |
called in the package itself will still be bound by their name, but they won't
|
|
|
4c845dd |
show up as methods on your class or instances. This module is very similar to
|
|
|
4c845dd |
namespace::clean, except it will clean all imported functions, no matter if you
|
|
|
4c845dd |
imported them before or after you 'use'd the pragma. It will also not touch
|
|
|
4c845dd |
anything that looks like a method.
|
|
Chris Weyl |
7b2d381 |
|
|
Chris Weyl |
7b2d381 |
%prep
|
|
Chris Weyl |
7b2d381 |
%setup -q -n namespace-autoclean-%{version}
|
|
Chris Weyl |
7b2d381 |
|
|
Chris Weyl |
7b2d381 |
%build
|
|
|
67e3ced |
perl Makefile.PL INSTALLDIRS=vendor
|
|
|
67e3ced |
make %{?_smp_mflags}
|
|
Chris Weyl |
7b2d381 |
|
|
Chris Weyl |
7b2d381 |
%install
|
|
|
67e3ced |
make pure_install DESTDIR=%{buildroot}
|
|
|
67e3ced |
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
|
|
|
67e3ced |
%{_fixperms} %{buildroot}
|
|
Chris Weyl |
7b2d381 |
|
|
Chris Weyl |
7b2d381 |
%check
|
|
|
67e3ced |
make test
|
|
Chris Weyl |
7b2d381 |
|
|
Chris Weyl |
7b2d381 |
%files
|
|
|
ee3c30b |
%license LICENCE
|
|
|
ff4bcdc |
%doc Changes CONTRIBUTING README
|
|
|
4c845dd |
%{perl_vendorlib}/namespace/
|
|
|
d87520a |
%{_mandir}/man3/namespace::autoclean.3*
|
|
Chris Weyl |
7b2d381 |
|
|
Chris Weyl |
7b2d381 |
%changelog
|
|
|
37788da |
* Wed Jun 07 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.28-8
|
|
|
37788da |
- Perl 5.26 re-rebuild of bootstrapped packages
|
|
|
37788da |
|
|
|
f68d530 |
* Mon Jun 05 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.28-7
|
|
|
f68d530 |
- Perl 5.26 rebuild
|
|
|
f68d530 |
|
|
|
675bada |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.28-6
|
|
|
675bada |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
675bada |
|
|
|
d36603d |
* Wed May 18 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.28-5
|
|
|
d36603d |
- Perl 5.24 re-rebuild of bootstrapped packages
|
|
|
d36603d |
|
|
|
d95ae5d |
* Mon May 16 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.28-4
|
|
|
d95ae5d |
- Perl 5.24 rebuild
|
|
|
d95ae5d |
|
|
|
9be59b2 |
* Tue Mar 29 2016 Petr Pisar <ppisar@redhat.com> - 0.28-3
|
|
|
9be59b2 |
- Break build-cycle: perl-namespace-autoclean → perl-Moose
|
|
|
9be59b2 |
→ perl-Package-DeprecationManager → perl-namespace-autoclean
|
|
|
9be59b2 |
- Break build-cycle: perl-namespace-autoclean → perl-Mouse → perl-Moose
|
|
|
9be59b2 |
→ perl-Package-DeprecationManager → perl-namespace-autoclean
|
|
|
9be59b2 |
- Remove unused direct test dependency on Class::MOP
|
|
|
9be59b2 |
|
|
|
7e077d4 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.28-2
|
|
|
7e077d4 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
7e077d4 |
|
|
|
ee3c30b |
* Tue Oct 13 2015 Paul Howarth <paul@city-fan.org> - 0.28-1
|
|
|
ee3c30b |
- Update to 0.28
|
|
|
ee3c30b |
- Skip failing tests with old Moo or when Sub::Util is broken
|
|
|
ee3c30b |
(CPAN RT#107643)
|
|
|
ee3c30b |
|
|
|
67e3ced |
* Wed Sep 9 2015 Paul Howarth <paul@city-fan.org> - 0.27-1
|
|
|
67e3ced |
- Update to 0.27
|
|
|
67e3ced |
- Package with only ExtUtils::MakeMaker to ease installation on perl 5.6
|
|
|
67e3ced |
|
|
|
70eca0c |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.26-4
|
|
|
70eca0c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
70eca0c |
|
|
|
3a4001c |
* Wed Jun 10 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.26-3
|
|
|
3a4001c |
- Perl 5.22 re-rebuild of bootstrapped packages
|
|
|
3a4001c |
|
|
|
b9a270c |
* Mon Jun 08 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.26-2
|
|
|
b9a270c |
- Perl 5.22 rebuild
|
|
|
b9a270c |
|
|
|
4b46702 |
* Sun Jun 7 2015 Paul Howarth <paul@city-fan.org> - 0.26-1
|
|
|
4b46702 |
- Update to 0.26
|
|
|
4b46702 |
- Mark all Mouse tests as TODO below perl 5.010, to enable installation
|
|
|
4b46702 |
despite apparent instability issues (see CPAN RT#101825)
|
|
|
4b46702 |
|
|
|
c92c899 |
* Sat Jun 6 2015 Paul Howarth <paul@city-fan.org> - 0.25-1
|
|
|
c92c899 |
- Update to 0.25
|
|
|
c92c899 |
- Load Moo::Role earlier in a test, to make a potential misconfiguration more
|
|
|
c92c899 |
visible
|
|
|
c92c899 |
|
|
|
d87520a |
* Mon Jan 5 2015 Paul Howarth <paul@city-fan.org> - 0.24-1
|
|
|
d87520a |
- Update to 0.24
|
|
|
d87520a |
- Be more lenient in optional Mouse tests to handle edge cases in older and
|
|
|
d87520a |
pure perl versions
|
|
|
d87520a |
- Drop redundant %%{?perl_default_filter}
|
|
|
d87520a |
|
|
|
035c2de |
* Tue Nov 4 2014 Paul Howarth <paul@city-fan.org> - 0.22-1
|
|
|
035c2de |
- Update to 0.22
|
|
|
035c2de |
- Drop testing of MooseX::MarkAsMethods, now that Moose 2.1400 has better
|
|
|
035c2de |
overload handling
|
|
|
035c2de |
|
|
|
ff4bcdc |
* Tue Sep 23 2014 Paul Howarth <paul@city-fan.org> - 0.20-1
|
|
|
ff4bcdc |
- Update to 0.20
|
|
|
ff4bcdc |
- Moose earlier than 2.0300 had a broken ->does method, which called methods
|
|
|
ff4bcdc |
on a class's meta when it might not be initialized (CPAN RT#98424)
|
|
|
ff4bcdc |
|
|
|
0cc3dbd |
* Sun Sep 07 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.19-4
|
|
|
0cc3dbd |
- Perl 5.20 re-rebuild of bootstrapped packages
|
|
|
0cc3dbd |
|
|
|
b5e0fd7 |
* Mon Sep 01 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.19-3
|
|
|
b5e0fd7 |
- Perl 5.20 rebuild
|
|
|
b5e0fd7 |
|
|
|
ca4f49d |
* Fri Aug 15 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.19-2
|
|
|
ca4f49d |
- Disable BRs MooseX::MarkAsMethods and MooseX::Role::WithOverloading to
|
|
|
ca4f49d |
avoid circular deps when bootstrapping
|
|
|
ca4f49d |
|
|
|
4c845dd |
* Thu Aug 14 2014 Paul Howarth <paul@city-fan.org> - 0.19-1
|
|
|
4c845dd |
- Update to 0.19
|
|
|
4c845dd |
- Bump dependency on B::Hooks::EndOfScope, to get the separation of pure-perl
|
|
|
4c845dd |
and XS components (CPAN RT#89245)
|
|
|
4c845dd |
- Repository migrated to the github moose organization
|
|
|
4c845dd |
- Update configure_requires checking in Makefile.PL, add CONTRIBUTING file
|
|
|
4c845dd |
- Changed the code to no longer _require_ Class::MOP; if your class is not a
|
|
|
4c845dd |
Moose class then we don't load Class::MOP, which was particularly
|
|
|
4c845dd |
problematic for Moo classes, as using namespace::autoclean with a Moo class
|
|
|
4c845dd |
"upgraded" it to be a Moose class
|
|
|
4c845dd |
- Using this module just broke overloading in a class (CPAN RT#50938)
|
|
|
4c845dd |
- Add -except to import options; this allows you to explicitly not clean a
|
|
|
4c845dd |
sub.
|
|
|
4c845dd |
- Better method detection for Mouse (GH#4)
|
|
|
4c845dd |
- More comprehensive testing with Moo/Mouse/Moose
|
|
|
4c845dd |
- Fixed cleaning of constants
|
|
|
4c845dd |
- This release by ETHER -> update source URL
|
|
|
4c845dd |
- Switch to Module::Build::Tiny flow
|
|
|
4c845dd |
- Update %%description to remove reference to Class::MOP
|
|
|
4c845dd |
- Make %%files list more explicit
|
|
|
4c845dd |
|
|
|
f5a4cc2 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.13-7
|
|
|
f5a4cc2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
f5a4cc2 |
|
|
|
b3a20cb |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.13-6
|
|
|
b3a20cb |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
b3a20cb |
|
|
|
76ae45f |
* Fri Aug 02 2013 Petr Pisar <ppisar@redhat.com> - 0.13-5
|
|
|
76ae45f |
- Perl 5.18 rebuild
|
|
|
76ae45f |
|
|
|
4f8c8e2 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.13-4
|
|
|
4f8c8e2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
4f8c8e2 |
|
|
|
dcbd656 |
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.13-3
|
|
|
dcbd656 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
dcbd656 |
|
|
|
2489312 |
* Fri Jun 22 2012 Petr Pisar <ppisar@redhat.com> - 0.13-2
|
|
|
2489312 |
- Perl 5.16 rebuild
|
|
|
2489312 |
|
|
|
de1ea54 |
* Sat Jan 14 2012 Iain Arnell <iarnell@gmail.com> 0.13-1
|
|
|
de1ea54 |
- update to latest upstream version
|
|
|
de1ea54 |
|
|
|
add075b |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12-4
|
|
|
add075b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
add075b |
|
|
Petr Sabata |
07460f8 |
* Thu Jul 21 2011 Petr Sabata <contyk@redhat.com> - 0.12-3
|
|
Petr Sabata |
07460f8 |
- Perl mass rebuild
|
|
Petr Sabata |
07460f8 |
|
|
Petr Sabata |
3026131 |
* Tue Jul 19 2011 Petr Sabata <contyk@redhat.com> - 0.12-2
|
|
Petr Sabata |
3026131 |
- Perl mass rebuild
|
|
Petr Sabata |
3026131 |
|
|
|
2bbfc2d |
* Sun Mar 13 2011 Iain Arnell <iarnell@gmail.com> 0.12-1
|
|
|
2bbfc2d |
- update to latest upstream version
|
|
|
2bbfc2d |
- clean up spec for modern rpmbuild
|
|
|
2bbfc2d |
|
|
|
806c46b |
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-3
|
|
|
806c46b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
806c46b |
|
|
|
02574a2 |
* Tue Dec 21 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.11-2
|
|
|
02574a2 |
- 661697 rebuild for fixing problems with vendorach/lib
|
|
|
02574a2 |
|
|
|
a05396d |
* Tue May 04 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.09-4
|
|
|
a05396d |
- Mass rebuild with perl-5.12.0
|
|
|
a05396d |
|
|
|
94065c2 |
* Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 0.09-3
|
|
|
94065c2 |
- rebuild against perl 5.10.1
|
|
|
94065c2 |
|
|
|
7ab2428 |
* Thu Sep 17 2009 Stepan Kasal <skasal@redhat.com> 0.09-2
|
|
|
7ab2428 |
- fix the previous changelog entry
|
|
|
7ab2428 |
|
|
Chris Weyl |
07c5cce |
* Wed Sep 16 2009 Chris Weyl <cweyl@alumni.drew.edu> 0.09-1
|
|
|
13b751c |
- add %%perl_default_filter'ing
|
|
Chris Weyl |
07c5cce |
- auto-update to 0.09 (by cpan-spec-update 0.01)
|
|
Chris Weyl |
07c5cce |
- added a new req on perl(B::Hooks::EndOfScope) (version 0.07)
|
|
Chris Weyl |
07c5cce |
- added a new req on perl(Class::MOP) (version 0.80)
|
|
Chris Weyl |
07c5cce |
- added a new req on perl(List::Util) (version 0)
|
|
Chris Weyl |
07c5cce |
- added a new req on perl(namespace::clean) (version 0.11)
|
|
Chris Weyl |
07c5cce |
|
|
|
6424036 |
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.08-2
|
|
|
6424036 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
6424036 |
|
|
Chris Weyl |
7b2d381 |
* Wed Jul 01 2009 Chris Weyl <cweyl@alumni.drew.edu> 0.08-1
|
|
Chris Weyl |
7b2d381 |
- submission
|
|
Chris Weyl |
7b2d381 |
|
|
Chris Weyl |
7b2d381 |
* Wed Jul 01 2009 Chris Weyl <cweyl@alumni.drew.edu> 0.08-0
|
|
Chris Weyl |
7b2d381 |
- initial RPM packaging
|
|
Chris Weyl |
7b2d381 |
- generated with cpan2dist (CPANPLUS::Dist::RPM version 0.0.8)
|