%{?scl:%scl_package perl-Sub-Name} # TODO: BR: perl(B::C) when available Name: %{?scl_prefix}perl-Sub-Name Version: 0.12 Release: 1%{?dist} Summary: Name - or rename - a sub License: GPL+ or Artistic URL: http://search.cpan.org/dist/Sub-Name/ Source0: http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/Sub-Name-%{version}.tar.gz # Module Build BuildRequires: %{?scl_prefix}perl BuildRequires: %{?scl_prefix}perl(ExtUtils::MakeMaker) # Module Runtime BuildRequires: %{?scl_prefix}perl(Exporter) >= 5.57 BuildRequires: %{?scl_prefix}perl(strict) BuildRequires: %{?scl_prefix}perl(warnings) BuildRequires: %{?scl_prefix}perl(XSLoader) # Test Suite BuildRequires: %{?scl_prefix}perl(B::Deparse) BuildRequires: %{?scl_prefix}perl(Devel::CheckBin) BuildRequires: %{?scl_prefix}perl(File::Spec) BuildRequires: %{?scl_prefix}perl(Test::More) >= 0.88 # Optional Tests BuildRequires: %{?scl_prefix}perl(CPAN::Meta) >= 2.120900 # Runtime Requires: %{?scl_prefix}perl(:MODULE_COMPAT_%(%{?scl:scl enable %{scl} '}eval "$(perl -V:version)";echo $version%{?scl:'})) # Don't "provide" private perl objects %{?perl_default_filter} %description This module allows one to "name" or rename subroutines, including anonymous ones. Note that this is mainly for aid in debugging; you still cannot call the sub by the new name (without some deep magic). %prep %setup -q -n Sub-Name-%{version} %build %{?scl:scl enable %{scl} '}perl Makefile.PL INSTALLDIRS=vendor optimize="%{optflags}" && make %{?_smp_mflags}%{?scl:'} %install %{?scl:scl enable %{scl} '}make pure_install DESTDIR=%{buildroot}%{?scl:'} find %{buildroot} -type f -name .packlist -exec rm -f {} \; find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} \; %{_fixperms} %{buildroot} %check %{?scl:scl enable %{scl} '}make test%{?scl:'} %files %if 0%{?_licensedir:1} %doc LICENSE %else %doc LICENSE %endif %doc Changes CONTRIBUTING README %{perl_vendorarch}/auto/Sub/ %{perl_vendorarch}/Sub/ %{_mandir}/man3/Sub::Name.3pm* %changelog * Tue Sep 23 2014 Paul Howarth - 0.12-1 - Update to 0.12 - Move variable declaration to fix warning under -Werror=declaration-after-statement, to allow compilation under MSVC (GH#3) - Converted distribution packaging to Dist::Zilla - Fix licence in LICENSE and pod - Package new upstream CONTRIBUTING and LICENSE files - Classify buildreqs by usage * Thu Aug 28 2014 Jitka Plesnikova - 0.09-2 - Perl 5.20 rebuild * Mon Aug 18 2014 Paul Howarth - 0.09-1 - Update to 0.09 - Copy the contents of the %%DB::sub entry if it exists; fixes Devel::NYTProf's anon sub handling (CPAN RT#50524) - Drop upstreamed debugger patch - Drop EL-5 compatibility since we need Devel::CheckBin, which can't be built for EPEL-5 or EPEL-6 * Sun Aug 17 2014 Fedora Release Engineering - 0.08-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Mon Aug 4 2014 Paul Howarth - 0.08-1 - Update to 0.08 - Fix leak when setting a fully-qualified name (GH#1) - Update debugger patch * Mon Jul 14 2014 Paul Howarth - 0.07-1 - Update to 0.07 - Skip optional test if B::C 1.48 is not installed * Fri Jul 11 2014 Paul Howarth - 0.06-1 - Update to 0.06 - Do not change the string arg in XS, use copy instead (CPAN RT#96893) - Add README make target - Add more distribution metadata - This release by ETHER → update source URL - Update debugger patch (CPAN RT#96893) - Drop %%defattr, redundant since rpm 4.4 - Don't need to remove empty directories from the buildroot * Sat Jun 07 2014 Fedora Release Engineering - 0.05-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sun Aug 04 2013 Fedora Release Engineering - 0.05-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Wed Jul 17 2013 Petr Pisar - 0.05-10 - Perl 5.18 rebuild * Thu Feb 14 2013 Fedora Release Engineering - 0.05-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Fri Jul 20 2012 Fedora Release Engineering - 0.05-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Fri Jun 08 2012 Petr Pisar - 0.05-7 - Perl 5.16 rebuild * Sat Feb 18 2012 Paul Howarth - 0.05-6 - Add patch for CPAN RT#50524 (copy contents of %%DB::sub entry if it exists) - Reinstate compatibility with old distributions like EL-5 - Add BuildRoot definition - Clean buildroot in %%install - Restore %%clean section - Restore %%defattr - Don't use + to terminate find -exec commands - Spec clean-up - Make %%files list more explicit - Use DESTDIR rather than PERL_INSTALL_ROOT - Don't use macros for commands - Use tabs - Add buildreqs for Perl core modules that might be dual-lived - Explicit requires for "use base XXX;" only required prior to rpm 4.9 * Fri Jan 13 2012 Fedora Release Engineering - 0.05-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Fri Jun 17 2011 Marcela Mašláňová - 0.05-4 - Perl mass rebuild * Wed Feb 09 2011 Fedora Release Engineering - 0.05-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Wed Dec 22 2010 Marcela Maslanova - 0.05-2 - Rebuild to fix problems with vendorarch/lib (#661697) * Sat Dec 18 2010 Iain Arnell - 0.05-1 - Update to latest upstream version - Clean up spec for modern rpmbuild - BR perl(Test::More) - Requires perl(DynaLoader) and perl(Exporter) * Thu May 06 2010 Marcela Maslanova - 0.04-6 - Mass rebuild with perl-5.12.0 * Mon Dec 7 2009 Stepan Kasal - 0.04-5 - Rebuild against perl 5.10.1 * Thu Aug 27 2009 Chris Weyl - 0.04-4 - Filtering errant private provides * Sun Jul 26 2009 Fedora Release Engineering - 0.04-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Thu Feb 26 2009 Fedora Release Engineering - 0.04-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Sun Aug 03 2008 Chris Weyl - 0.04-1 - Update to 0.04 * Sat Mar 15 2008 Chris Weyl - 0.03-1 - Update to 0.03 * Tue Mar 4 2008 Tom "spot" Callaway - 0.02-5 - Rebuild for new perl * Mon Feb 18 2008 Fedora Release Engineering - 0.02-4.1 - Autorebuild for GCC 4.3 * Tue Oct 16 2007 Tom "spot" Callaway - 0.02-3.1 - Correct license tag - Add BR: perl(ExtUtils::MakeMaker) * Tue Aug 21 2007 Chris Weyl - 0.02-3 - Bump * Wed Sep 06 2006 Chris Weyl - 0.02-2 - Bump * Sat Sep 02 2006 Chris Weyl - 0.02-1 - Specfile autogenerated by cpanspec 1.69.1