5fb949c
# Want to use Devel::GlobalDestruction::XS with perl < 5.13.7
14502c6
%global want_xs 0%{?fedora} < 16 && 0%{?rhel} < 7
32c3b7a
f8e941e
Name:		perl-Devel-GlobalDestruction
14502c6
Version:	0.14
bedabf5
Release:	5%{?dist}
f8e941e
License:	GPL+ or Artistic
f8e941e
Group:		Development/Libraries
f8e941e
Summary:	Expose PL_dirty, the flag that marks global destruction
801f7d6
URL:		http://search.cpan.org/dist/Devel-GlobalDestruction
801f7d6
Source:		http://search.cpan.org/CPAN/authors/id/H/HA/HAARG/Devel-GlobalDestruction-%{version}.tar.gz
f8e941e
BuildArch:	noarch
14502c6
# Module Build
14502c6
BuildRequires:	coreutils
14502c6
BuildRequires:	findutils
14502c6
BuildRequires:	make
4edee08
BuildRequires:	perl-interpreter
1ca50ae
BuildRequires:	perl-generators
14502c6
BuildRequires:	perl(base)
14502c6
BuildRequires:	perl(Carp)
14502c6
BuildRequires:	perl(DynaLoader)
14502c6
BuildRequires:	perl(Exporter)
f8e941e
BuildRequires:	perl(ExtUtils::MakeMaker)
14502c6
BuildRequires:	perl(File::Basename)
f7308a9
BuildRequires:	perl(File::Spec)
14502c6
BuildRequires:	perl(File::Spec::Functions)
f7308a9
BuildRequires:	perl(File::Temp)
14502c6
BuildRequires:	perl(Text::ParseWords)
14502c6
# Module Runtime
14502c6
BuildRequires:	perl(B)
14502c6
BuildRequires:	perl(strict)
14502c6
BuildRequires:	perl(Sub::Exporter::Progressive) >= 0.001011
14502c6
BuildRequires:	perl(warnings)
14502c6
# Test Suite
14502c6
BuildRequires:	perl(Config)
b47242e
BuildRequires:	perl(FindBin)
b47242e
BuildRequires:	perl(IPC::Open2)
b47242e
BuildRequires:	perl(POSIX)
f7308a9
BuildRequires:	perl(threads)
5fb949c
BuildRequires:	perl(threads::shared)
14502c6
# Dependencies
f8e941e
Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Chris Weyl 66dc3f1
5fb949c
# Use Devel::GlobalDestruction::XS on older perls
5fb949c
%if %{want_xs}
5fb949c
BuildRequires:	perl(Devel::GlobalDestruction::XS)
5fb949c
Requires:	perl(Devel::GlobalDestruction::XS)
5fb949c
%endif
Chris Weyl b26058c
Chris Weyl 66dc3f1
%description
Chris Weyl 66dc3f1
Perl's global destruction is a little tricky to deal with with respect to
Chris Weyl 66dc3f1
finalizers because it's not ordered and objects can sometimes disappear.
Chris Weyl 66dc3f1
Chris Weyl 66dc3f1
Writing defensive destructors is hard and annoying, and usually if global
0a70c40
destruction is happening you only need the destructors that free up non
Chris Weyl 66dc3f1
process local resources to actually execute.
Chris Weyl 66dc3f1
Chris Weyl 66dc3f1
For these constructors you can avoid the mess by simply bailing out if
Chris Weyl 66dc3f1
global destruction is in effect.
Chris Weyl 66dc3f1
Chris Weyl 66dc3f1
%prep
Chris Weyl 66dc3f1
%setup -q -n Devel-GlobalDestruction-%{version}
Chris Weyl 66dc3f1
Chris Weyl 66dc3f1
%build
5fb949c
perl Makefile.PL INSTALLDIRS=vendor
Chris Weyl 66dc3f1
make %{?_smp_mflags}
Chris Weyl 66dc3f1
Chris Weyl 66dc3f1
%install
Chris Weyl 66dc3f1
rm -rf %{buildroot}
f8e941e
make pure_install DESTDIR=%{buildroot}
14502c6
find %{buildroot} -type f -name .packlist -delete
14502c6
%{_fixperms} -c %{buildroot}
Chris Weyl 66dc3f1
Chris Weyl 66dc3f1
%check
Chris Weyl 66dc3f1
make test
Chris Weyl 66dc3f1
Chris Weyl 66dc3f1
%files
d7ca9e9
%doc Changes README t/
32c3b7a
%{perl_vendorlib}/Devel/
14502c6
%{_mandir}/man3/Devel::GlobalDestruction.3*
Chris Weyl 66dc3f1
Chris Weyl 66dc3f1
%changelog
bedabf5
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.14-5
bedabf5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
bedabf5
666578b
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.14-4
666578b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
666578b
9b2652f
* Mon Jun 05 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.14-3
9b2652f
- Perl 5.26 rebuild
9b2652f
2158d70
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.14-2
2158d70
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
2158d70
14502c6
* Tue Nov  1 2016 Paul Howarth <paul@city-fan.org> - 0.14-1
14502c6
- Update to 0.14
14502c6
  - Stop relying on . being in @INC
14502c6
  - Switch to ExtUtils::HasCompiler to detect presence of a compiler
14502c6
- Classify buildreqs by usage
14502c6
74ab14d
* Fri Jul 22 2016 Petr Pisar <ppisar@redhat.com> - 0.13-7
74ab14d
- Use distribution instead of perl version to control build-time dependencies
74ab14d
2c3a77d
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.13-6
2c3a77d
- Perl 5.24 rebuild
2c3a77d
18eca34
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.13-5
18eca34
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
18eca34
289d217
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.13-4
289d217
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
289d217
c730ac0
* Fri Jun 05 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.13-3
c730ac0
- Perl 5.22 rebuild
c730ac0
8ad58bf
* Thu Aug 28 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.13-2
8ad58bf
- Perl 5.20 rebuild
8ad58bf
d7ca9e9
* Mon Aug 18 2014 Paul Howarth <paul@city-fan.org> - 0.13-1
d7ca9e9
- Update to 0.13
d7ca9e9
  - Include README
d7ca9e9
  - Include minimum perl version 5.6 in metadata
d7ca9e9
a6fb279
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12-2
a6fb279
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
a6fb279
b47242e
* Fri Nov  1 2013 Paul Howarth <paul@city-fan.org> - 0.12-1
b47242e
- Update to 0.12
b47242e
  - Fix detection when loaded during global destruction by checking B::main_cv
b47242e
    instead of B::main_start
b47242e
  - Bump Sub::Exporter::Progressive dependency to fix loading in global
b47242e
    destruction
b47242e
- Specify all dependencies
b47242e
3536643
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-3
3536643
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
3536643
bba67c8
* Mon Jul 22 2013 Petr Pisar <ppisar@redhat.com> - 0.11-2
bba67c8
- Perl 5.18 rebuild
bba67c8
801f7d6
* Wed Apr  3 2013 Paul Howarth <paul@city-fan.org> - 0.11-1
801f7d6
- Update to 0.11
801f7d6
  - Fix upgrading from version 0.09 or older
801f7d6
- This release by HAARG -> update source URL
801f7d6
5fb949c
* Wed Mar 27 2013 Paul Howarth <paul@city-fan.org> - 0.10-1
5fb949c
- Update to 0.10 (#928262)
5fb949c
  - Rewrite pure-perl implementation in terms of B::main_start (greatly
5fb949c
    simplifies code)
5fb949c
  - Fix pure-perl behavior under $^C (CPAN RT#78619)
5fb949c
  - Separate XS portion into a compiler-optional dependency
5fb949c
    Devel::GlobalDestruction::XS
5fb949c
- Bump perl(Sub::Exporter::Progressive) version requirement to 0.001006
5fb949c
- Package is always noarch now
5fb949c
- BR:/R: perl(Devel::GlobalDestruction::XS) with perl < 5.13.7
5fb949c
- BR: perl(threads::shared) for the test suite
5fb949c
35cca2d
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.09-2
35cca2d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
35cca2d
2e8d642
* Thu Aug  9 2012 Paul Howarth <paul@city-fan.org> - 0.09-1
2e8d642
- Update to 0.09
2e8d642
  - Rewrite completely broken pure-perl GD detection under threads
2e8d642
  - Fix pure-perl implementation incorrectly reporting GD during END phase
2e8d642
- This release by RIBASUSHI -> update source URL
2e8d642
7df554d
* Wed Aug  1 2012 Paul Howarth <paul@city-fan.org> - 0.08-1
7df554d
- Update to 0.08
7df554d
  - Switch to Sub::Exporter::Progressive
7df554d
- BR: perl(Sub::Exporter::Progressive) ≥ 0.001002 rather than plain
7df554d
  perl(Sub::Exporter)
7df554d
f7308a9
* Thu Jul 26 2012 Paul Howarth <paul@city-fan.org> - 0.07-1
f7308a9
- Update to 0.07
f7308a9
  - Actually detect errors in pure-perl test
f7308a9
  - Add prototype to pure-perl pre-5.14 version
f7308a9
- This release by FLORA -> update source URL
f7308a9
- BR: perl(File::Spec), perl(File::Temp) and perl(threads)
f7308a9
2c1a31e
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.06-3
2c1a31e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2c1a31e
4bf1237
* Thu Jun 28 2012 Petr Pisar <ppisar@redhat.com> - 0.06-2
4bf1237
- Perl 5.16 rebuild
4bf1237
a1a9158
* Thu Jun 14 2012 Paul Howarth <paul@city-fan.org> - 0.06-1
a1a9158
- Update to 0.06
a1a9158
  - De-retardize XS-less behavior under SpeedyCGI
a1a9158
  - Test suite now works from within space-containing paths
a1a9158
- This release by RIBASUSHI -> update source URL
a1a9158
5b001fd
* Wed Jun 13 2012 Petr Pisar <ppisar@redhat.com> - 0.05-2
5b001fd
- Perl 5.16 rebuild
5b001fd
9928221
* Fri Apr 27 2012 Paul Howarth <paul@city-fan.org> - 0.05-1
9928221
- Update to 0.05
9928221
  - Add pure-perl implementation for situations where neither ${^GLOBAL_PHASE}
9928221
    nor XS are available
9928221
- This release by DOY -> update source URL
9928221
- BR: perl(XSLoader) only if we're doing an XS build, and in that case add a
9928221
  runtime dependency on it and BR: perl(ExtUtils::CBuilder) ≥ 0.27 too
9928221
- Add runtime dependency on perl(Carp)
9928221
- Drop %%defattr, redundant since rpm 4.4
9928221
f8e941e
* Fri Jan 13 2012 Paul Howarth <paul@city-fan.org> - 0.04-1
f8e941e
- Update to 0.04
f8e941e
  - To detect a perl with ${^GLOBAL_PHASE}, check for the feature itself
f8e941e
    instead of a specific perl version
f8e941e
  - Update the documentation to reflect the use of ${^GLOBAL_PHASE} if available
f8e941e
  - Stop depending on Scope::Guard for the tests
f8e941e
  - Upgrade ppport.h from version 3.13 to 3.19
f8e941e
- Drop no-longer-necessary buildreq perl(Scope::Guard)
f8e941e
- Use DESTDIR rather than PERL_INSTALL_ROOT
f8e941e
- BR: perl(XSLoader)
f8e941e
40194a0
* Wed Jan 11 2012 Paul Howarth <paul@city-fan.org> - 0.03-3
40194a0
- Fedora 17 mass rebuild
40194a0
Marcela Mašláňová 5c57062
* Wed Jun 29 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.03-2
Marcela Mašláňová 5c57062
- Perl mass rebuild
Marcela Mašláňová 5c57062
32c3b7a
* Fri Jun 24 2011 Paul Howarth <paul@city-fan.org> - 0.03-1
32c3b7a
- Update to 0.03
32c3b7a
  - Drop the XS code on perl versions recent enough to have ${^GLOBAL_PHASE}
32c3b7a
    (5.13.7 onwards)
32c3b7a
  - Require at least Perl 5.6
32c3b7a
    - Use XSLoader without a fallback to DynaLoader
32c3b7a
    - Use our instead of use vars
32c3b7a
- This release by FLORA -> update source URL
32c3b7a
- Package is noarch from perl 5.13.7
32c3b7a
- Package Changes file
32c3b7a
- Use %%{?perl_default_filter}
32c3b7a
762a026
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.02-12
762a026
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
762a026
Marcela Mašláňová 9effa62
* Thu Dec 16 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.02-11
0a70c40
- Rebuild to fix problems with vendorarch/lib (#661697)
Marcela Mašláňová 9effa62
46fd3af
* Fri Apr 30 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.02-10
46fd3af
- Mass rebuild with perl-5.12.0
46fd3af
06bab04
* Fri Apr 30 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.02-9
06bab04
- Mass rebuild with perl-5.12.0
06bab04
43d80ee
* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 0.02-8
43d80ee
- rebuild against perl 5.10.1
43d80ee
Chris Weyl 816c82a
* Sun Aug 23 2009 Chris Weyl <cweyl@alumni.drew.edu> 0.02-7
Chris Weyl 816c82a
- bump
Chris Weyl 816c82a
fc1e091
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.02-6
fc1e091
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
fc1e091
Chris Weyl b26058c
* Sat May 23 2009 Chris Weyl <cweyl@alumni.drew.edu> - 0.02-5
Chris Weyl b26058c
- Stripping bad provides of private Perl extension libs
Chris Weyl b26058c
da269df
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.02-4
da269df
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
da269df
Chris Weyl 6fb5eda
* Mon Nov 03 2008 Chris Weyl <cweyl@alumni.drew.edu> 0.02-3
Chris Weyl 6fb5eda
- bump
Chris Weyl 6fb5eda
Chris Weyl 66dc3f1
* Sat Nov 01 2008 Chris Weyl <cweyl@alumni.drew.edu> 0.02-2
Chris Weyl 66dc3f1
- tweak summary
Chris Weyl 66dc3f1
Chris Weyl 66dc3f1
* Sun Oct 26 2008 Chris Weyl <cweyl@alumni.drew.edu> 0.02-1
Chris Weyl 66dc3f1
- clean up for review submission
Chris Weyl 66dc3f1
Chris Weyl 66dc3f1
* Sun Oct 19 2008 Chris Weyl <cweyl@alumni.drew.edu> 0.02-0.1
Chris Weyl 66dc3f1
- initial RPM packaging
Chris Weyl 66dc3f1
- generated with cpan2dist (CPANPLUS::Dist::RPM version 0.0.5)
Chris Weyl 66dc3f1