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
This commit is contained in:
parent
35cca2decf
commit
5fb949c4e9
@ -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 <paul@city-fan.org> - 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 <rel-eng@lists.fedoraproject.org> - 0.09-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user