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

- Fix FTBFS due to missing buildreq perl-devel
- Simplify find command using -empty and -delete
- Make %files list more explicit
---
 perl-B-Utils.spec | 20 ++++++++++++++------
 1 file changed, 14 insertions(+), 6 deletions(-)

diff --git a/perl-B-Utils.spec b/perl-B-Utils.spec
index d37a91b..11e7cf9 100644
--- a/perl-B-Utils.spec
+++ b/perl-B-Utils.spec
@@ -1,6 +1,6 @@
 Name:           perl-B-Utils
 Version:        0.27
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        Helper functions for op tree manipulation
 License:        GPL+ or Artistic
 Group:          Development/Libraries
@@ -9,8 +9,10 @@ Source0:        
http://www.cpan.org/authors/id/E/ET/ETHER/B-Utils-%{version}.tar
 # Build
 BuildRequires:  coreutils
 BuildRequires:  findutils
+BuildRequires:  gcc
 BuildRequires:  make
 BuildRequires:  perl
+BuildRequires:  perl-devel
 BuildRequires:  perl(ExtUtils::Depends) >= 0.302
 BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
 BuildRequires:  perl(strict)
@@ -45,8 +47,8 @@ make %{?_smp_mflags}
 
 %install
 make pure_install DESTDIR=%{buildroot}
-find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} +
-%{_fixperms} %{buildroot}/*
+find %{buildroot} -type f -name '*.bs' -empty -delete
+%{_fixperms} %{buildroot}
 
 %check
 make test
@@ -54,11 +56,17 @@ make test
 %files
 %license LICENSE
 %doc Changes README
-%{perl_vendorarch}/auto/*
-%{perl_vendorarch}/B*
-%{_mandir}/man3/*
+%{perl_vendorarch}/auto/B/
+%{perl_vendorarch}/B/
+%{_mandir}/man3/B::Utils.3*
+%{_mandir}/man3/B::Utils::OP.3*
 
 %changelog
+* Thu Apr 21 2016 Paul Howarth <[email protected]> - 0.27-3
+- Fix FTBFS due to missing buildreq perl-devel
+- Simplify find command using -empty and -delete
+- Make %%files list more explicit
+
 * Thu Feb 04 2016 Fedora Release Engineering <[email protected]> - 
0.27-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
 
-- 
cgit v0.12


        
http://pkgs.fedoraproject.org/cgit/perl-B-Utils.git/commit/?h=master&id=3a43b969451603e59a8c10717e108a49a0afe65a
--
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