perl-Devel-GlobalDestruction/perl-Devel-GlobalDestruction.spec

102 lines
3.6 KiB
RPMSpec
Raw Normal View History

2011-06-24 12:26:35 +00:00
Name: perl-Devel-GlobalDestruction
Version: 0.02
Release: 12%{?dist}
2008-11-03 20:01:43 +00:00
# see lib/Devel/GlobalDestruction.pm
2011-06-24 12:26:35 +00:00
License: GPL+ or Artistic
Group: Development/Libraries
Summary: Expose PL_dirty, the flag which marks global destruction
Url: http://search.cpan.org/dist/Devel-GlobalDestruction
Source: http://search.cpan.org/CPAN/authors/id/N/NU/NUFFIN/Devel-GlobalDestruction-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Scope::Guard)
BuildRequires: perl(Sub::Exporter)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
2008-11-03 20:01:43 +00:00
# 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}"
2008-11-03 20:01:43 +00:00
%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
2011-06-24 12:26:35 +00:00
destruction is happening you only need the destructors that free up non
2008-11-03 20:01:43 +00:00
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 {} ';'
2011-06-24 12:26:35 +00:00
find %{buildroot} -depth -type d -exec rmdir {} ';' 2>/dev/null
%{_fixperms} %{buildroot}
2008-11-03 20:01:43 +00:00
%check
make test
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc t/
%{perl_vendorarch}/*
%exclude %dir %{perl_vendorarch}/auto
%{_mandir}/man3/*.3*
%changelog
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.02-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Thu Dec 16 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.02-11
2011-06-24 12:26:35 +00:00
- Rebuild to fix problems with vendorarch/lib (#661697)
2010-04-30 19:17:41 +00:00
* Fri Apr 30 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.02-10
- Mass rebuild with perl-5.12.0
2010-04-30 14:29:48 +00:00
* Fri Apr 30 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.02-9
- Mass rebuild with perl-5.12.0
2009-12-07 08:18:13 +00:00
* Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 0.02-8
- rebuild against perl 5.10.1
2009-08-23 19:27:44 +00:00
* Sun Aug 23 2009 Chris Weyl <cweyl@alumni.drew.edu> 0.02-7
- bump
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.02-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Sat May 23 2009 Chris Weyl <cweyl@alumni.drew.edu> - 0.02-5
- Stripping bad provides of private Perl extension libs
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.02-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
2008-11-03 20:03:33 +00:00
* Mon Nov 03 2008 Chris Weyl <cweyl@alumni.drew.edu> 0.02-3
- bump
2008-11-03 20:01:43 +00:00
* Sat Nov 01 2008 Chris Weyl <cweyl@alumni.drew.edu> 0.02-2
- tweak summary
* Sun Oct 26 2008 Chris Weyl <cweyl@alumni.drew.edu> 0.02-1
- clean up for review submission
* Sun Oct 19 2008 Chris Weyl <cweyl@alumni.drew.edu> 0.02-0.1
- initial RPM packaging
- generated with cpan2dist (CPANPLUS::Dist::RPM version 0.0.5)