wrap part of perl post-make-install processing in with_perl

OBS-URL: https://build.opensuse.org/package/show/Virtualization/libguestfs?expand=0&rev=111
This commit is contained in:
Olaf Hering 2012-09-24 15:29:28 +00:00 committed by Git OBS Bridge
parent 835795384b
commit 35696becd6

View File

@ -396,6 +396,7 @@ make \
%install
%makeinstall
%if %{with_perl}
# Delete empty perl bootstrap files
find $RPM_BUILD_ROOT -name "*.bs" -size 0c -print -delete
# Delete unused perl script without executable permissions
@ -405,6 +406,7 @@ find $RPM_BUILD_ROOT%perl_vendorarch/ -name bindtests.pl -print -delete
# the macro above packages everything, here only the perl files are desrired
grep "%perl_vendorarch/" %{name}.files | tee t
mv t %{name}.files
%endif
#
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.{l,}a
touch %{name}.lang