From 72a96c72ed76d34c36937899c7fbcbd0cc593fe0 Mon Sep 17 00:00:00 2001 From: Steven Pritchard Date: Apr 17 2007 23:39:11 +0000 Subject: Reformat to match cpanspec output. Use fixperms macro instead of our own chmod incantation. BR ExtUtils::MakeMaker. --- diff --git a/perl-HTML-Template-Expr.spec b/perl-HTML-Template-Expr.spec index 75ea35c..18bf308 100644 --- a/perl-HTML-Template-Expr.spec +++ b/perl-HTML-Template-Expr.spec @@ -1,16 +1,15 @@ Name: perl-HTML-Template-Expr Version: 0.07 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Expression support extension for HTML::Template - -Group: Development/Libraries License: GPL or Artistic +Group: Development/Libraries URL: http://search.cpan.org/dist/HTML-Template-Expr/ Source0: http://www.cpan.org/authors/id/S/SA/SAMTREGAR/HTML-Template-Expr-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) - BuildArch: noarch -BuildRequires: perl(HTML::Template) +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(HTML::Template) >= 2.4 BuildRequires: perl(Parse::RecDescent) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) @@ -22,40 +21,41 @@ work. Expression support includes comparisons, math operations, string operations and a mechanism to allow you add your own functions at runtime. - %prep %setup -q -n HTML-Template-Expr-%{version} - %build %{__perl} Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} - %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 -depth -type d -exec rmdir {} 2>/dev/null ';' -chmod -R u+w $RPM_BUILD_ROOT/* +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} $RPM_BUILD_ROOT/* %check make test - %clean rm -rf $RPM_BUILD_ROOT - %files %defattr(-,root,root,-) %doc ANNOUNCE ARTISTIC Changes GPL README %{perl_vendorlib}/HTML/ %{_mandir}/man3/HTML::Template::Expr.3* - %changelog +* Tue Apr 17 2007 Steven Pritchard 0.07-4 +- Reformat to match cpanspec output. +- Use fixperms macro instead of our own chmod incantation. +- BR ExtUtils::MakeMaker. + * Thu Oct 19 2006 Steven Pritchard 0.07-3 - Rebuild.