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

Also, simplify find commands using -empty and -delete
---
 perl-BerkeleyDB.spec | 29 +++++++++++++++++++----------
 1 file changed, 19 insertions(+), 10 deletions(-)

diff --git a/perl-BerkeleyDB.spec b/perl-BerkeleyDB.spec
index cfc12da..b757651 100644
--- a/perl-BerkeleyDB.spec
+++ b/perl-BerkeleyDB.spec
@@ -10,7 +10,7 @@
 
 Name:           perl-BerkeleyDB
 Version:        0.55
-Release:        4%{?dist}
+Release:        5%{?dist}
 Summary:        Interface to Berkeley DB
 License:        GPL+ or Artistic
 Group:          Development/Libraries
@@ -19,7 +19,12 @@ Source0:        
http://www.cpan.org/authors/id/P/PM/PMQS/BerkeleyDB-%{version}.t
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
 # Module Build
 BuildRequires:  %{db_pkg}-devel
+BuildRequires:  coreutils
+BuildRequires:  findutils
+BuildRequires:  gcc
+BuildRequires:  make
 BuildRequires:  perl
+BuildRequires:  perl-devel
 BuildRequires:  perl(Config)
 BuildRequires:  perl(ExtUtils::MakeMaker)
 # Module Runtime
@@ -69,25 +74,25 @@ perl -pi -e 's,/local/,/, if ($. == 1)' dbinfo
 chmod -c -x Changes README
 
 %build
-perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
+perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
 make %{?_smp_mflags}
 
 %install
-rm -rf $RPM_BUILD_ROOT
-make pure_install DESTDIR=$RPM_BUILD_ROOT
-find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
-find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
-%{_fixperms} $RPM_BUILD_ROOT
-install -D -m755 dbinfo $RPM_BUILD_ROOT%{_bindir}/dbinfo
+rm -rf %{buildroot}
+make pure_install DESTDIR=%{buildroot}
+find %{buildroot} -type f -name .packlist -delete
+find %{buildroot} -type f -name '*.bs' -empty -delete
+%{_fixperms} %{buildroot}
+install -D -m755 dbinfo %{buildroot}%{_bindir}/dbinfo
 
 # Remove files we don't want packaged
-rm $RPM_BUILD_ROOT%{perl_vendorarch}/{mkconsts,scan}.pl
+rm %{buildroot}%{perl_vendorarch}/{mkconsts,scan}.pl
 
 %check
 make test
 
 %clean
-rm -rf $RPM_BUILD_ROOT
+rm -rf %{buildroot}
 
 %files
 %doc README Changes Todo
@@ -99,6 +104,10 @@ rm -rf $RPM_BUILD_ROOT
 %{_mandir}/man3/BerkeleyDB.3*
 
 %changelog
+* Thu Apr 21 2016 Paul Howarth <[email protected]> - 0.55-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.55-4
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
 
-- 
cgit v0.12


        
http://pkgs.fedoraproject.org/cgit/perl-BerkeleyDB.git/commit/?h=perl-BerkeleyDB-0.55-5.fc25&id=7579d57bb83c815984ca21fbbd55696797de8034
--
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