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

#
# spec file for package polkit-kde-agent-1
#
# Copyright (c) 2013 SUSE LINUX Products 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/
#


Name:           polkit-kde-agent-5
Version:        0.99.0
Release:        0
Summary:        PolicyKit authentication agent for KDE
License:        GPL-2.0 and LGPL-2.1+
Group:          Development/Libraries/KDE
Url:            https://projects.kde.org/projects/extragear/base/polkit-kde-agent-1
# ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin/
Source0:        polkit-kde-agent-1-%{version}.tar.bz2
Patch0:         0001-Bring-the-auth-dialog-to-the-front-when-it-is-shown..patch
Patch1:         0002-Don-t-try-to-install-files-outside-CMAKE_INSTALL_PRE.patch
Patch2:         0003-Autorestart-when-we-crash.-This-way-a-polkit-kde-1-c.patch
Patch3:         0004-Of-course-we-can-only-set-KCrash-flags-after-KCmdLin.patch
Patch4:         0005-Remove-unused-Remember-authorization-checkboxes.patch
Patch5:         0006-CCMAIL-echidnaman-kubuntu.org.patch
Patch6:         0007-Use-i18n-instead-of-concatenating-strings-that-are-s.patch
Patch7:         0008-Choose-the-current-user-in-the-combobox-if-it-is-pre.patch
Patch8:         0009-Normalize-connect-calls.patch
Patch9:         0010-fix-crash-when-more-than-one-user-exists-and-we-pre-.patch
Patch10:        qt5.patch
BuildRequires:  kf5-filesystem
BuildRequires:  extra-cmake-modules
BuildRequires:  kdelibs4support-devel
BuildRequires:  kiconthemes-devel
BuildRequires:  libpolkit-qt5-1-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

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

%prep
%setup -q -n polkit-kde-agent-1-%{version}
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
%patch9 -p1
%patch10 -p1

%build
  %cmake_kf5 -d build -- -DLIBEXEC_INSTALL_DIR=%{_kf5_libdir}/libexec
  %make_jobs

%install
  %kf5_makeinstall -C build

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

%changelog
openSUSE Build Service is sponsored by