[perl-Locale-Codes] Switch build script from Module::Build to EU::MM

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



commit ac29bc901e2160f05756b9ed92629e955b2a44c4
Author: Petr Písař <ppisar@xxxxxxxxxx>
Date:   Mon Jun 4 13:53:25 2012 +0200

    Switch build script from Module::Build to EU::MM

 perl-Locale-Codes.spec |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/perl-Locale-Codes.spec b/perl-Locale-Codes.spec
index 4de35ae..db9fd46 100644
--- a/perl-Locale-Codes.spec
+++ b/perl-Locale-Codes.spec
@@ -7,7 +7,7 @@ Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/Locale-Codes/
 Source0:        http://www.cpan.org/authors/id/S/SB/SBECK/Locale-Codes-%{version}.tar.gz
 BuildArch:      noarch
-BuildRequires:  perl(Module::Build)
+BuildRequires:  perl(ExtUtils::MakeMaker)
 # Tests
 BuildRequires:  perl(constant)
 BuildRequires:  perl(Exporter)
@@ -31,16 +31,17 @@ including languages, countries, currency, etc.
 chmod -x examples/*
 
 %build
-%{__perl} Build.PL installdirs=vendor
-./Build
+%{__perl} Makefile.PL INSTALLDIRS=vendor
+make %{?_smp_mflags}
 
 %install
-./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
+make pure_install DESTDIR=$RPM_BUILD_ROOT
+find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
 find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
 %{_fixperms} $RPM_BUILD_ROOT/*
 
 %check
-./Build test
+make test
 
 %files
 %doc ChangeLog LICENSE README README.first examples
@@ -50,6 +51,7 @@ find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
 %changelog
 * Mon Jun 04 2012 Petr Pisar <ppisar@xxxxxxxxxx> - 3.21-2
 - The POD tests do not run by default anymore
+- Switch build script from Module::Build to EU::MM
 
 * Fri Mar 02 2012 Petr Pisar <ppisar@xxxxxxxxxx> - 3.21-1
 - 3.21 bump
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/perl-devel



[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux