From a36badaa6c3b89a7b631b74b63e41d6a43e4768b Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sat, 17 Sep 2011 08:59:46 +0200 Subject: perl-HTTP-Server-Simple-Authen, more cleanups --- perl-HTTP-Server-Simple-Authen.spec | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/perl-HTTP-Server-Simple-Authen.spec b/perl-HTTP-Server-Simple-Authen.spec index 590b7cf..32901cf 100644 --- a/perl-HTTP-Server-Simple-Authen.spec +++ b/perl-HTTP-Server-Simple-Authen.spec @@ -2,12 +2,13 @@ Name: perl-HTTP-Server-Simple-Authen Version: 0.04 Release: 1%{?dist} Summary: Authentication plugin for HTTP::Server::Simple -License: CHECK(GPL+ or Artistic) +# https://rt.cpan.org/Public/Bug/Display.html?id=71033 +# You can redistribute it and/or modify it under the same terms as Perl itself. +License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/HTTP-Server-Simple-Authen/ Source0: http://www.cpan.org/modules/by-module/HTTP/HTTP-Server-Simple-Authen-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: perl(Authen::Simple) >= 0.04 BuildRequires: perl(ExtUtils::MakeMaker) @@ -19,6 +20,9 @@ Requires: perl(HTTP::Server::Simple) >= 0.16 Requires: perl(Test::More) >= 0.32 Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +%{?perl_default_filter} + + %description HTTP::Server::Simple::Authen is an HTTP::Server::Simple plugin to allow HTTP authentication. Authentication scheme is pluggable and you can use @@ -35,26 +39,21 @@ make %{?_smp_mflags} %install -rm -rf $RPM_BUILD_ROOT +rm -rf %{buildroot} -make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT +make pure_install PERL_INSTALL_ROOT=%{buildroot} -find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; -find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; +find %{buildroot} -type f -name .packlist -exec rm -f {} \; +find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \; -%{_fixperms} $RPM_BUILD_ROOT/* +%{_fixperms} %{buildroot}/* %check make test -%clean -rm -rf $RPM_BUILD_ROOT - - %files -%defattr(-,root,root,-) %doc Changes %{perl_vendorlib}/HTTP/Server/Simple/* %{_mandir}/man3/HTTP* -- cgit