|
|
|
@ -163,7 +163,7 @@ rm -f $MO_NAME_NEW \
|
|
|
|
|
# remove languages we do not yet support - but give out statistics \
|
|
|
|
|
if [ -d "%{buildroot}%{_kf5_localedir}" ] ; then \
|
|
|
|
|
find "%{buildroot}%{_kf5_localedir}" -maxdepth 1 -type d | sed 's:'"%{buildroot}"%{_kf5_localedir}/'::; /^$/d' | while read dir; do \
|
|
|
|
|
if ! rpm -ql filesystem | egrep -q "/usr/share/locale/$dir"$; then \
|
|
|
|
|
if ! rpm -ql filesystem | grep -E -q "/usr/share/locale/$dir"$; then \
|
|
|
|
|
find %{buildroot}%{_kf5_localedir}/$dir -name *.mo | sed 's:'"%{buildroot}"'::' | while read file; do \
|
|
|
|
|
echo -n "removing translation $file: " \
|
|
|
|
|
msgunfmt "%{buildroot}/$file" | msgfmt --statistics -o /dev/null - \
|
|
|
|
|