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