From 88538b03876d3607cd108b152a4aecb96c3fd668 Mon Sep 17 00:00:00 2001
From: Paul Howarth <paul(a)city-fan.org>
Date: Fri, 11 Mar 2016 15:08:09 +0000
Subject: Spec tidy-up
- Switch to ExtUtils::MakeMaker flow
- Classify buildreqs by usage
- Drop redundant %{?perl_default_filter}
---
perl-autobox-dump.spec | 43 +++++++++++++++++++++++++++++--------------
1 file changed, 29 insertions(+), 14 deletions(-)
diff --git a/perl-autobox-dump.spec b/perl-autobox-dump.spec
index cc00e13..53a42b5 100644
--- a/perl-autobox-dump.spec
+++ b/perl-autobox-dump.spec
@@ -1,18 +1,29 @@
Name: perl-autobox-dump
Version: 20090426.1746
-Release: 12%{?dist}
+Release: 13%{?dist}
Summary: Human/perl readable strings from the results of an EXPR
License: GPL+ or Artistic
Group: Development/Libraries
URL:
http://search.cpan.org/dist/autobox-dump/
Source0:
http://www.cpan.org/modules/by-module/autobox/autobox-dump-%{version}.tar.gz
BuildArch: noarch
+# Build
+BuildRequires: coreutils
+BuildRequires: findutils
+BuildRequires: make
+BuildRequires: perl
+BuildRequires: perl(ExtUtils::MakeMaker)
+# Module
BuildRequires: perl(autobox)
-BuildRequires: perl(Module::Build)
+BuildRequires: perl(base)
+BuildRequires: perl(Data::Dumper)
+BuildRequires: perl(strict)
+BuildRequires: perl(warnings)
+# Tests
BuildRequires: perl(Test::More)
-Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo
$version))
-
-%{?perl_default_filter}
+# Deps
+Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo
$version))
+Requires: perl(Data::Dumper)
%description
The autobox::dump pragma adds, via the autobox pragma, a method to normal
@@ -23,24 +34,28 @@ produces a human/perl readable representation of the value of that
expression.
%setup -q -n autobox-dump-%{version}
%build
-%{__perl} Build.PL installdirs=vendor
-./Build
+perl Makefile.PL INSTALLDIRS=vendor
+make %{?_smp_mflags}
%install
-./Build install destdir=%{buildroot} create_packlist=0
-find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
-
-%{_fixperms} %{buildroot}/*
+make pure_install DESTDIR=%{buildroot}
+find %{buildroot} -type f -name .packlist -delete
+%{_fixperms} %{buildroot}
%check
-./Build test
+make test
%files
%doc Changes README
-%{perl_vendorlib}/*
-%{_mandir}/man3/*
+%{perl_vendorlib}/autobox/
+%{_mandir}/man3/autobox::dump.3*
%changelog
+* Fri Mar 11 2016 Paul Howarth <paul(a)city-fan.org> - 20090426.1746-13
+- Switch to ExtUtils::MakeMaker flow
+- Classify buildreqs by usage
+- Drop redundant %%{?perl_default_filter}
+
* Thu Feb 04 2016 Fedora Release Engineering <releng(a)fedoraproject.org> -
20090426.1746-12
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
--
cgit v0.12
http://pkgs.fedoraproject.org/cgit/perl-autobox-dump.git/commit/?h=master...