From 947700b01febb681f9a329db3b5de02b021291ee099c328fa9e9a552a4199f0e Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Mon, 29 Nov 2010 15:20:45 +0000 Subject: [PATCH] - simplify macro logic a bit OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl?expand=0&rev=49 --- macros.perl | 12 +++++------- perl.changes | 5 +++++ 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/macros.perl b/macros.perl index b79d73b..a1fa930 100644 --- a/macros.perl +++ b/macros.perl @@ -26,13 +26,11 @@ # %perl_make_install make DESTDIR=$RPM_BUILD_ROOT install_vendor %perl_process_packlist(n:) \ - if [ %{_target_cpu} == noarch ]; then \ - test -n "$RPM_BUILD_ROOT" -a -d $RPM_BUILD_ROOT%perl_vendorarch/auto && \ - find $RPM_BUILD_ROOT%perl_vendorarch/auto -name .packlist -print0 | xargs -0 -r rm ; \ - find $RPM_BUILD_ROOT%perl_vendorarch/auto -depth -type d -print0 | xargs -0 -r rmdir ; \ - else \ - test -n "$RPM_BUILD_ROOT" -a -d $RPM_BUILD_ROOT%perl_vendorarch/auto && \ - find $RPM_BUILD_ROOT%perl_vendorarch/auto -name .packlist -print0 | xargs -0 -r rm ; \ + if test -n "$RPM_BUILD_ROOT" -a -d $RPM_BUILD_ROOT%perl_vendorarch/auto; then \ + find $RPM_BUILD_ROOT%perl_vendorarch/auto -name .packlist -print0 | xargs -0 -r rm \ + if [ %{_target_cpu} == noarch ]; then \ + find $RPM_BUILD_ROOT%perl_vendorarch/auto -depth -type d -print0 | xargs -0 -r rmdir \ + fi \ fi \ rm -f $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod \ %nil diff --git a/perl.changes b/perl.changes index cdd5081..4894d60 100644 --- a/perl.changes +++ b/perl.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Nov 29 15:20:19 UTC 2010 - coolo@novell.com + +- simplify macro logic a bit + ------------------------------------------------------------------- Mon Nov 22 19:27:42 UTC 2010 - chris@computersalat.de