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

---
 perl-File-Type.spec | 31 ++++++++++++++++---------------
 1 file changed, 16 insertions(+), 15 deletions(-)

diff --git a/perl-File-Type.spec b/perl-File-Type.spec
index 5f7aeaf..d518b6f 100644
--- a/perl-File-Type.spec
+++ b/perl-File-Type.spec
@@ -1,16 +1,22 @@
 Name:           perl-File-Type
 Version:        0.22
-Release:        23%{?dist}
+Release:        24%{?dist}
 Summary:        Determine file type using magic
 License:        GPL+ or Artistic
-Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/File-Type/
 Source0:        
http://www.cpan.org/authors/id/P/PM/PMISON/File-Type-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:      noarch
+# Build
+BuildRequires:  perl
 BuildRequires:  perl(Module::Build)
+BuildRequires:  perl(strict)
+# Runtime
+BuildRequires:  perl(IO::File)
+BuildRequires:  perl(warnings)
+# Tests only
+BuildRequires:  perl(lib)
 BuildRequires:  perl(Test::More)
-Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo 
$version))
+Requires:       perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo 
$version))
 
 %description
 File::Type uses magic numbers (typically at the start of a file) to
@@ -20,30 +26,25 @@ determine the MIME type of that file.
 %setup -q -n File-Type-%{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
 %{perl_vendorlib}/*
 %{_mandir}/man3/*
 
 %changelog
+* Thu Jan 28 2016 Petr Ĺ abata <con...@redhat.com> - 0.22-24
+- Package cleanup
+
 * Thu Jun 18 2015 Fedora Release Engineering <rel-...@lists.fedoraproject.org> 
- 0.22-23
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
 
-- 
cgit v0.11.2


        
http://pkgs.fedoraproject.org/cgit/perl-File-Type.git/commit/?h=master&id=3629396f2e59e4e8c085cc64f68594ca1e00b0cc
--
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