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:
parent
835795384b
commit
35696becd6
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user