psabata pushed to perl-Template-Timer (master). "Prevent the FTBFS by correcting the build time dependency list (..more)"
notifications at fedoraproject.org
notifications at fedoraproject.org
Mon Aug 10 17:46:35 UTC 2015
From 427d62b5442e9331e4610909df1336672ebfc87b 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:46:27 +0200
Subject: Prevent the FTBFS by correcting the build time dependency list
- Modernize the spec file
diff --git a/perl-Template-Timer.spec b/perl-Template-Timer.spec
index f3edc72..2b3790e 100644
--- a/perl-Template-Timer.spec
+++ b/perl-Template-Timer.spec
@@ -1,22 +1,27 @@
Name: perl-Template-Timer
Version: 1.00
-Release: 16%{?dist}
+Release: 17%{?dist}
Summary: Template::Timer Perl module
License: GPL+ or Artistic
-Group: Development/Libraries
URL: http://search.cpan.org/dist/Template-Timer/
Source0: http://www.cpan.org/authors/id/P/PE/PETDANCE/Template-Timer-%{version}.tar.gz
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
-Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
-
-BuildRequires: perl(ExtUtils::MakeMaker)
+# Build
+BuildRequires: make
+BuildRequires: perl
+BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
+BuildRequires: perl(strict)
+BuildRequires: perl(warnings)
+# Runtime
+BuildRequires: perl(base)
+BuildRequires: perl(Template::Context)
+BuildRequires: perl(Time::HiRes)
+# Tests only
BuildRequires: perl(Template)
BuildRequires: perl(Test::More)
-BuildRequires: perl(Test::Pod)
-
-# not automagically picked up: use base
-Requires: perl(Template::Context)
+# Optional tests only
+BuildRequires: perl(Test::Pod) >= 1.14
+Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
%description
Template::Timer provides inline timings of the template processing
@@ -25,36 +30,29 @@ wraps the process() and include() methods.
%prep
%setup -q -n Template-Timer-%{version}
-
perl -pi -e 's|^#!perl|#!/usr/bin/perl|' t/*.t
%build
-%{__perl} Makefile.PL INSTALLDIRS=vendor
+perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
make %{?_smp_mflags}
%install
-rm -rf %{buildroot}
-
-make pure_install PERL_INSTALL_ROOT=%{buildroot}
-
-find %{buildroot} -type f -name .packlist -exec rm -f {} +
-find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
-
+make pure_install DESTDIR=%{buildroot}
%{_fixperms} %{buildroot}/*
%check
make test
-%clean
-rm -rf %{buildroot}
-
%files
-%defattr(-,root,root,-)
-%doc Changes README t/
+%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*
%changelog
+* Mon Aug 10 2015 Petr Ĺ abata <contyk at redhat.com> - 1.00-17
+- Prevent the 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> - 1.00-16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/perl-Template-Timer.git/commit/?h=master&id=427d62b5442e9331e4610909df1336672ebfc87b
More information about the perl-devel
mailing list