diff --git a/perl-Template-Toolkit.spec b/perl-Template-Toolkit.spec index 6fba41f..f2ef22f 100644 --- a/perl-Template-Toolkit.spec +++ b/perl-Template-Toolkit.spec @@ -1,6 +1,6 @@ Name: perl-Template-Toolkit Version: 2.22 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Template processing system Group: Development/Libraries License: GPL+ or Artistic @@ -45,6 +45,7 @@ CFLAGS="$RPM_OPT_FLAGS" %{__perl} Makefile.PL INSTALLDIRS=vendor \ make %{?_smp_mflags} OPTIMIZE="$RPM_OPT_FLAGS" %install +rm -rf $RPM_BUILD_ROOT # install (+ INSTALLARCHLIB) instead of pure_install to get docs # and the template library installed too make install \ @@ -52,7 +53,7 @@ make install \ INSTALLARCHLIB=$RPM_BUILD_ROOT%{perl_archlib} \ TT_PREFIX=$RPM_BUILD_ROOT%{_datadir}/tt2 find $RPM_BUILD_ROOT -type f \( -name perllocal.pod -o \ - -name .packlist -o -name '*.bs' -size 0 \) -exec rm {} ';' + -name .packlist -o -name '*.bs' -size 0 \) -exec rm {} ';' find $RPM_BUILD_ROOT -depth -type d -empty -exec rmdir {} ';' chmod -R u+w $RPM_BUILD_ROOT/* # Nuke buildroot where it hides @@ -76,6 +77,9 @@ rm -rf $RPM_BUILD_ROOT %{_mandir}/man3/*.3* %changelog +* Tue Feb 9 2010 Stepan Kasal - 2.22-5 +- delete the buildroot before install + * Fri Jan 15 2010 Stepan Kasal - 2.22-4 - use filtering macros