]>
Commit | Line | Data |
---|---|---|
54d3ff79 WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
992b54df | 4 | %define kdeappsver 23.04.0 |
e37f2463 WF |
5 | %define kframever 5.94.0 |
6 | %define qtver 5.15.2 | |
707cdd76 WF |
7 | %define kaname kmousetool |
8 | Summary: kmousetool | |
9 | Name: ka5-%{kaname} | |
992b54df WF |
10 | Version: 23.04.0 |
11 | Release: 1 | |
707cdd76 WF |
12 | License: GPL v2+/LGPL v2.1+ |
13 | Group: X11/Applications/Games | |
37bb99ff | 14 | Source0: https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz |
992b54df | 15 | # Source0-md5: edc8a1221799b9ad1753a2f165b1e7a6 |
707cdd76 WF |
16 | URL: http://www.kde.org/ |
17 | BuildRequires: Qt5Core-devel >= %{qtver} | |
18 | BuildRequires: Qt5Gui-devel | |
19 | BuildRequires: Qt5Widgets-devel | |
20 | BuildRequires: gettext-devel | |
8c3ea929 WF |
21 | BuildRequires: kf5-extra-cmake-modules >= %{kframever} |
22 | BuildRequires: kf5-kdbusaddons-devel >= %{kframever} | |
23 | BuildRequires: kf5-kdoctools-devel >= %{kframever} | |
24 | BuildRequires: kf5-ki18n-devel >= %{kframever} | |
25 | BuildRequires: kf5-kiconthemes-devel >= %{kframever} | |
26 | BuildRequires: kf5-knotifications-devel >= %{kframever} | |
27 | BuildRequires: kf5-kxmlgui-devel >= %{kframever} | |
cb6ad48d | 28 | BuildRequires: ninja |
707cdd76 WF |
29 | BuildRequires: phonon-qt5-devel |
30 | BuildRequires: qt5-build >= %{qtver} | |
31 | BuildRequires: rpmbuild(macros) >= 1.164 | |
32 | BuildRequires: shared-mime-info | |
33 | BuildRequires: tar >= 1:1.22 | |
34 | BuildRequires: xorg-lib-libX11-devel | |
8be42fea | 35 | BuildRequires: xorg-lib-libXt-devel |
707cdd76 WF |
36 | BuildRequires: xz |
37 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
38 | ||
39 | %description | |
40 | KMouseTool is a Linux-based KDE program. It clicks the mouse for you, | |
f472716f WF |
41 | so you don't have to. KMouseTool works with any mouse or pointing device. |
42 | ||
43 | %description -l pl.UTF-8 | |
44 | KMouseTool jest opartym na Linuksie programem KDE. Klika myszą za Ciebie, | |
45 | więc Ty już nie musisz. KMouseTool działa z każdą myszą lub innym | |
46 | urządzeniem wskazującym. | |
707cdd76 WF |
47 | |
48 | %prep | |
49 | %setup -q -n %{kaname}-%{version} | |
50 | ||
51 | %build | |
52 | install -d build | |
53 | cd build | |
54 | %cmake \ | |
cb6ad48d | 55 | -G Ninja \ |
54d3ff79 | 56 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
8c3ea929 | 57 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
707cdd76 WF |
58 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
59 | .. | |
cb6ad48d | 60 | %ninja_build |
707cdd76 | 61 | |
54d3ff79 WF |
62 | %if %{with tests} |
63 | ctest | |
64 | %endif | |
65 | ||
66 | ||
707cdd76 WF |
67 | %install |
68 | rm -rf $RPM_BUILD_ROOT | |
cb6ad48d | 69 | %ninja_install -C build |
707cdd76 | 70 | |
8c3ea929 | 71 | %find_lang %{kaname} --all-name --with-kde |
707cdd76 WF |
72 | |
73 | %clean | |
74 | rm -rf $RPM_BUILD_ROOT | |
75 | ||
76 | %files -f %{kaname}.lang | |
77 | %defattr(644,root,root,755) | |
78 | %attr(755,root,root) %{_bindir}/kmousetool | |
79 | %{_desktopdir}/org.kde.kmousetool.desktop | |
80 | %{_iconsdir}/hicolor/16x16/actions/kmousetool_off.png | |
81 | %{_iconsdir}/hicolor/16x16/actions/kmousetool_on.png | |
82 | %{_iconsdir}/hicolor/16x16/apps/kmousetool.png | |
83 | %{_iconsdir}/hicolor/32x32/actions/kmousetool_off.png | |
84 | %{_iconsdir}/hicolor/32x32/actions/kmousetool_on.png | |
85 | %{_iconsdir}/hicolor/32x32/apps/kmousetool.png | |
86 | %{_datadir}/kmousetool | |
87 | %{_datadir}/metainfo/org.kde.kmousetool.appdata.xml | |
cb6ad48d WF |
88 | %lang(ca) %{_mandir}/ca/man1/kmousetool.1.* |
89 | %lang(de) %{_mandir}/de/man1/kmousetool.1.* | |
90 | %lang(es) %{_mandir}/es/man1/kmousetool.1.* | |
91 | %lang(et) %{_mandir}/et/man1/kmousetool.1.* | |
92 | %lang(fr) %{_mandir}/fr/man1/kmousetool.1.* | |
93 | %lang(it) %{_mandir}/it/man1/kmousetool.1.* | |
94 | %lang(C) %{_mandir}/man1/kmousetool.1.* | |
95 | %lang(nl) %{_mandir}/nl/man1/kmousetool.1.* | |
96 | %lang(pt) %{_mandir}/pt/man1/kmousetool.1.* | |
97 | %lang(pt_BR) %{_mandir}/pt_BR/man1/kmousetool.1.* | |
98 | %lang(sv) %{_mandir}/sv/man1/kmousetool.1.* | |
99 | %lang(uk) %{_mandir}/uk/man1/kmousetool.1.* |