Blame SPECS/perl-namespace-autoclean.spec

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