Name: perl-Devel-GlobalDestruction Version: 0.02 Release: 7%{?dist} # see lib/Devel/GlobalDestruction.pm License: GPL+ or Artistic Group: Development/Libraries Summary: Expose PL_dirty, the flag which marks global destruction Source: http://search.cpan.org/CPAN/authors/id/N/NU/NUFFIN/Devel-GlobalDestruction-%{version}.tar.gz Url: http://search.cpan.org/dist/Devel-GlobalDestruction BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Scope::Guard) BuildRequires: perl(Sub::Exporter) # don't "provide" private Perl libs %global _use_internal_dependency_generator 0 %global __deploop() while read FILE; do /usr/lib/rpm/rpmdeps -%{1} ${FILE}; done | /bin/sort -u %global __find_provides /bin/sh -c "%{__grep} -v '%_docdir' | %{__grep} -v '%{perl_vendorarch}/.*\\.so$' | %{__deploop P}" %global __find_requires /bin/sh -c "%{__grep} -v '%_docdir' | %{__deploop R}" %description Perl's global destruction is a little tricky to deal with with respect to finalizers because it's not ordered and objects can sometimes disappear. Writing defensive destructors is hard and annoying, and usually if global destruction is happenning you only need the destructors that free up non process local resources to actually execute. For these constructors you can avoid the mess by simply bailing out if global destruction is in effect. %prep %setup -q -n Devel-GlobalDestruction-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" make %{?_smp_mflags} %install rm -rf %{buildroot} make pure_install PERL_INSTALL_ROOT=%{buildroot} find %{buildroot} -type f -name .packlist -exec rm -f {} ';' find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';' find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';' %{_fixperms} %{buildroot}/* %check make test %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc t/ %{perl_vendorarch}/* %exclude %dir %{perl_vendorarch}/auto %{_mandir}/man3/*.3* %changelog * Sun Aug 23 2009 Chris Weyl 0.02-7 - bump * Sat Jul 25 2009 Fedora Release Engineering - 0.02-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Sat May 23 2009 Chris Weyl - 0.02-5 - Stripping bad provides of private Perl extension libs * Thu Feb 26 2009 Fedora Release Engineering - 0.02-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Mon Nov 03 2008 Chris Weyl 0.02-3 - bump * Sat Nov 01 2008 Chris Weyl 0.02-2 - tweak summary * Sun Oct 26 2008 Chris Weyl 0.02-1 - clean up for review submission * Sun Oct 19 2008 Chris Weyl 0.02-0.1 - initial RPM packaging - generated with cpan2dist (CPANPLUS::Dist::RPM version 0.0.5)