SHA256
1
0
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:
Olaf Hering 2012-09-05 09:29:37 +00:00 committed by Git OBS Bridge
parent 1406bdbc7d
commit 65c8c74858

View File

@ -366,6 +366,11 @@ make \
%install
%makeinstall
%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
touch %{name}.lang
%find_lang %{name}
@ -577,9 +582,8 @@ rm -rf $RPM_BUILD_ROOT
%postun -n perl-Sys-Guestfs -p /sbin/ldconfig
%files -n perl-Sys-Guestfs
%files -n perl-Sys-Guestfs -f %{name}.files
%defattr(-,root,root)
%perl_vendorarch/*
%endif
#
%if %{with_python}