psabata pushed to perl-Devel-Profiler (master). "Prevent the FTBFS by correcting the buildtime dependency list (..more)"

notifications at fedoraproject.org notifications at fedoraproject.org
Mon Aug 10 17:25:59 UTC 2015


From 4236716e5a6a462c9646f80bda1cb40bb791ff1c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20=C5=A0abata?= <contyk at redhat.com>
Date: Mon, 10 Aug 2015 19:25:49 +0200
Subject: Prevent the FTBFS by correcting the buildtime dependency list

- Modernize the spec file

diff --git a/perl-Devel-Profiler.spec b/perl-Devel-Profiler.spec
index 6a9b648..1e4e328 100644
--- a/perl-Devel-Profiler.spec
+++ b/perl-Devel-Profiler.spec
@@ -1,21 +1,31 @@
 Name:           perl-Devel-Profiler
 Version:        0.04
-Release:        23%{?dist}
+Release:        24%{?dist}
 Summary:        Perl profiler compatible with dprofpp
 License:        GPL+ or Artistic
-Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/Devel-Profiler/
 Source0:        http://www.cpan.org/authors/id/S/SA/SAMTREGAR/Devel-Profiler-%{version}.tar.gz
 Patch0:         perl-Devel-Profiler-perl510.patch
 # Stop using of each() on hash after insertion (CPAN RT#104207)
 Patch1:         Devel-Profiler-0.04-Do-not-use-each-on-hash-after-insertion.patch
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:      noarch
+# Build
+BuildRequires:  make
+BuildRequires:  perl
+BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
+# Runtime
 # dprofpp from perl-Devel-DProf is executed
 BuildRequires:  perl-Devel-DProf
-BuildRequires:  perl(ExtUtils::MakeMaker)
+BuildRequires:  perl(B)
+BuildRequires:  perl(constant)
+BuildRequires:  perl(Exporter)
+#BuildRequires:  perl(File::Path) ??
+BuildRequires:  perl(strict)
+BuildRequires:  perl(Time::HiRes)
+BuildRequires:  perl(warnings)
+# Tests only
 BuildRequires:  perl(Test::More)
-Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+Requires:       perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
 # dprofpp from perl-Devel-DProf is executed
 Requires:       perl-Devel-DProf
 
@@ -36,36 +46,30 @@ meant to be a drop-in replacement for Devel::DProf.
 # ok($user >= 1, "check user time >= 1 seconds");
 #
 # That test seems a bit bogus, unless I'm missing something.
-%{__perl} -pi -e 's/^/#/ if /"check user time >= 1 second/;' \
+perl -pi -e 's/^/#/ if /"check user time >= 1 second/;' \
     -e 's/^(use Test::More tests => )(\d+)/$1 . ($2-1)/e' t/01basic.t
 
 %build
-%{__perl} Makefile.PL INSTALLDIRS=vendor
+perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
 make %{?_smp_mflags}
 
 %install
-rm -rf $RPM_BUILD_ROOT
-
-make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
-
-find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
-find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
-
-%{_fixperms} $RPM_BUILD_ROOT/*
+make pure_install DESTDIR=%{buildroot}
+%{_fixperms} %{buildroot}/*
 
 %check
 make test
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
 %files
-%defattr(-,root,root,-)
 %doc Changes README
 %{perl_vendorlib}/*
 %{_mandir}/man3/*
 
 %changelog
+* Mon Aug 10 2015 Petr Ĺ abata <contyk at redhat.com> - 0.04-24
+- Prevent the FTBFS by correcting the buildtime dependency list
+- Modernize the spec file
+
 * Thu Jun 18 2015 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.04-23
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/perl-Devel-Profiler.git/commit/?h=master&id=4236716e5a6a462c9646f80bda1cb40bb791ff1c


More information about the perl-devel mailing list