3 %bcond_with tests # build with tests
4 %define kdeplasmaver 5.24.5
6 %define kpname ksshaskpass
7 Summary: ssh-add helper that uses kwallet and kpassworddialog
11 License: GPL v2+/LGPL v2.1+
13 Source0: http://download.kde.org/stable/plasma/%{kdeplasmaver}/%{kpname}-%{version}.tar.xz
14 # Source0-md5: d3e087db5fdc3e5a98efbfbc4a874aa4
15 URL: http://www.kde.org/
16 BuildRequires: Qt5Core-devel >= %{qtver}
17 BuildRequires: cmake >= 2.8.12
18 BuildRequires: kf5-extra-cmake-modules >= 1.4.0
19 BuildRequires: kf5-kcoreaddons-devel
20 BuildRequires: kf5-ki18n-devel
21 BuildRequires: kf5-kwallet-devel
22 BuildRequires: kf5-kwidgetsaddons-devel
24 BuildRequires: qt5-build >= %{qtver}
25 BuildRequires: rpmbuild(macros) >= 1.164
26 BuildRequires: tar >= 1:1.22
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 Ssh-add helper that uses kwallet and kpassworddialog.
34 %setup -q -n %{kpname}-%{version}
40 %{!?with_tests:-DBUILD_TESTING=OFF} \
41 -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
42 -DHTML_INSTALL_DIR=%{_kdedocdir} \
51 rm -rf $RPM_BUILD_ROOT
52 %ninja_install -C build
54 %find_lang %{kpname} --all-name --with-kde
57 rm -rf $RPM_BUILD_ROOT
59 %post -p /sbin/ldconfig
60 %postun -p /sbin/ldconfig
62 %files -f %{kpname}.lang
63 %defattr(644,root,root,755)
64 %attr(755,root,root) %{_bindir}/ksshaskpass
65 %{_mandir}/man1/ksshaskpass.1*