From 873e55b50fa4e51b97a17f9d3b7e883df46247ab1f0af0fd45844fba9096f787 Mon Sep 17 00:00:00 2001 From: Hrvoje Senjan Date: Fri, 27 Nov 2015 20:21:06 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5/kscreenlocker?expand=0&rev=2 --- kscreenlocker.spec | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/kscreenlocker.spec b/kscreenlocker.spec index b702f07..e894334 100644 --- a/kscreenlocker.spec +++ b/kscreenlocker.spec @@ -27,6 +27,7 @@ Source: %{name}-%{version}.tar.xz BuildRequires: cmake >= 2.8.12 BuildRequires: extra-cmake-modules >= 1.8.0 BuildRequires: kf5-filesystem +BuildRequires: pam-config BuildRequires: pam-devel BuildRequires: cmake(KF5Crash) >= 5.15.0 BuildRequires: cmake(KF5DBusAddons) >= 5.15.0 @@ -49,8 +50,12 @@ BuildRequires: pkgconfig(xcb) BuildRequires: pkgconfig(xcb-keysyms) BuildRequires: pkgconfig(xcursor) BuildRequires: pkgconfig(xi) -BuildRequires: pam-config Requires(post): pam-config +%if %{with lang} +Recommends: %{name}-lang +%else +Obsoletes: %{name}-lang +%endif BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -73,11 +78,12 @@ Requires: cmake(Qt5X11Extras) >= 5.5.0 %description devel Development files for Library and components for secure lock screen architecture. +%lang_package %prep %setup -q -n %{name}-%{version} %build - %cmake_kf5 -d build -- -DKDE4_COMMON_PAM_SERVICE=xdm + %cmake_kf5 -d build -- -DKDE4_COMMON_PAM_SERVICE=xdm -DCMAKE_INSTALL_LOCALEDIR=share/locale/kf5 %make_jobs %install @@ -93,6 +99,13 @@ Development files for Library and components for secure lock screen architecture %postun -n libKScreenLocker5 -p /sbin/ldconfig +%if %{with lang} +%files +%defattr(-,root,root) +%doc COPYING* +%{_kf5_localedir}/ +%endif + %files %defattr(-,root,root) %doc COPYING*