[perl-CGI-Simple] fix build

Tom Callaway spot at fedoraproject.org
Mon Jan 23 04:48:07 UTC 2012


commit bebe9a2cb80d68d47e30aaf430a4823a8ef34ff8
Author: Tom Callaway <spot at fedoraproject.org>
Date:   Sun Jan 22 23:48:04 2012 -0500

    fix build

 perl-CGI-Simple.spec |   18 +++++++-----------
 1 files changed, 7 insertions(+), 11 deletions(-)
---
diff --git a/perl-CGI-Simple.spec b/perl-CGI-Simple.spec
index 7a1b357..bff58ec 100644
--- a/perl-CGI-Simple.spec
+++ b/perl-CGI-Simple.spec
@@ -1,6 +1,6 @@
 Name:           perl-CGI-Simple
 Version:        1.113
-Release:        4%{?dist}
+Release:        5%{?dist}
 Summary:        Simple totally OO CGI interface that is CGI.pm compliant
 Group:          Development/Libraries
 License:        GPL+ or Artistic
@@ -8,11 +8,11 @@ URL:            http://search.cpan.org/dist/CGI-Simple/
 Source0:        http://search.cpan.org/CPAN/authors/id/A/AN/ANDYA/CGI-Simple-%{version}.tar.gz
 # https://github.com/markstos/CGI--Simple/commit/e811ab874a5e0ac8a99e76b645a0e537d8f714da
 Patch0:		perl-CGI-Simple-CVE-2010-4411.patch
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
 BuildArch:      noarch
 BuildRequires:  perl(ExtUtils::MakeMaker), perl(Test::More), perl(IO::Scalar)
-Requires:  perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+# For perldoc
+BuildRequires:	perl(Pod::Perldoc)
+Requires:	perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
 
 %description
 %{summary}.
@@ -24,13 +24,11 @@ chmod -x Changes README
 perldoc -t perlartistic > Artistic
 perldoc -t perlgpl > COPYING
 
-
 %build
 %{__perl} Makefile.PL INSTALLDIRS=vendor
 make 
 
 %install
-rm -rf $RPM_BUILD_ROOT
 make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
 find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
 find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
@@ -39,17 +37,15 @@ chmod -R u+w $RPM_BUILD_ROOT/*
 %check
 make test
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
 %files
-%defattr(-,root,root,-)
 %doc Artistic COPYING Changes README
 %{perl_vendorlib}/CGI
 %{_mandir}/man3/*.3*
 
-
 %changelog
+* Sun Jan 22 2012 Tom Callaway <spot at fedoraproject.org> - 1.113-5
+- rebuild with fixed perldoc BR
+
 * Fri Jan 13 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.113-4
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
 



More information about the perl-devel mailing list