From 5fb949c4e9745f2f82ad1388cf3b85a0f0c7db03 Mon Sep 17 00:00:00 2001 From: Paul Howarth Date: Wed, 27 Mar 2013 13:24:57 +0000 Subject: [PATCH] Update to 0.10 (#928262) - New upstream release 0.10 - Rewrite pure-perl implementation in terms of B::main_start (greatly simplifies code) - Fix pure-perl behavior under $^C (CPAN RT#78619) - Separate XS portion into a compiler-optional dependency Devel::GlobalDestruction::XS - Bump perl(Sub::Exporter::Progressive) version requirement to 0.001006 - Package is always noarch now - BR:/R: perl(Devel::GlobalDestruction::XS) with perl < 5.13.7 - BR: perl(threads::shared) for the test suite --- perl-Devel-GlobalDestruction.spec | 43 +++++++++++++++++-------------- sources | 2 +- 2 files changed, 25 insertions(+), 20 deletions(-) diff --git a/perl-Devel-GlobalDestruction.spec b/perl-Devel-GlobalDestruction.spec index 9313bc1..c17e5fa 100644 --- a/perl-Devel-GlobalDestruction.spec +++ b/perl-Devel-GlobalDestruction.spec @@ -1,32 +1,31 @@ -# Package is noarch from perl 5.13.7 -%global noarch_package %(perl -e 'print (($] >= 5.013007) ? 1 : 0);') +# Want to use Devel::GlobalDestruction::XS with perl < 5.13.7 +%global want_xs %(perl -e 'print (($] >= 5.013007) ? 0 : 1);') Name: perl-Devel-GlobalDestruction -Version: 0.09 -Release: 2%{?dist} +Version: 0.10 +Release: 1%{?dist} License: GPL+ or Artistic Group: Development/Libraries Summary: Expose PL_dirty, the flag that marks global destruction Url: http://search.cpan.org/dist/Devel-GlobalDestruction Source: http://search.cpan.org/CPAN/authors/id/R/RI/RIBASUSHI/Devel-GlobalDestruction-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu) -%if %{noarch_package} BuildArch: noarch -%else BuildRequires: perl(ExtUtils::CBuilder) >= 0.27 -BuildRequires: perl(XSLoader) -Requires: perl(XSLoader) -%endif BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(File::Spec) BuildRequires: perl(File::Temp) -BuildRequires: perl(Sub::Exporter::Progressive) >= 0.001002 +BuildRequires: perl(Sub::Exporter::Progressive) >= 0.001006 BuildRequires: perl(threads) +BuildRequires: perl(threads::shared) Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) Requires: perl(Carp) -# Don't "provide" private Perl libs -%{?perl_default_filter} +# Use Devel::GlobalDestruction::XS on older perls +%if %{want_xs} +BuildRequires: perl(Devel::GlobalDestruction::XS) +Requires: perl(Devel::GlobalDestruction::XS) +%endif %description Perl's global destruction is a little tricky to deal with with respect to @@ -43,14 +42,13 @@ global destruction is in effect. %setup -q -n Devel-GlobalDestruction-%{version} %build -perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" +perl Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %install rm -rf %{buildroot} make pure_install DESTDIR=%{buildroot} find %{buildroot} -type f -name .packlist -exec rm -f {} ';' -find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';' %{_fixperms} %{buildroot} %check @@ -61,15 +59,22 @@ rm -rf %{buildroot} %files %doc Changes t/ -%if %{noarch_package} %{perl_vendorlib}/Devel/ -%else -%{perl_vendorarch}/auto/Devel/ -%{perl_vendorarch}/Devel/ -%endif %{_mandir}/man3/Devel::GlobalDestruction.3pm* %changelog +* Wed Mar 27 2013 Paul Howarth - 0.10-1 +- Update to 0.10 (#928262) + - Rewrite pure-perl implementation in terms of B::main_start (greatly + simplifies code) + - Fix pure-perl behavior under $^C (CPAN RT#78619) + - Separate XS portion into a compiler-optional dependency + Devel::GlobalDestruction::XS +- Bump perl(Sub::Exporter::Progressive) version requirement to 0.001006 +- Package is always noarch now +- BR:/R: perl(Devel::GlobalDestruction::XS) with perl < 5.13.7 +- BR: perl(threads::shared) for the test suite + * Thu Feb 14 2013 Fedora Release Engineering - 0.09-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild diff --git a/sources b/sources index 5800265..6922e6f 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -97e52fdf2de2df1843a5d3d9fce725df Devel-GlobalDestruction-0.09.tar.gz +db9c54858c40f7cf20bab14093e32caf Devel-GlobalDestruction-0.10.tar.gz