From ff44a311e549af3e824f31553834b674594a3f8109ac2d5ee4e129a7b119918d Mon Sep 17 00:00:00 2001 From: Hrvoje Senjan Date: Fri, 10 Apr 2015 16:29:13 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5/kcmutils?expand=0&rev=51 --- kcmutils.spec | 37 ++++++++++++++++++++----------------- 1 file changed, 20 insertions(+), 17 deletions(-) diff --git a/kcmutils.spec b/kcmutils.spec index ee72868..ea589f5 100644 --- a/kcmutils.spec +++ b/kcmutils.spec @@ -16,25 +16,26 @@ # +%bcond_without lang %define lname libKF5KCMUtils5 %define _tar_path 5.9 Name: kcmutils -Version: %{_tar_path}.0 +Version: 5.9.0 Release: 0 %define kf5_version %{version} BuildRequires: cmake >= 2.8.12 -BuildRequires: extra-cmake-modules >= %{version} +BuildRequires: extra-cmake-modules >= %{_tar_path} BuildRequires: fdupes -BuildRequires: kconfigwidgets-devel >= %{kf5_version} -BuildRequires: kcoreaddons-devel >= %{kf5_version} -BuildRequires: kdeclarative-devel >= %{kf5_version} +BuildRequires: kconfigwidgets-devel >= %{_tar_path} +BuildRequires: kcoreaddons-devel >= %{_tar_path} +BuildRequires: kdeclarative-devel >= %{_tar_path} BuildRequires: kf5-filesystem -BuildRequires: ki18n-devel >= %{kf5_version} -BuildRequires: kiconthemes-devel >= %{kf5_version} -BuildRequires: kitemviews-devel >= %{kf5_version} -BuildRequires: kpackage-devel >= %{kf5_version} -BuildRequires: kservice-devel >= %{kf5_version} -BuildRequires: kxmlgui-devel >= %{kf5_version} +BuildRequires: ki18n-devel >= %{_tar_path} +BuildRequires: kiconthemes-devel >= %{_tar_path} +BuildRequires: kitemviews-devel >= %{_tar_path} +BuildRequires: kpackage-devel >= %{_tar_path} +BuildRequires: kservice-devel >= %{_tar_path} +BuildRequires: kxmlgui-devel >= %{_tar_path} BuildRequires: pkgconfig(Qt5DBus) >= 5.2.0 BuildRequires: pkgconfig(Qt5Qml) >= 5.2.0 BuildRequires: pkgconfig(Qt5Quick) >= 5.2.0 @@ -55,7 +56,9 @@ created with the KConfigWidgets framework. Summary: Provides various classes to work with KCModules Group: System/GUI/KDE Obsoletes: libKF5KCMUtils4 +%if %{with lang} Recommends: %lname-lang = %{version} +%endif %description -n %lname KCMUtils provides various classes to work with KCModules. KCModules can be @@ -66,8 +69,8 @@ Summary: Provides various classes to work with KCModules: Build Environme Group: Development/Libraries/KDE Requires: %lname = %{version} Requires: extra-cmake-modules -Requires: kconfigwidgets-devel >= %{kf5_version} -Requires: kservice-devel >= %{kf5_version} +Requires: kconfigwidgets-devel >= %{_tar_path} +Requires: kservice-devel >= %{_tar_path} %description devel KCMUtils provides various classes to work with KCModules. KCModules can be @@ -85,17 +88,17 @@ created with the KConfigWidgets framework. Development files. %kf5_makeinstall -C build %fdupes -s %{buildroot} -if [ -e po ]; then +%if %{with lang} %find_lang %{name}5 -else -touch %{name}5.lang -fi +%endif %post -n %lname -p /sbin/ldconfig %postun -n %lname -p /sbin/ldconfig +%if %{with lang} %files -n %lname-lang -f %{name}5.lang +%endif %files -n %lname %defattr(-,root,root)