From 4b92b6de1969072e4591c3b731a5fb6bc58f0ffa Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20=C5=A0abata?= <con...@redhat.com>
Date: Mon, 29 Feb 2016 14:01:59 +0100
Subject: Package cleanup

---
 perl-Log-Trace.spec | 75 ++++++++++++++++++++++++++++-------------------------
 1 file changed, 40 insertions(+), 35 deletions(-)

diff --git a/perl-Log-Trace.spec b/perl-Log-Trace.spec
index 209e927..cf50da7 100644
--- a/perl-Log-Trace.spec
+++ b/perl-Log-Trace.spec
@@ -1,61 +1,67 @@
-Name:       perl-Log-Trace 
-Version:    1.070 
-Release:    19%{?dist}
-# lib/Log/Trace.pm -> GPLv2+ 
-License:    GPLv2+
-Group:      Development/Libraries
-Summary:    A unified approach to tracing 
-Source:     
http://search.cpan.org/CPAN/authors/id/B/BB/BBC/Log-Trace-%{version}.tar.gz 
-Url:        http://search.cpan.org/dist/Log-Trace
-BuildRoot:  %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 
-Requires:   perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo 
$version))
-BuildArch:  noarch
-
-BuildRequires: perl(ExtUtils::MakeMaker)
-BuildRequires: perl(Test::More)
-
-# autoprov detects perl(DB), which is just wrong.  In this specific case,
-# it's easier just to turn autoprov off.
-AutoProv:   no
-Provides:   perl(Log::Trace) = %{version}
+Name:           perl-Log-Trace
+Version:        1.070
+Release:        20%{?dist}
+License:        GPLv2+
+Summary:        A unified approach to tracing
+Source:         
http://search.cpan.org/CPAN/authors/id/B/BB/BBC/Log-Trace-%{version}.tar.gz
+Url:            http://search.cpan.org/dist/Log-Trace
+BuildArch:      noarch
+# Build
+BuildRequires:  make
+BuildRequires:  perl
+BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
+# Runtime
+BuildRequires:  perl(Carp)
+BuildRequires:  perl(Data::Dumper)
+BuildRequires:  perl(Data::Serializer)
+BuildRequires:  perl(Fcntl)
+BuildRequires:  perl(strict)
+BuildRequires:  perl(Sys::Syslog)
+BuildRequires:  perl(Time::HiRes)
+# Tests only
+BuildRequires:  perl(File::Basename)
+BuildRequires:  perl(File::Spec)
+BuildRequires:  perl(File::Spec::Functions)
+BuildRequires:  perl(Test::More)
+Requires:       perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo 
$version))
+Recommends:     perl(Data::Dumper)
+Recommends:     perl(Data::Serializer)
+Recommends:     perl(Sys::Syslog)
+Recommends:     perl(Time::HiRes)
+
+%global __provides_exclude 
%{?__provides_exclude:%__provides_exclude|}^perl\\(DB\\)$
 
 %description
 This module provides a unified approach to tracing. A script can 'use
 Log::Trace qw( < mode > )' to set the behaviour of the TRACE function.By
 default, the trace functions are exported to the calling package only.
 You can export the trace functions to other packages with the 'Deep'
-option. See the "OPTIONS" manpage for more information. 
-
+option. See the "OPTIONS" manpage for more information.
 
 %prep
 %setup -q -n Log-Trace-%{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 README Changes COPYING 
+%license COPYING
+%doc README Changes
 %{perl_vendorlib}/*
 %{_mandir}/man3/*.3*
 
 %changelog
+* Mon Feb 29 2016 Petr Ĺ abata <con...@redhat.com> - 1.070-20
+- Package cleanup
+
 * Thu Feb 04 2016 Fedora Release Engineering <rel...@fedoraproject.org> - 
1.070-19
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
 
@@ -116,4 +122,3 @@ rm -rf %{buildroot}
 * Wed Apr 01 2009 Chris Weyl <cw...@alumni.drew.edu> 1.070-0
 - initial RPM packaging
 - generated with cpan2dist (CPANPLUS::Dist::RPM version 0.0.8)
-
-- 
cgit v0.12


        
http://pkgs.fedoraproject.org/cgit/perl-Log-Trace.git/commit/?h=master&id=4b92b6de1969072e4591c3b731a5fb6bc58f0ffa
--
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