From 18c109869062eab4274fde6d30a1457f20202788 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20=C5=A0abata?= <con...@redhat.com>
Date: Thu, 28 Jan 2016 18:13:16 +0100
Subject: Package cleanup

---
 perl-File-Read.spec | 44 +++++++++++++++++++++++++-------------------
 1 file changed, 25 insertions(+), 19 deletions(-)

diff --git a/perl-File-Read.spec b/perl-File-Read.spec
index 2e32742..20b4c13 100644
--- a/perl-File-Read.spec
+++ b/perl-File-Read.spec
@@ -1,21 +1,32 @@
 Name:           perl-File-Read
 Version:        0.0801
-Release:        16%{?dist}
+Release:        17%{?dist}
 Summary:        Unique interface for reading one or more files
 License:        GPL+ or Artistic
-Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/File-Read/
 Source0:        
http://www.cpan.org/authors/id/S/SA/SAPER/File-Read-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:      noarch
-BuildRequires:  perl(File::Slurp)
+# Build
+BuildRequires:  perl
 BuildRequires:  perl(Module::Build)
-BuildRequires:  perl(Test::Distribution)
+BuildRequires:  perl(strict)
+# Runtime
+BuildRequires:  perl(Carp)
+BuildRequires:  perl(Errno)
+BuildRequires:  perl(Exporter)
+BuildRequires:  perl(File::Slurp)
+# Tests only
+BuildRequires:  perl(Cwd)
+BuildRequires:  perl(File::Spec)
 BuildRequires:  perl(Test::More)
+# Optional tests only
+BuildRequires:  perl(Data::Dumper)
+BuildRequires:  perl(Test::Distribution)
+BuildRequires:  perl(Test::Pod) >= 1.14
+BuildRequires:  perl(Test::Pod::Coverage) >= 1.04
 BuildRequires:  perl(Test::Portability::Files)
-Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo 
$version))
-
-%{?perl_default_filter}
+BuildRequires:  perl(Text::Unidecode)
+Requires:       perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo 
$version))
 
 %description
 This module mainly proposes functions for reading one or more files, with
@@ -25,30 +36,25 @@ different options.
 %setup -q -n File-Read-%{version}
 
 %build
-%{__perl} Build.PL installdirs=vendor
+perl Build.PL installdirs=vendor
 ./Build
 
 %install
-rm -rf $RPM_BUILD_ROOT
-
-./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
-find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
-
-%{_fixperms} $RPM_BUILD_ROOT/*
+./Build install destdir=%{buildroot} create_packlist=0
+%{_fixperms} %{buildroot}/*
 
 %check
 ./Build test
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
 %files
-%defattr(-,root,root,-)
 %doc Changes README eg
 %{perl_vendorlib}/*
 %{_mandir}/man3/*
 
 %changelog
+* Thu Jan 28 2016 Petr Ĺ abata <con...@redhat.com> - 0.0801-17
+- Package cleanup
+
 * Thu Jun 18 2015 Fedora Release Engineering <rel-...@lists.fedoraproject.org> 
- 0.0801-16
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
 
-- 
cgit v0.11.2


        
http://pkgs.fedoraproject.org/cgit/perl-File-Read.git/commit/?h=master&id=18c109869062eab4274fde6d30a1457f20202788
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@lists.fedoraproject.org
http://lists.fedoraproject.org/admin/lists/perl-devel@lists.fedoraproject.org

Reply via email to