From 3a4b7fcb3a3fb8dd48e6d8075d7834fb5edcc4a85007736ed405813c78cf0f4f Mon Sep 17 00:00:00 2001 From: Luca Beltrame Date: Sat, 15 Apr 2017 13:29:12 +0000 Subject: [PATCH] Make a merry car great again OBS-URL: https://build.opensuse.org/package/show/KDE:Applications/svgpart?expand=0&rev=46 --- svgpart.spec | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/svgpart.spec b/svgpart.spec index 54a2f2d..95e51af 100644 --- a/svgpart.spec +++ b/svgpart.spec @@ -15,6 +15,7 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # +%bcond_without lang Name: svgpart Version: 17.03.90 @@ -40,6 +41,10 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build %description An SVG viewer component for KDE (KPart). +%if %{with lang} +%lang_package +%endif + %prep %setup -q @@ -49,15 +54,23 @@ An SVG viewer component for KDE (KPart). %install %kf5_makeinstall -C build +%if %{with lang} + %find_lang %{name} --with-man --all-name +%endif %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root) -%doc COPYING +%doc COPYING* %{_kf5_plugindir}/svgpart.so %{_kf5_servicesdir}/svgpart.desktop %{_kf5_kxmlguidir}/svgpart/ +%if %{with lang} +%files lang -f %{name}.lang +%doc COPYING* +%endif + %changelog