File polkit-kde-agent-5.spec of Package polkit-kde-agent-5

#
# spec file for package polkit-kde-agent-5
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


%bcond_without lang
Name:           polkit-kde-agent-5
Version:        5.12.2
Release:        0
Summary:        PolicyKit authentication agent for KDE
License:        GPL-2.0 and LGPL-2.1+
Group:          Development/Libraries/KDE
Url:            http://www.kde.org/
Source:         polkit-kde-agent-1-%{version}.tar.xz
BuildRequires:  extra-cmake-modules >= 1.2.0
BuildRequires:  kf5-filesystem
BuildRequires:  cmake(KF5Config)
BuildRequires:  cmake(KF5CoreAddons)
BuildRequires:  cmake(KF5Crash)
BuildRequires:  cmake(KF5DBusAddons)
BuildRequires:  cmake(KF5I18n)
BuildRequires:  cmake(KF5IconThemes)
BuildRequires:  cmake(KF5Notifications)
BuildRequires:  cmake(KF5WidgetsAddons)
BuildRequires:  cmake(KF5WindowSystem)
BuildRequires:  cmake(PolkitQt5-1) >= 0.103.0
BuildRequires:  cmake(Qt5Core) >= 5.4.0
BuildRequires:  cmake(Qt5DBus) >= 5.4.0
BuildRequires:  cmake(Qt5Widgets) >= 5.4.0
%if %{with lang}
Recommends:     %{name}-lang
%endif
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Provides Policy Kit Authentication Agent that nicely fits to KDE.

%lang_package
%prep
%setup -q -n polkit-kde-agent-1-%{version}

%build
  %cmake_kf5 -d build
  %make_jobs

%install
  %kf5_makeinstall -C build

%if %{with lang}
  %find_lang polkit-kde-authentication-agent-1 %{name}.lang
%endif

%if %{with lang}
%files lang -f %{name}.lang
%endif

%files
%defattr(-,root,root)
%doc COPYING
%{_kf5_configdir}/autostart/polkit-kde-authentication-agent-1.desktop
%{_kf5_libdir}/libexec/polkit-kde-authentication-agent-1
%{_kf5_notifydir}/

%changelog
openSUSE Build Service is sponsored by