Blame SPECS/perl-namespace-clean.spec

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