From 474fae091668db88b29b3bcf9a9a730d2c8e7f0a Mon Sep 17 00:00:00 2001 From: Paul Howarth Date: Thu, 13 Feb 2014 20:05:01 +0000 Subject: [PATCH] Update to 0.08 - New upstream release 0.08: - Switched packaging to just EUMM, as MBT wants the .xs file in a different place - Switch to ExtUtils::MakeMaker flow --- perl-Class-Load-XS.spec | 25 +++++++++++++++---------- sources | 2 +- 2 files changed, 16 insertions(+), 11 deletions(-) diff --git a/perl-Class-Load-XS.spec b/perl-Class-Load-XS.spec index e536c97..b4f616b 100644 --- a/perl-Class-Load-XS.spec +++ b/perl-Class-Load-XS.spec @@ -1,5 +1,5 @@ Name: perl-Class-Load-XS -Version: 0.07 +Version: 0.08 Release: 1%{?dist} Summary: XS implementation of parts of Class::Load Group: Development/Libraries @@ -9,7 +9,7 @@ Source0: http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/Class-Load-XS-%{versi # =================================================================== # Module build requirements # =================================================================== -BuildRequires: perl(Module::Build::Tiny) >= 0.034 +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30 # =================================================================== # Module requirements # =================================================================== @@ -19,6 +19,8 @@ BuildRequires: perl(XSLoader) # Regular test suite requirements # =================================================================== BuildRequires: perl(constant) +BuildRequires: perl(CPAN::Meta) +BuildRequires: perl(CPAN::Meta::Requirements) >= 2.120900 BuildRequires: perl(lib) BuildRequires: perl(Module::Implementation) >= 0.04 BuildRequires: perl(Test::Fatal) @@ -40,21 +42,18 @@ See Class::Load for API details. %prep %setup -q -n Class-Load-XS-%{version} -# Put the XS file where Module::Build::Tiny expects to find it -# https://github.com/moose/Class-Load-XS/issues/1 -mv XS.xs lib/Class/Load/ - %build -perl Build.PL --installdirs=vendor -./Build +perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" +make %{?_smp_mflags} %install -./Build install --destdir=%{buildroot} --create_packlist=0 +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 -./Build test +make test %files %doc Changes CONTRIBUTING LICENSE README README.md @@ -63,6 +62,12 @@ find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';' %{_mandir}/man3/Class::Load::XS.3pm* %changelog +* Thu Feb 13 2014 Paul Howarth - 0.08-1 +- Update to 0.08: + - Switched packaging to just EUMM, as MBT wants the .xs file in a different + place +- Switch to ExtUtils::MakeMaker flow + * Thu Feb 13 2014 Paul Howarth - 0.07-1 - Update to 0.07: - Repository moved to the github moose organization diff --git a/sources b/sources index 2373d74..a0b6a17 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -ae36673ed4be02aa03df210a1d4e8756 Class-Load-XS-0.07.tar.gz +c4d992d7023fa3015322916850ee95d9 Class-Load-XS-0.08.tar.gz