psabata pushed to perl-Data-Hierarchy (master). "Prevent FTBFS by correcting the build time dependency list (..more)"

notifications at fedoraproject.org notifications at fedoraproject.org
Mon Aug 17 15:06:34 UTC 2015


From 8ccca5614ade324e30b51c413701aea80d35d565 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20=C5=A0abata?= <contyk at redhat.com>
Date: Mon, 17 Aug 2015 17:06:10 +0200
Subject: Prevent FTBFS by correcting the build time dependency list

- Modernize the spec file

diff --git a/perl-Data-Hierarchy.spec b/perl-Data-Hierarchy.spec
index 8a9971a..08700c8 100644
--- a/perl-Data-Hierarchy.spec
+++ b/perl-Data-Hierarchy.spec
@@ -1,16 +1,25 @@
 Name:           perl-Data-Hierarchy
 Version:        0.34
-Release:        21%{?dist}
+Release:        22%{?dist}
 Summary:        Handle data in a hierarchical structure
 License:        GPL+ or Artistic
-Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/Data-Hierarchy/
 Source0:        http://www.cpan.org/modules/by-module/Data/Data-Hierarchy-%{version}.tar.gz
 BuildArch:      noarch
-BuildRequires:  perl(ExtUtils::MakeMaker)
-BuildRequires:  perl(Test::More)
+# Build
+BuildRequires:  make
+BuildRequires:  perl
+BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
+# Runtime
+BuildRequires:  perl(Carp)
+BuildRequires:  perl(Storable)
+BuildRequires:  perl(strict)
+# Tests only
 BuildRequires:  perl(Test::Exception)
-Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+BuildRequires:  perl(Test::More)
+BuildRequires:  perl(warnings)
+Requires:       perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
+Requires:       perl(Carp)
 
 %description
 Data::Hierarchy provides a simple interface for manipulating inheritable
@@ -20,14 +29,12 @@ data attached to a hierarchical environment (like filesystem).
 %setup -q -n Data-Hierarchy-%{version}
 
 %build
-%{__perl} Makefile.PL INSTALLDIRS=vendor
+perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
 make %{?_smp_mflags}
 
 %install
-make pure_install PERL_INSTALL_ROOT=%{buildroot}
-find %{buildroot} -type f -name .packlist -exec rm -f {} \;
-find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null \;
-chmod -R u+rwX,go+rX,go-w %{buildroot}/*
+make pure_install DESTDIR=%{buildroot}
+%{_fixperms} %{buildroot}/*
 
 %check
 make test
@@ -38,6 +45,10 @@ make test
 %{_mandir}/man3/*
 
 %changelog
+* Mon Aug 17 2015 Petr Ĺ abata <contyk at redhat.com> - 0.34-22
+- Prevent FTBFS by correcting the build time dependency list
+- Modernize the spec file
+
 * Thu Jun 18 2015 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.34-21
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/perl-Data-Hierarchy.git/commit/?h=master&id=8ccca5614ade324e30b51c413701aea80d35d565


More information about the perl-devel mailing list