From 85871a028b93b957a0b94a12f64da1f134587e18 Mon Sep 17 00:00:00 2001
From: Paul Howarth <[email protected]>
Date: Thu, 21 Apr 2016 09:03:54 +0100
Subject: Fix FTBFS due to missing buildreq perl-devel

Also, simplify find commands using -empty and -delete
---
 perl-Class-Load-XS.spec | 17 +++++++++++++----
 1 file changed, 13 insertions(+), 4 deletions(-)

diff --git a/perl-Class-Load-XS.spec b/perl-Class-Load-XS.spec
index a1d984d..6b248e0 100644
--- a/perl-Class-Load-XS.spec
+++ b/perl-Class-Load-XS.spec
@@ -1,6 +1,6 @@
 Name:          perl-Class-Load-XS
 Version:       0.09
-Release:       4%{?dist}
+Release:       5%{?dist}
 Summary:       XS implementation of parts of Class::Load
 License:       Artistic 2.0
 URL:           http://search.cpan.org/dist/Class-Load-XS/
@@ -8,7 +8,12 @@ Source0:       
http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/Class-Load-XS-%{versi
 # ===================================================================
 # Module build requirements
 # ===================================================================
+BuildRequires: coreutils
+BuildRequires: findutils
+BuildRequires: gcc
+BuildRequires: make
 BuildRequires: perl
+BuildRequires: perl-devel
 BuildRequires: perl(ExtUtils::MakeMaker)
 # ===================================================================
 # Module requirements
@@ -51,8 +56,8 @@ make %{?_smp_mflags}
 
 %install
 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 {} ';'
+find %{buildroot} -type f -name .packlist -delete
+find %{buildroot} -type f -name '*.bs' -empty -delete
 %{_fixperms} %{buildroot}
 
 %check
@@ -63,9 +68,13 @@ make test
 %doc Changes CONTRIBUTING README
 %{perl_vendorarch}/auto/Class/
 %{perl_vendorarch}/Class/
-%{_mandir}/man3/Class::Load::XS.3pm*
+%{_mandir}/man3/Class::Load::XS.3*
 
 %changelog
+* Thu Apr 21 2016 Paul Howarth <[email protected]> - 0.09-5
+- Fix FTBFS due to missing buildreq perl-devel
+- Simplify find commands using -empty and -delete
+
 * Thu Feb 04 2016 Fedora Release Engineering <[email protected]> - 
0.09-4
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
 
-- 
cgit v0.12


        
http://pkgs.fedoraproject.org/cgit/perl-Class-Load-XS.git/commit/?h=perl-Class-Load-XS-0.09-5.fc25&id=85871a028b93b957a0b94a12f64da1f134587e18
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
[email protected]
http://lists.fedoraproject.org/admin/lists/[email protected]

Reply via email to