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