]>
Commit | Line | Data |
---|---|---|
0b88c433 WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
e97933a3 | 4 | %define kdeframever 5.99 |
d535399d | 5 | %define qtver 5.15.2 |
13c938b2 | 6 | %define kfname krunner |
b55c31cb WF |
7 | |
8 | Summary: Framework for Plasma runners | |
13c938b2 | 9 | Name: kf5-%{kfname} |
e97933a3 | 10 | Version: 5.99.0 |
d00a9396 | 11 | Release: 2 |
b55c31cb WF |
12 | License: LGPL v2.1+ |
13 | Group: X11/Libraries | |
b0f4a0ba | 14 | Source0: https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz |
e97933a3 | 15 | # Source0-md5: 6b8d8e230d781cd9878af395362b6373 |
b55c31cb | 16 | URL: http://www.kde.org/ |
13c938b2 AM |
17 | BuildRequires: Qt5Core-devel >= %{qtver} |
18 | BuildRequires: Qt5DBus-devel >= %{qtver} | |
19 | BuildRequires: Qt5Gui-devel >= %{qtver} | |
20 | BuildRequires: Qt5Network-devel >= %{qtver} | |
21 | BuildRequires: Qt5Qml-devel >= %{qtver} | |
22 | BuildRequires: Qt5Quick-devel >= %{qtver} | |
23 | BuildRequires: Qt5Test-devel >= %{qtver} | |
24 | BuildRequires: Qt5Widgets-devel >= %{qtver} | |
25 | BuildRequires: Qt5Xml-devel >= %{qtver} | |
b55c31cb WF |
26 | BuildRequires: cmake >= 2.8.12 |
27 | BuildRequires: gettext-devel | |
28 | BuildRequires: kf5-attica-devel >= %{version} | |
88ea7a27 | 29 | BuildRequires: kf5-extra-cmake-modules >= %{version} |
b55c31cb WF |
30 | BuildRequires: kf5-kauth-devel >= %{version} |
31 | BuildRequires: kf5-kbookmarks-devel >= %{version} | |
32 | BuildRequires: kf5-kcodecs-devel >= %{version} | |
33 | BuildRequires: kf5-kcompletion-devel >= %{version} | |
34 | BuildRequires: kf5-kconfig-devel >= %{version} | |
35 | BuildRequires: kf5-kconfigwidgets-devel >= %{version} | |
36 | BuildRequires: kf5-kcoreaddons-devel >= %{version} | |
37 | BuildRequires: kf5-kdbusaddons-devel >= %{version} | |
38 | BuildRequires: kf5-kglobalaccel-devel >= %{version} | |
39 | BuildRequires: kf5-kguiaddons-devel >= %{version} | |
40 | BuildRequires: kf5-ki18n-devel >= %{version} | |
41 | BuildRequires: kf5-kiconthemes-devel >= %{version} | |
42 | BuildRequires: kf5-kio-devel >= %{version} | |
43 | BuildRequires: kf5-kitemviews-devel >= %{version} | |
44 | BuildRequires: kf5-kjobwidgets-devel >= %{version} | |
b55c31cb WF |
45 | BuildRequires: kf5-kservice-devel >= %{version} |
46 | BuildRequires: kf5-ktextwidgets-devel >= %{version} | |
b55c31cb WF |
47 | BuildRequires: kf5-kwidgetsaddons-devel >= %{version} |
48 | BuildRequires: kf5-kwindowsystem-devel >= %{version} | |
49 | BuildRequires: kf5-kxmlgui-devel >= %{version} | |
bdfc2e7b | 50 | BuildRequires: kf5-plasma-framework-devel >= %{version} |
b55c31cb WF |
51 | BuildRequires: kf5-solid-devel >= %{version} |
52 | BuildRequires: kf5-sonnet-devel >= %{version} | |
bdfc2e7b | 53 | BuildRequires: kf5-threadweaver-devel >= %{version} |
40966a30 | 54 | BuildRequires: ninja |
b55c31cb WF |
55 | BuildRequires: rpmbuild(macros) >= 1.164 |
56 | BuildRequires: tar >= 1:1.22 | |
57 | BuildRequires: xz | |
cbaea737 | 58 | Requires: kf5-dirs |
b55c31cb WF |
59 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
60 | ||
61 | %define qt5dir %{_libdir}/qt5 | |
62 | ||
63 | %description | |
64 | The Plasma workspace provides an application called KRunner which, | |
65 | among other things, allows one to type into a text area which causes | |
66 | various actions and information that match the text appear as the text | |
67 | is being typed. | |
68 | ||
69 | One application for this is the universal runner you can launch with | |
70 | ALT-F2. | |
71 | ||
72 | This functionality is provided via plugins loaded at runtime called | |
73 | "Runners". These plugins can be used by any application using the | |
74 | Plasma library. The KRunner framework is used to write these plugins. | |
75 | ||
76 | %package devel | |
13c938b2 AM |
77 | Summary: Header files for %{kfname} development |
78 | Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kfname} | |
b55c31cb WF |
79 | Group: X11/Development/Libraries |
80 | Requires: %{name} = %{version}-%{release} | |
81 | ||
82 | %description devel | |
13c938b2 | 83 | Header files for %{kfname} development. |
b55c31cb WF |
84 | |
85 | %description devel -l pl.UTF-8 | |
13c938b2 | 86 | Pliki nagłówkowe dla programistów używających %{kfname}. |
b55c31cb WF |
87 | |
88 | %prep | |
13c938b2 | 89 | %setup -q -n %{kfname}-%{version} |
b55c31cb WF |
90 | |
91 | %build | |
92 | install -d build | |
93 | cd build | |
40966a30 | 94 | %cmake -G Ninja \ |
0b88c433 | 95 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
13c938b2 | 96 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
b55c31cb | 97 | ../ |
40966a30 | 98 | %ninja_build |
b55c31cb | 99 | |
0b88c433 WF |
100 | %if %{with tests} |
101 | ctest | |
102 | %endif | |
103 | ||
104 | ||
b55c31cb WF |
105 | %install |
106 | rm -rf $RPM_BUILD_ROOT | |
40966a30 | 107 | %ninja_install -C build |
b55c31cb WF |
108 | |
109 | %clean | |
110 | rm -rf $RPM_BUILD_ROOT | |
111 | ||
112 | %post -p /sbin/ldconfig | |
113 | %postun -p /sbin/ldconfig | |
114 | ||
115 | %files | |
116 | %defattr(644,root,root,755) | |
117 | %doc README.md | |
ea06062c | 118 | %{_datadir}/qlogging-categories5/krunner.categories |
02f44da3 | 119 | %ghost %{_libdir}/libKF5Runner.so.5 |
67ecfba8 | 120 | %attr(755,root,root) %{_libdir}/libKF5Runner.so.*.* |
b55c31cb WF |
121 | %attr(755,root,root) %{_libdir}/qt5/qml/org/kde/runnermodel/librunnermodelplugin.so |
122 | %{_libdir}/qt5/qml/org/kde/runnermodel/qmldir | |
123 | %{_datadir}/kservicetypes5/plasma-runner.desktop | |
bdfc2e7b | 124 | %{_datadir}/dbus-1/interfaces/kf5_org.kde.krunner1.xml |
9433360e | 125 | %{_datadir}/qlogging-categories5/krunner.renamecategories |
e97933a3 WF |
126 | %{_datadir}/kdevappwizard/templates/runner.tar.bz2 |
127 | %{_datadir}/kdevappwizard/templates/runnerpython.tar.bz2 | |
b55c31cb WF |
128 | |
129 | %files devel | |
130 | %defattr(644,root,root,755) | |
131 | %{_includedir}/KF5/KRunner | |
b55c31cb | 132 | %{_libdir}/cmake/KF5Runner |
02f44da3 | 133 | %{_libdir}/libKF5Runner.so |
b55c31cb | 134 | %{qt5dir}/mkspecs/modules/qt_KRunner.pri |