From 22fdcbb21c931c5215e0420c12007ac6ea12a2a30378749fe1e1357c717df6e6 Mon Sep 17 00:00:00 2001 From: Luca Beltrame Date: Sat, 15 Apr 2017 13:29:11 +0000 Subject: [PATCH] Make a merry car great again OBS-URL: https://build.opensuse.org/package/show/KDE:Applications/step?expand=0&rev=47 --- step.spec | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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