From 8b16da6a760152dc0aa2491a0afa5ef680efa485 Mon Sep 17 00:00:00 2001
From: Paul Howarth <[email protected]>
Date: Mon, 29 Feb 2016 14:08:33 +0000
Subject: Spec clean-up
- Classify buildreqs by usage
- Make %files list more explicit
- Use DESTDIR rather than PERL_INSTALL_ROOT in %install
---
perl-Perl6-Slurp.spec | 45 ++++++++++++++++++++++++++++++++-------------
1 file changed, 32 insertions(+), 13 deletions(-)
diff --git a/perl-Perl6-Slurp.spec b/perl-Perl6-Slurp.spec
index c4091e3..ab1e3af 100644
--- a/perl-Perl6-Slurp.spec
+++ b/perl-Perl6-Slurp.spec
@@ -1,16 +1,30 @@
-%global pkgname Perl6-Slurp
-
Name: perl-Perl6-Slurp
Version: 0.051005
-Release: 6%{?dist}
+Release: 7%{?dist}
Summary: Implemention of the Perl 6 'slurp' built-in
License: GPL+ or Artistic
URL: http://search.cpan.org/dist/Perl6-Slurp/
-Source0:
http://www.cpan.org/authors/id/D/DC/DCONWAY/%{pkgname}-%{version}.tar.gz
+Source0:
http://www.cpan.org/authors/id/D/DC/DCONWAY/Perl6-Slurp-%{version}.tar.gz
+BuildArch: noarch
+# Module Build
+BuildRequires: coreutils
+BuildRequires: findutils
+BuildRequires: make
+BuildRequires: perl
BuildRequires: perl(ExtUtils::MakeMaker)
+# Module Runtime
+BuildRequires: perl(Carp)
+BuildRequires: perl(Scalar::Util)
+BuildRequires: perl(strict)
+BuildRequires: perl(warnings)
+# Test Suite
+BuildRequires: perl(base)
+BuildRequires: perl(File::Temp)
+BuildRequires: perl(IO::File)
BuildRequires: perl(Test::More)
-Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo
$version))
-BuildArch: noarch
+BuildRequires: perl(utf8)
+# Dependencies
+Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
%description
slurp takes:
@@ -26,26 +40,31 @@ and reads in the entire stream. If slurp fails to set up or
read the stream, it throws an exception.
%prep
-%setup -qn %{pkgname}-%{version}
+%setup -qn Perl6-Slurp-%{version}
%build
-%{__perl} Makefile.PL INSTALLDIRS=vendor
+perl Makefile.PL INSTALLDIRS=vendor
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 {} \;
-%{_fixperms} %{buildroot}/*
+%{_fixperms} %{buildroot}
%check
make test
%files
-%doc Changes README
-%{perl_vendorlib}/*
-%{_mandir}/man3/*
+%doc Changes demo/ README
+%{perl_vendorlib}/Perl6/
+%{_mandir}/man3/Perl6::Slurp.3*
%changelog
+* Mon Feb 29 2016 Paul Howarth <[email protected]> - 0.051005-7
+- Classify buildreqs by usage
+- Make %%files list more explicit
+- Use DESTDIR rather than PERL_INSTALL_ROOT in %%install
+
* Thu Feb 04 2016 Fedora Release Engineering <[email protected]> -
0.051005-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
--
cgit v0.12
http://pkgs.fedoraproject.org/cgit/perl-Perl6-Slurp.git/commit/?h=master&id=8b16da6a760152dc0aa2491a0afa5ef680efa485
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
[email protected]
http://lists.fedoraproject.org/admin/lists/[email protected]