3 %bcond_with tests # build with tests
4 %define kdeplasmaver 5.26.0
6 %define kpname kwallet-pam
7 Summary: KWallet PAM integration
11 License: GPL v2+/LGPL v2.1+
13 Source0: https://download.kde.org/stable/plasma/%{kdeplasmaver}/%{kpname}-%{version}.tar.xz
14 # Source0-md5: f38c320bccab04b74d7f6192ac835da3
15 URL: http://www.kde.org/
16 BuildRequires: cmake >= 2.8.12
17 BuildRequires: kf5-extra-cmake-modules >= 1.4.0
18 BuildRequires: pam-devel
19 BuildRequires: qt5-build >= %{qtver}
20 BuildRequires: rpmbuild(macros) >= 1.164
21 BuildRequires: tar >= 1:1.22
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 KWallet PAM integration.
29 %setup -q -n %{kpname}-%{version}
35 %{!?with_tests:-DBUILD_TESTING=OFF} \
36 -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
37 -DCMAKE_INSTALL_LIBDIR:PATH=/%{_lib} \
38 -DHTML_INSTALL_DIR=%{_kdedocdir} \
47 rm -rf $RPM_BUILD_ROOT
48 %ninja_install -C build
51 rm -rf $RPM_BUILD_ROOT
54 %defattr(644,root,root,755)
55 %attr(755,root,root) /%{_lib}/security/pam_kwallet5.so
56 /etc/xdg/autostart/pam_kwallet_init.desktop
57 %attr(755,root,root) %{_libexecdir}/pam_kwallet_init
58 %{systemduserunitdir}/plasma-kwallet-pam.service