From 0b7ec48ee4f2876eb131baafcb0ed98e22ed4ff00e8e36aa8a9b3bb6f2ce6534 Mon Sep 17 00:00:00 2001 From: Hrvoje Senjan Date: Fri, 10 Apr 2015 16:26:13 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5/kdesu?expand=0&rev=54 --- kdesu.spec | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/kdesu.spec b/kdesu.spec index 5129f6b..d09ef7e 100644 --- a/kdesu.spec +++ b/kdesu.spec @@ -16,20 +16,21 @@ # +%bcond_without lang %define lname libKF5Su5 %define _tar_path 5.9 Name: kdesu -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: kcoreaddons-devel >= %{kf5_version} +BuildRequires: kcoreaddons-devel >= %{_tar_path} BuildRequires: kf5-filesystem -BuildRequires: ki18n-devel >= %{kf5_version} -BuildRequires: kpty-devel >= %{kf5_version} -BuildRequires: kservice-devel >= %{kf5_version} +BuildRequires: ki18n-devel >= %{_tar_path} +BuildRequires: kpty-devel >= %{_tar_path} +BuildRequires: kservice-devel >= %{_tar_path} BuildRequires: pkgconfig(Qt5Core) >= 5.2.0 BuildRequires: pkgconfig(x11) Summary: User interface for running shell commands with root privileges @@ -52,7 +53,9 @@ Summary: User interface for running shell commands with root privileges Group: System/GUI/KDE PreReq: permissions Obsoletes: libKF5Su4 +%if %{with lang} Recommends: %lname-lang = %{version} +%endif %description -n %lname libkdesu provides functionality for building GUI front ends for @@ -64,8 +67,8 @@ Summary: User interface for running shell commands with root privileges Group: Development/Libraries/KDE Requires: %lname = %{version} Requires: extra-cmake-modules -Requires: kpty-devel >= %{kf5_version} -Requires: kservice-devel >= %{kf5_version} +Requires: kpty-devel >= %{_tar_path} +Requires: kservice-devel >= %{_tar_path} %description devel libkdesu provides functionality for building GUI front ends for @@ -91,11 +94,9 @@ Development files. echo "setBadness('permissions-file-setuid-bit', 0)" > $RPM_SOURCE_DIR/%name-rpmlintrc %endif -if [ -e po ]; then +%if %{with lang} %find_lang kdesud5 %{name}.lang -else -touch %{name}.lang -fi +%endif %post -n %lname /sbin/ldconfig @@ -106,7 +107,9 @@ fi %verifyscript -n %lname %verify_permissions -e %{_kf5_libexecdir}/kdesud +%if %{with lang} %files -n %lname-lang -f %{name}.lang +%endif %files -n %lname %defattr(-,root,root)