diff --git a/kio-extras5.spec b/kio-extras5.spec index 3af0b09..8cef03b 100644 --- a/kio-extras5.spec +++ b/kio-extras5.spec @@ -15,6 +15,7 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # +%bcond_without lang Name: kio-extras5 Version: 17.03.90 @@ -75,6 +76,10 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build %description Additional KIO-slaves for KDE applications. +%if %{with lang} +%lang_package +%endif + %prep %setup -q -n kio-extras-%{version} %patch0 -p1 @@ -86,6 +91,10 @@ sed -i '/^add_subdirectory( doc )/d' CMakeLists.txt %install %kf5_makeinstall -C build + %if %{with lang} + %kf5_find_lang + %kf5_find_htmldocs + %endif # we don't need nor want devel symlink, and dbus interface -- kio-extras don't install any headers, # nor are meant for development rm -rf %{buildroot}%{_kf5_sharedir}/dbus-1/ @@ -109,4 +118,8 @@ sed -i '/^add_subdirectory( doc )/d' CMakeLists.txt %{_kf5_sharedir}/solid/ %{_kf5_sharedir}/mime/packages/kf5_network.xml +%if %{with lang} +%files lang -f %{name}.lang +%endif + %changelog