diff --git a/discover.spec b/discover.spec index fee41ae..706170e 100644 --- a/discover.spec +++ b/discover.spec @@ -16,6 +16,7 @@ # +%bcond_without lang Name: discover Version: 5.5.95 Release: 0 @@ -79,6 +80,7 @@ This is the systray plasmoid to notify the user that updates are available %suse_update_desktop_file -r org.kde.discover Qt KDE System PackageManager %suse_update_desktop_file -r plasma-discover-updater Qt KDE System PackageManager +%if %{with lang} %find_lang libdiscover %{name}.lang %find_lang plasma-discover-exporter %{name}.lang %find_lang plasma-discover-notifier %{name}.lang @@ -86,6 +88,9 @@ This is the systray plasmoid to notify the user that updates are available %find_lang plasma-discover-updater %{name}.lang %find_lang plasma_applet_org.kde.muonnotifier plasma.lang +%else + touch plasma.lang +%endif %files %defattr(-,root,root) @@ -106,8 +111,10 @@ This is the systray plasmoid to notify the user that updates are available %{_datadir}/libdiscover/ %{_datadir}/plasmadiscover/ +%if %{with lang} %files lang -f %{name}.lang %defattr(-,root,root) +%endif %files plasmoid -f plasma.lang %defattr(-,root,root)