From 044e342190669780d5d66770ec7ccf190b6d35f9 Mon Sep 17 00:00:00 2001
From: Carl George <carl.geo...@rackspace.com>
Date: Tue, 3 Jan 2017 21:36:32 +0000
Subject: Packaging guidelines fixes

---
 perl-BDB.spec | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/perl-BDB.spec b/perl-BDB.spec
index e7f3a39..6265642 100644
--- a/perl-BDB.spec
+++ b/perl-BDB.spec
@@ -7,11 +7,16 @@ Group:          Development/Libraries
 License:        GPL+ or Artistic
 URL:            http://search.cpan.org/dist/BDB/
 Source0:        
http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/BDB-%{version}.tar.gz
+BuildRequires:  perl-devel
+BuildRequires:  perl-generators
 BuildRequires:  perl(ExtUtils::MakeMaker)
 BuildRequires:  perl(common::sense)
 BuildRequires:  db4-devel
 Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo 
$version))
 
+%{?perl_default_filter}
+
+
 %description
 Asynchronous Berkeley DB access.
 
@@ -26,10 +31,9 @@ make %{?_smp_mflags}
 
 
 %install
-make pure_install PERL_INSTALL_ROOT=%{buildroot}
+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} -depth -type d -exec rmdir {} 2>/dev/null ';'
 chmod -R u+w %{buildroot}/*
 
 
@@ -47,6 +51,7 @@ make test
 %changelog
 * Tue Jan 03 2017 Carl George <carl.geo...@rackspace.com> - 1.91-1
 - Latest upstream
+- Packaging guidelines fixes
 
 * Sun Dec 13 2009 Nicolas Chauvet <kwiz...@fedoraproject.org> - 1.86-3
 - Drop Patch0
-- 
cgit v0.12


        
http://pkgs.fedoraproject.org/cgit/perl-BDB.git/commit/?h=el6&id=044e342190669780d5d66770ec7ccf190b6d35f9
_______________________________________________
perl-devel mailing list -- perl-devel@lists.fedoraproject.org
To unsubscribe send an email to perl-devel-le...@lists.fedoraproject.org

Reply via email to