Blame SPECS/perl-namespace-clean.spec

d4be0c
# Run optional test
d4be0c
%if ! (0%{?rhel})
d4be0c
%bcond_without perl_namespace_clean_enables_optional_test
d4be0c
%else
d4be0c
%bcond_with perl_namespace_clean_enables_optional_test
d4be0c
%endif
d4be0c
d4be0c
Name:		perl-namespace-clean
d4be0c
Summary:	Keep your namespace tidy
d4be0c
Version:	0.27
d4be0c
Release:	7%{?dist}
d4be0c
License:	GPL+ or Artistic
d4be0c
URL:		http://search.cpan.org/dist/namespace-clean/
d4be0c
Source0:	http://search.cpan.org/CPAN/authors/id/R/RI/RIBASUSHI/namespace-clean-%{version}.tar.gz
d4be0c
BuildArch:	noarch
d4be0c
# Module Build
d4be0c
BuildRequires:	coreutils
d4be0c
BuildRequires:	findutils
d4be0c
BuildRequires:	make
d4be0c
BuildRequires:	perl-generators
d4be0c
BuildRequires:	perl-interpreter >= 4:5.12
d4be0c
BuildRequires:	perl(ExtUtils::MakeMaker)
d4be0c
BuildRequires:	perl(File::Spec)
d4be0c
BuildRequires:	perl(File::Temp)
d4be0c
# Module Runtime
d4be0c
BuildRequires:	perl(B::Hooks::EndOfScope) >= 0.12
d4be0c
BuildRequires:	perl(base)
d4be0c
BuildRequires:	perl(constant)
d4be0c
BuildRequires:	perl(Exporter)
d4be0c
BuildRequires:	perl(Package::Stash) >= 0.23
d4be0c
BuildRequires:	perl(strict)
d4be0c
BuildRequires:	perl(vars)
d4be0c
BuildRequires:	perl(warnings)
d4be0c
# Test Suite
d4be0c
BuildRequires:	perl(Config)
d4be0c
BuildRequires:	perl(DB)
d4be0c
BuildRequires:	perl(File::Glob)
d4be0c
BuildRequires:	perl(FindBin)
d4be0c
BuildRequires:	perl(IPC::Open2)
d4be0c
BuildRequires:	perl(lib)
d4be0c
BuildRequires:	perl(sort)
d4be0c
BuildRequires:	perl(Test::More)
d4be0c
%if %{with perl_namespace_clean_enables_optional_test}
d4be0c
# Optional Tests
d4be0c
BuildRequires:	perl(Variable::Magic)
d4be0c
%endif
d4be0c
# Runtime
d4be0c
Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
d4be0c
Requires:	perl(B::Hooks::EndOfScope) >= 0.12
d4be0c
Requires:	perl(Package::Stash) >= 0.23
d4be0c
d4be0c
# Avoid unwanted requires/provides that come with the test suite
d4be0c
%{?perl_default_filter}
d4be0c
# namespace::clean::_Util is a private package
d4be0c
%global __requires_exclude %{?__requires_exclude:__requires_exclude|}^perl\\(namespace::clean::_Util\\)
d4be0c
d4be0c
%description
d4be0c
When you define a function, or import one, into a Perl package, it will
d4be0c
naturally also be available as a method. This does not per se cause
d4be0c
problems, but it can complicate subclassing and, for example, plugin
d4be0c
classes that are included via multiple inheritance by loading them as
d4be0c
base classes.
d4be0c
d4be0c
The 'namespace::clean' pragma will remove all previously declared or
d4be0c
imported symbols at the end of the current package's compile cycle.
d4be0c
Functions called in the package itself will still be bound by their
d4be0c
name, but they won't show up as methods on your class or instances.
d4be0c
d4be0c
%prep
d4be0c
%setup -q -n namespace-clean-%{version}
d4be0c
d4be0c
%build
d4be0c
perl Makefile.PL INSTALLDIRS=vendor
d4be0c
make %{?_smp_mflags}
d4be0c
d4be0c
%install
d4be0c
make pure_install DESTDIR=%{buildroot}
d4be0c
find %{buildroot} -type f -name .packlist -delete
d4be0c
%{_fixperms} -c %{buildroot}
d4be0c
d4be0c
%check
d4be0c
make test
d4be0c
d4be0c
%files
d4be0c
%doc Changes t/
d4be0c
%{perl_vendorlib}/namespace/
d4be0c
%{_mandir}/man3/namespace::clean.3*
d4be0c
d4be0c
%changelog
d4be0c
* Fri Feb  9 2018 Paul Howarth <paul@city-fan.org> - 0.27-7
d4be0c
- BR: perl-generators unconditionally
d4be0c
d4be0c
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.27-6
d4be0c
- Escape macros in %%changelog
d4be0c
d4be0c
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.27-5
d4be0c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
d4be0c
d4be0c
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.27-4
d4be0c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
d4be0c
d4be0c
* Mon Jun 05 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.27-3
d4be0c
- Perl 5.26 rebuild
d4be0c
d4be0c
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.27-2
d4be0c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
d4be0c
d4be0c
* Thu May 19 2016 Paul Howarth <paul@city-fan.org> - 0.27-1
d4be0c
- Update to 0.27
d4be0c
  - Allow packages to be cleaned multiple times
d4be0c
  - Ensure the debugger workarounds are applied only when DB::sub is actively
d4be0c
    used (they are superfluous otherwise)
d4be0c
  - Work around P5#72210, resulting in fails on 5.8.8 -Duselongdouble
d4be0c
  - Fix incorrect name in META (CPAN RT#107813)
d4be0c
- BR: perl-generators where available
d4be0c
- Simplify find command using -delete
d4be0c
d4be0c
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.26-3
d4be0c
- Perl 5.24 rebuild
d4be0c
d4be0c
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.26-2
d4be0c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
d4be0c
d4be0c
* Wed Oct  7 2015 Paul Howarth <paul@city-fan.org> - 0.26-1
d4be0c
- Update to 0.26
d4be0c
  - Exclusively use Package::Stash::PP on perls < 5.8.7 until a fixed
d4be0c
    Package::Stash::XS ships - breakage keeps getting re-introduced
d4be0c
    (CPAN RT#74151, CPAN RT#107343)
d4be0c
  - Explicitly document the late runtime binding of 'sort SUBNAME ...'
d4be0c
    (CPAN RT#101247)
d4be0c
  - No longer rely on Sub::Identify - either use Sub::Util or B (CPAN RT#96945)
d4be0c
- Classify buildreqs by usage
d4be0c
- Filter dependency on private package namespace::clean::_Util
d4be0c
- Drop EL-6 support since build requirements can't be met there
d4be0c
d4be0c
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.25-5
d4be0c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
d4be0c
d4be0c
* Sat Jun 06 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.25-4
d4be0c
- Perl 5.22 rebuild
d4be0c
d4be0c
* Fri Aug 29 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.25-3
d4be0c
- Perl 5.20 rebuild
d4be0c
d4be0c
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.25-2
d4be0c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
d4be0c
d4be0c
* Wed Mar  5 2014 Paul Howarth <paul@city-fan.org> - 0.25-1
d4be0c
- Update to 0.25
d4be0c
  - Fix incorrect ExtUtils::CBuilder detection routine leading to Makefile.PL
d4be0c
    crashes when EU::CB is not available
d4be0c
- Drop obsoletes/provides for old tests sub-package
d4be0c
- Drop EL-5 support since build requirements can't be met there
d4be0c
d4be0c
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.24-4
d4be0c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
d4be0c
d4be0c
* Mon Jul 29 2013 Petr Pisar <ppisar@redhat.com> - 0.24-3
d4be0c
- Perl 5.18 rebuild
d4be0c
d4be0c
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.24-2
d4be0c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
d4be0c
d4be0c
* Wed Dec  5 2012 Paul Howarth <paul@city-fan.org> - 0.24-1
d4be0c
- Update to 0.24
d4be0c
  - Properly skip debugger test when optional deps not available
d4be0c
  - Make sure pure-perl tests pass correctly on space-containing paths
d4be0c
    (CPAN RT#77528)
d4be0c
  - Remove all the pure-perl fallback code and depend on PP-capable
d4be0c
    B::H::EOS 0.12
d4be0c
- Module no longer attempts to use Hash::Util::FieldHash, so drop filters
d4be0c
- BR: perl(Sub::Identify) and perl(Sub::Name) unconditionally
d4be0c
- BR: perl(base), perl(ExtUtils::CBuilder) and perl(lib)
d4be0c
- Drop BR: perl(FindBin), not dual-lived upstream
d4be0c
- Update patch for building with old Test::More versions
d4be0c
d4be0c
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.23-3
d4be0c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
d4be0c
d4be0c
* Tue Jun 19 2012 Petr Pisar <ppisar@redhat.com> - 0.23-2
d4be0c
- Perl 5.16 rebuild
d4be0c
d4be0c
* Sun Mar 11 2012 Paul Howarth <paul@city-fan.org> - 0.23-1
d4be0c
- Update to 0.23
d4be0c
  - Rely on B::Hooks::EndOfScope version 0.10 to fix issues with new
d4be0c
    Module::Runtime versions (≥ 0.012) on perl 5.10 due to incorrect hook
d4be0c
    firing due to %%^H localisation
d4be0c
  - Fix failures on 5.13.6 due to incorrect version number threshold
d4be0c
    (CPAN RT#74683)
d4be0c
- Don't need to remove empty directories from buildroot
d4be0c
- Drop %%defattr, redundant since rpm 4.4
d4be0c
d4be0c
* Fri Jan 27 2012 Paul Howarth <paul@city-fan.org> - 0.22-1
d4be0c
- Update to 0.22
d4be0c
  - Limit the debugger workarounds to perls between 5.8.8 and 5.14, extend
d4be0c
    debugger support to all perl versions (CPAN RT#69862)
d4be0c
  - If possible, automatically install (but not load) the debugger workaround
d4be0c
    libraries on perls between 5.8.8 and 5.14 (CPAN RT#72368)
d4be0c
  - Add back dropped NAME section (CPAN RT#70259)
d4be0c
  - Simplify the ≥ 5.10 PP variant even more - move the hook from DESTROY
d4be0c
    into DELETE
d4be0c
  - Force explicit callback invocation order on 5.8 PP
d4be0c
  - Replace the %%^H tie approach with fieldhashes, which fixes all known
d4be0c
    corner cases and caveats on supported perls ≥ 5.8.1 (CPAN RT#73402)
d4be0c
  - Compile away the debugger fixup on perls ≥ 5.15.5
d4be0c
- Only BR:/R: Sub::Identify and Sub::Name for perl versions where they're
d4be0c
  actually needed
d4be0c
- Reinstate compatibility with old distributions like EL-5
d4be0c
  - Patch test suite to work with Test::More < 0.88 if necessary
d4be0c
  - Filter dependency on Hash::Util::FieldHash on perl 5.8.x
d4be0c
  - Add back buildroot definition, %%clean section, %%defattr etc.
d4be0c
- Only include tests if we have %%{perl_default_filter} to avoid the unwanted
d4be0c
  requires/provides that come with them
d4be0c
- Drop redundant buildreq perl(CPAN)
d4be0c
- Make %%files list more explicit
d4be0c
- Use tabs
d4be0c
d4be0c
* Sun Jan 22 2012 Iain Arnell <iarnell@gmail.com> - 0.21-3
d4be0c
- Drop tests subpackage; move tests to main package documentation
d4be0c
d4be0c
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.21-2
d4be0c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
d4be0c
d4be0c
* Sun Oct 02 2011 Iain Arnell <iarnell@gmail.com> - 0.21-1
d4be0c
- Update to latest upstream version
d4be0c
- Clean up spec for modern rpmbuild
d4be0c
d4be0c
* Wed Jul 20 2011 Petr Sabata <contyk@redhat.com> - 0.20-3
d4be0c
- Perl mass rebuild
d4be0c
d4be0c
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20-2
d4be0c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
d4be0c
d4be0c
* Sat Jan 08 2011 Iain Arnell <iarnell@gmail.com> - 0.20-1
d4be0c
- Update to latest upstream version
d4be0c
- Update BR perl(Package::Stash) >= 0.22
d4be0c
d4be0c
* Tue Dec 21 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.18-2
d4be0c
- Rebuild to fix problems with vendorarch/lib (#661697)
d4be0c
d4be0c
* Sun Aug 01 2010 Iain Arnell <iarnell@gmail.com> - 0.18-1
d4be0c
- Update by Fedora::App::MaintainerTools 0.006
d4be0c
- Updating to latest GA CPAN version (0.18)
d4be0c
- Added a new br on perl(Exporter) (version 0)
d4be0c
- Altered br on perl(ExtUtils::MakeMaker) (6.42 => 6.31)
d4be0c
- Added a new br on perl(Package::Stash) (version 0.03)
d4be0c
- Added a new br on perl(constant) (version 0)
d4be0c
- Added a new br on perl(vars) (version 0)
d4be0c
- Dropped old BR on perl(Symbol)
d4be0c
- Dropped old requires on perl(Symbol)
d4be0c
- Manually drop unnecessary requires
d4be0c
d4be0c
* Tue May 04 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.14-1
d4be0c
- Mass rebuild with perl-5.12.0 & update
d4be0c
d4be0c
* Tue Feb 23 2010 Chris Weyl <cweyl@alumni.drew.edu> - 0.13-2
d4be0c
- Update by Fedora::App::MaintainerTools 0.003
d4be0c
- PERL_INSTALL_ROOT => DESTDIR
d4be0c
d4be0c
* Fri Feb 05 2010 Chris Weyl <cweyl@alumni.drew.edu> - 0.13-1
d4be0c
- Update filtering perl_default_filter
d4be0c
- Auto-update to 0.13 (by cpan-spec-update 0.01)
d4be0c
- Altered br on perl(ExtUtils::MakeMaker) (0 => 6.42)
d4be0c
- Added a new br on perl(Sub::Identify) (version 0.04)
d4be0c
- Added a new br on perl(Sub::Name) (version 0.04)
d4be0c
- Altered br on perl(Test::More) (0.62 => 0.88)
d4be0c
- Added a new br on CPAN (inc::Module::AutoInstall found)
d4be0c
- Added a new req on perl(B::Hooks::EndOfScope) (version 0.07)
d4be0c
- Added a new req on perl(Sub::Identify) (version 0.04)
d4be0c
- Added a new req on perl(Sub::Name) (version 0.04)
d4be0c
- Added a new req on perl(Symbol) (version 0)
d4be0c
d4be0c
* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 0.11-3
d4be0c
- Rebuild against perl 5.10.1
d4be0c
d4be0c
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-2
d4be0c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
d4be0c
d4be0c
* Thu Apr 02 2009 Chris Weyl <cweyl@alumni.drew.edu> - 0.11-1
d4be0c
- Update to 0.11
d4be0c
d4be0c
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.09-2
d4be0c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
d4be0c
d4be0c
* Tue Dec 02 2008 Chris Weyl <cweyl@alumni.drew.edu> - 0.09-1
d4be0c
- Update to 0.09
d4be0c
- Note BR change from Scope::Guard to B::Hooks::EndOfScope
d4be0c
d4be0c
* Mon Sep 08 2008 Chris Weyl <cweyl@alumni.drew.edu> - 0.08-2
d4be0c
- Bump
d4be0c
d4be0c
* Sat Sep 06 2008 Chris Weyl <cweyl@alumni.drew.edu> - 0.08-1
d4be0c
- Initial Fedora packaging
d4be0c
- Generated with cpan2dist (CPANPLUS::Dist::Fedora version 0.0.1)