use perl macro to remove unwanted files from buildroot

OBS-URL: https://build.opensuse.org/package/show/Virtualization/libguestfs?expand=0&rev=56
This commit is contained in:
Olaf Hering 2012-09-03 08:27:00 +00:00 committed by Git OBS Bridge
parent a2e5b3e9bb
commit f7c0877c99

View File

@ -100,7 +100,7 @@ BuildRequires: perl(Data::Dumper)
BuildRequires: perl(Getopt::Long)
BuildRequires: perl(Locale::TextDomain)
BuildRequires: perl(Pod::Usage)
BuildRequires: perl(String::ShellQuote)
BuildRequires: perl(String::ShellQuote)
BuildRequires: perl(Win::Hivex)
BuildRequires: perl(Win::Hivex::Regedit)
BuildRequires: perl(Sys::Virt)
@ -336,7 +336,7 @@ make \
%install
%makeinstall
find $RPM_BUILD_ROOT \( -name "*.pod" -o -name ".packlist" \) -print0 | xargs -0 --no-run-if-empty rm -fv
%perl_process_packlist
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.{l,}a
touch %{name}.lang
%find_lang %{name}