Blame SPECS/perl-Devel-GlobalDestruction.spec

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