[perl-POE-Filter-Zlib] Spec clean, build fix

Petr Šabata psabata at fedoraproject.org
Mon Jan 16 13:12:51 UTC 2012


commit 0166f1e634ae4379fd9e2988aa63845a8c04d673
Author: Petr Šabata <contyk at redhat.com>
Date:   Mon Jan 16 14:09:37 2012 +0100

    Spec clean, build fix

 perl-POE-Filter-Zlib.spec |   40 +++++++++++-----------------------------
 1 files changed, 11 insertions(+), 29 deletions(-)
---
diff --git a/perl-POE-Filter-Zlib.spec b/perl-POE-Filter-Zlib.spec
index 1af068b..77bf9ab 100644
--- a/perl-POE-Filter-Zlib.spec
+++ b/perl-POE-Filter-Zlib.spec
@@ -2,35 +2,27 @@ Name:           perl-POE-Filter-Zlib
 Version:        2.02
 Release:        8%{?dist}
 Summary:        POE filter wrapped around Compress::Zlib
-
 # note license definition in Makefile.PL
 License:        GPL+ or Artistic
 Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/POE-Filter-Zlib/
 Source0:        http://search.cpan.org/CPAN/authors/id/B/BI/BINGOS/POE-Filter-Zlib-%{version}.tar.gz
-
 # just to be thorough, see also:
 Source1:        LICENSE.readme
-
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:      noarch
+BuildRequires:  perl(Carp)
+BuildRequires:  perl(Compress::Raw::Zlib) >= 2
 BuildRequires:  perl(Compress::Zlib) >= 1.34
-BuildRequires:  perl(POE) >= 0.38
-BuildRequires:  perl(Test::Pod)
-BuildRequires:  perl(Test::Pod::Coverage)
-
-# this is missed in a classic "use base POE..." situation
-Requires:       perl(POE::Filter)
-
-Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
-
-### auto-added brs!
 BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.42
+BuildRequires:  perl(POE)
 BuildRequires:  perl(POE::Filter)
-BuildRequires:  perl(Test::More) >= 0.47
-BuildRequires:  perl(Compress::Raw::Zlib) >= 2
 BuildRequires:  perl(POE::Filter::Line)
 BuildRequires:  perl(POE::Filter::Stackable)
+BuildRequires:  perl(Test::Pod) >= 1.00
+BuildRequires:  perl(Test::Pod::Coverage) >= 1.00
+BuildRequires:  perl(Test::More) >= 0.47
+Requires:       perl(POE::Filter)
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
 
 %description
 POE::Filter::Zlib provides a POE filter for performing compression and
@@ -39,41 +31,31 @@ POE::Filter::Stackable.
 
 %prep
 %setup -q -n POE-Filter-Zlib-%{version}
-
 # deal with our licensing....
 cp %{SOURCE1} .
-perldoc perlgpl      > COPYING.gpl
-perldoc perlartistic > COPYING.artistic
 
 %build
 %{__perl} Makefile.PL INSTALLDIRS=vendor
 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 \;
-
 %{_fixperms} %{buildroot}/*
 
 %check
 make test
 
-%clean
-rm -rf %{buildroot}
-
 %files
-%defattr(-,root,root,-)
-%doc README LICENSE* COPYING*
+%doc README LICENSE*
 %{perl_vendorlib}/*
 %{_mandir}/man3/*
 
 %changelog
-* Fri Jan 13 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.02-8
+* Mon Jan 16 2012 Petr Šabata <contyk at redhat.com> - 2.02-8
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
+- Spec cleanup, fix build, remove useless generated licenses
 
 * Tue Jul 19 2011 Petr Sabata <contyk at redhat.com> - 2.02-7
 - Perl mass rebuild



More information about the perl-devel mailing list