From 19f0a9f257c414ef5e9d45cf1414c5efbffbba30 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20=C5=A0abata?= <con...@redhat.com>
Date: Wed, 2 Mar 2016 18:22:47 +0100
Subject: Package cleanup

---
 perl-Tie-ToObject.spec | 61 +++++++++++++++++++++++---------------------------
 1 file changed, 28 insertions(+), 33 deletions(-)

diff --git a/perl-Tie-ToObject.spec b/perl-Tie-ToObject.spec
index d3d2586..8ceafbb 100644
--- a/perl-Tie-ToObject.spec
+++ b/perl-Tie-ToObject.spec
@@ -1,23 +1,25 @@
-
-Name:       perl-Tie-ToObject 
-Version:    0.03 
-Release:    22%{?dist}
-License:    GPL+ or Artistic 
-Group:      Development/Libraries
-Summary:    Tie to an existing object 
-Source:     
http://search.cpan.org/CPAN/authors/id/N/NU/NUFFIN/Tie-ToObject-%{version}.tar.gz
 
-Url:        http://search.cpan.org/dist/Tie-ToObject
-BuildRoot:  %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 
-Requires:   perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo 
$version))
-BuildArch:  noarch
-
-BuildRequires: perl(Carp)
-BuildRequires: perl(ExtUtils::MakeMaker)
-BuildRequires: perl(Scalar::Util)
-# tests
-BuildRequires: perl(Test::More)
-BuildRequires: perl(Test::use::ok)
-BuildRequires: perl(Tie::RefHash)
+Name:           perl-Tie-ToObject
+Version:        0.03
+Release:        23%{?dist}
+License:        GPL+ or Artistic
+Summary:        Tie to an existing object
+Source:         
http://search.cpan.org/CPAN/authors/id/N/NU/NUFFIN/Tie-ToObject-%{version}.tar.gz
+Url:            http://search.cpan.org/dist/Tie-ToObject
+BuildArch:      noarch
+# Build
+BuildRequires:  make
+BuildRequires:  perl
+BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
+BuildRequires:  perl(strict)
+# Runtime
+BuildRequires:  perl(Carp)
+BuildRequires:  perl(Scalar::Util)
+BuildRequires:  perl(vars)
+# Tests only
+BuildRequires:  perl(ok)
+BuildRequires:  perl(Test::More)
+BuildRequires:  perl(Tie::RefHash)
+Requires:       perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo 
$version))
 
 
 %description
@@ -34,31 +36,24 @@ This way side effects of calling '$object->TIEHASH' are 
avoided.
 %setup -q -n Tie-ToObject-%{version}
 
 %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 t/  
 %{perl_vendorlib}/*
-%{_mandir}/man3/*.3*
+%{_mandir}/man3/*
 
 %changelog
+* Wed Mar 02 2016 Petr Ĺ abata <con...@redhat.com> - 0.03-23
+- Package cleanup
+
 * Thu Feb 04 2016 Fedora Release Engineering <rel...@fedoraproject.org> - 
0.03-22
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
 
-- 
cgit v0.12


        
http://pkgs.fedoraproject.org/cgit/perl-Tie-ToObject.git/commit/?h=master&id=19f0a9f257c414ef5e9d45cf1414c5efbffbba30
--
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