From 25628d81b5c5c45ea33cd425d4ccab96642866e9c09bdb1754836f56819058dc Mon Sep 17 00:00:00 2001 From: Hrvoje Senjan Date: Fri, 10 Apr 2015 16:27:12 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5/kcoreaddons?expand=0&rev=59 --- kcoreaddons.spec | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/kcoreaddons.spec b/kcoreaddons.spec index 7c6173e..5339523 100644 --- a/kcoreaddons.spec +++ b/kcoreaddons.spec @@ -16,20 +16,25 @@ # +%bcond_without lang %define lname libKF5CoreAddons5 %define _tar_path 5.9 Name: kcoreaddons -Version: %{_tar_path}.0 +Version: 5.9.0 Release: 0 BuildRequires: cmake >= 2.8.12 -BuildRequires: extra-cmake-modules >= %{version} +BuildRequires: extra-cmake-modules >= %{_tar_path} BuildRequires: fdupes BuildRequires: kf5-filesystem +%if %{with lang} BuildRequires: libqt5-linguist-devel >= 5.2.0 +%endif BuildRequires: shared-mime-info BuildRequires: pkgconfig(Qt5Core) >= 5.2.0 Requires: shared-mime-info +%if %{with lang} Recommends: %{name}-lang = %{version} +%endif Summary: Utilities for core application functionality and accessing the OS License: LGPL-2.1+ Group: System/GUI/KDE @@ -82,11 +87,9 @@ replacement, accessing user information and many more. Development files. %kf5_makeinstall -C build %fdupes -s %{buildroot} -if [ -e po ]; then +%if %{with lang} %find_lang %{name}5 --with-qt --without-mo -else -touch %{name}5.lang -fi +%endif %post -n %lname -p /sbin/ldconfig @@ -98,7 +101,9 @@ fi %postun %{_bindir}/update-mime-database %{_kf5_sharedir}/mime > /dev/null 2>&1 || : +%if %{with lang} %files lang -f %{name}5.lang +%endif %files %defattr(-,root,root)