]>
Commit | Line | Data |
---|---|---|
79a2817e | 1 | %define kdeplasmaver 5.21.2 |
d6d15c79 | 2 | %define qtver 5.9.0 |
1cd5187d AM |
3 | %define kpname polkit-kde-agent |
4 | ||
5 | Summary: Daemon providing a polkit authentication UI for KDE | |
6 | Name: kp5-%{kpname} | |
79a2817e | 7 | Version: 5.21.2 |
1cd5187d AM |
8 | Release: 1 |
9 | License: LGPL v2.1+ | |
10 | Group: X11/Libraries | |
11 | Source0: http://download.kde.org/stable/plasma/%{kdeplasmaver}/%{kpname}-1-%{version}.tar.xz | |
79a2817e | 12 | # Source0-md5: 1bf15dbc1bf98c87b1f235cb7a153d97 |
1cd5187d AM |
13 | URL: http://www.kde.org/ |
14 | BuildRequires: Qt5Core-devel >= %{qtver} | |
15 | BuildRequires: cmake >= 2.8.12 | |
16 | BuildRequires: kf5-kconfig-devel | |
17 | BuildRequires: kf5-kcoreaddons-devel | |
18 | BuildRequires: kf5-kcrash-devel | |
19 | BuildRequires: kf5-kdbusaddons-devel | |
20 | BuildRequires: kf5-ki18n-devel | |
21 | BuildRequires: kf5-kiconthemes-devel | |
22 | BuildRequires: kf5-knotifications-devel | |
23 | BuildRequires: kf5-kwidgetsaddons-devel | |
24 | BuildRequires: kf5-kwindowsystem-devel | |
810ef3a5 | 25 | BuildRequires: ninja |
1cd5187d AM |
26 | BuildRequires: rpmbuild(macros) >= 1.164 |
27 | BuildRequires: xz | |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
29 | ||
30 | %define qt5dir %{_libdir}/qt5 | |
31 | ||
32 | %description | |
33 | Daemon providing a polkit authentication UI for KDE. | |
34 | ||
35 | %prep | |
36 | %setup -q -n %{kpname}-1-%{version} | |
37 | ||
38 | %build | |
39 | install -d build | |
40 | cd build | |
810ef3a5 | 41 | %cmake -G Ninja \ |
1cd5187d | 42 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
79a2817e | 43 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
1cd5187d | 44 | ../ |
810ef3a5 | 45 | %ninja_build |
1cd5187d AM |
46 | |
47 | %install | |
48 | rm -rf $RPM_BUILD_ROOT | |
810ef3a5 | 49 | %ninja_install -C build |
1cd5187d | 50 | |
2eb99d71 | 51 | %find_lang %{kpname} --all-name --with-kde |
1cd5187d AM |
52 | |
53 | %clean | |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | ||
56 | %post -p /sbin/ldconfig | |
57 | %postun -p /sbin/ldconfig | |
58 | ||
59 | %files -f %{kpname}.lang | |
60 | %defattr(644,root,root,755) | |
1caaf06d | 61 | %attr(755,root,root) %{_libexecdir}/polkit-kde-authentication-agent-1 |
1cd5187d AM |
62 | /etc/xdg/autostart/polkit-kde-authentication-agent-1.desktop |
63 | %{_datadir}/knotifications5/policykit1-kde.notifyrc | |
1caaf06d | 64 | %{_desktopdir}/org.kde.polkit-kde-authentication-agent-1.desktop |
79a2817e | 65 | %{systemduserunitdir}/plasma-polkit-agent.service |