- delete the buildroot before install

epel9
Štěpán Kasal 15 years ago
parent e9cf5f649f
commit 33a2c9431a

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

Loading…
Cancel
Save