diff --git a/sonnet.spec b/sonnet.spec index 5badedf..ddc0ac8 100644 --- a/sonnet.spec +++ b/sonnet.spec @@ -98,7 +98,11 @@ HSpell, Enchant, ASpell and HUNSPELL. Development files. %kf5_makeinstall -C build %fdupes %{buildroot}%{_kf5_sharedir} - %find_lang %{name}5 --with-qt --without-mo +if [ -e po ]; then +%find_lang %{name}5 --with-qt --without-mo +else +touch %{name}5.lang +fi %post -n libKF5SonnetCore%sonum -p /sbin/ldconfig