forked from pool/libguestfs
use perl_gen_filelist to avoid packaging the "auto" directory
this leads to build errors in SLE_11 repo %perl_gen_filelist tries to package everything, remove all non-perl files from list to avoid duplicate files OBS-URL: https://build.opensuse.org/package/show/Virtualization/libguestfs?expand=0&rev=78
This commit is contained in:
parent
1406bdbc7d
commit
65c8c74858
@ -366,6 +366,11 @@ make \
|
|||||||
%install
|
%install
|
||||||
%makeinstall
|
%makeinstall
|
||||||
%perl_process_packlist
|
%perl_process_packlist
|
||||||
|
%perl_gen_filelist
|
||||||
|
# the macro above packages everything, here only the perl files are desrired
|
||||||
|
grep "%perl_vendorarch/" %{name}.files | tee t
|
||||||
|
mv t %{name}.files
|
||||||
|
#
|
||||||
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.{l,}a
|
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.{l,}a
|
||||||
touch %{name}.lang
|
touch %{name}.lang
|
||||||
%find_lang %{name}
|
%find_lang %{name}
|
||||||
@ -577,9 +582,8 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
%postun -n perl-Sys-Guestfs -p /sbin/ldconfig
|
%postun -n perl-Sys-Guestfs -p /sbin/ldconfig
|
||||||
|
|
||||||
%files -n perl-Sys-Guestfs
|
%files -n perl-Sys-Guestfs -f %{name}.files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%perl_vendorarch/*
|
|
||||||
%endif
|
%endif
|
||||||
#
|
#
|
||||||
%if %{with_python}
|
%if %{with_python}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user