diff --git a/step.spec b/step.spec index 7ef19a0..6535d85 100644 --- a/step.spec +++ b/step.spec @@ -15,6 +15,7 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # +%bcond_without lang Name: step Version: 17.03.90 @@ -40,6 +41,7 @@ BuildRequires: libqalculate-devel BuildRequires: pkgconfig BuildRequires: update-desktop-files BuildRequires: xz +BuildRequires: cmake(Qt5LinguistTools) BuildRequires: pkgconfig(Qt5Core) BuildRequires: pkgconfig(Qt5OpenGL) BuildRequires: pkgconfig(Qt5PrintSupport) @@ -61,6 +63,10 @@ of bodies/forces in your experiment (even during simulation) and see how this will change evolution of the experiment. With Step you can not only learn but feel how physics works ! +%if %{with lang} +%lang_package +%endif + %prep %setup -q @@ -73,6 +79,10 @@ export RPM_OPT_FLAGS="%{optflags} -mminimal-toc" %install %kf5_makeinstall -C build + %if %{with lang} + %find_lang %{name} --with-man --all-name --with-qt + %kf5_find_htmldocs + %endif %suse_update_desktop_file org.kde.%{name} X-KDE-Edu-Teaching %fdupes -s %{buildroot} @@ -90,4 +100,9 @@ export RPM_OPT_FLAGS="%{optflags} -mminimal-toc" %{_kf5_iconsdir}/hicolor/*/*/* %dir %{_kf5_appstreamdir} +%if %{with lang} +%files lang -f %{name}.lang +%doc COPYING* +%endif + %changelog