diff --git a/libvirt.changes b/libvirt.changes index 58e9ba3..c11ba81 100644 --- a/libvirt.changes +++ b/libvirt.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri May 6 16:38:37 UTC 2016 - olaf@aepfle.de + +- Remove unknown locales to fix build in old dists + ------------------------------------------------------------------- Tue May 3 02:26:32 UTC 2016 - jfehlig@suse.com diff --git a/libvirt.spec b/libvirt.spec index 61f49ca..be6c500 100644 --- a/libvirt.spec +++ b/libvirt.spec @@ -1237,10 +1237,12 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/connection-driver/*.la rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/connection-driver/*.a %endif # remove currently unsupported locale(s) -rm -rf $RPM_BUILD_ROOT/usr/share/locale/sr@latin -%if 0%{?suse_version} < 1130 -rm -rf $RPM_BUILD_ROOT/usr/share/locale/vi_VN -%endif +for dir in $RPM_BUILD_ROOT/usr/share/locale/* +do + sdir=`echo $dir | sed "s|$RPM_BUILD_ROOT||"` + if test -d $sdir ; then continue ; fi + rm -rfv "$dir" +done # temporarily remove polkit ACL policiy configuration - bnc#827644 rm -f $RPM_BUILD_ROOT/%{_datadir}/polkit-1/actions/org.libvirt.api.policy