diff --git a/libkmahjongg.spec b/libkmahjongg.spec index 794c109..9612ed9 100644 --- a/libkmahjongg.spec +++ b/libkmahjongg.spec @@ -15,6 +15,7 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # +%bcond_without lang Name: libkmahjongg Version: 17.03.90 @@ -68,6 +69,10 @@ Provides: %{name}-kf5-devel = %{version} This package contains all necessary files and libraries needed to develop games that uses Mahjongg tiles. +%if %{with lang} +%lang_package +%endif + %prep %setup -q @@ -77,6 +82,9 @@ develop games that uses Mahjongg tiles. %install %kf5_makeinstall -C build +%if %{with lang} + %find_lang %{name} --with-man --all-name +%endif %fdupes -s %{buildroot} %post -n libKF5KMahjongglib5 -p /sbin/ldconfig @@ -99,4 +107,9 @@ develop games that uses Mahjongg tiles. %{_kf5_libdir}/libKF5KMahjongglib.so %{_kf5_libdir}/cmake/KF5KMahjongglib +%if %{with lang} +%files lang -f %{name}.lang +%doc COPYING* +%endif + %changelog