]>
Commit | Line | Data |
---|---|---|
b55c31cb WF |
1 | # TODO: |
2 | # Not packaged: | |
3 | # /usr/include/KF5 | |
4 | # /usr/share/kservicetypes5 | |
5 | ||
6 | %define _state stable | |
7 | %define orgname krunner | |
8 | ||
9 | Summary: Framework for Plasma runners | |
10 | Name: kf5-%{orgname} | |
11 | Version: 5.0.0 | |
12 | Release: 0.1 | |
13 | License: LGPL v2.1+ | |
14 | Group: X11/Libraries | |
15 | Source0: ftp://ftp.kde.org/pub/kde/%{_state}/frameworks/%{version}/portingAids/%{orgname}-%{version}.tar.xz | |
16 | # Source0-md5: 600949cb6d64ee03bf94911276554a6e | |
17 | URL: http://www.kde.org/ | |
18 | BuildRequires: Qt5Core-devel >= 5.2.0 | |
19 | BuildRequires: Qt5DBus-devel >= 5.2.0 | |
20 | BuildRequires: Qt5Gui-devel | |
21 | BuildRequires: Qt5Network-devel >= 5.3.1 | |
22 | BuildRequires: Qt5Qml-devel >= 5.3.1 | |
23 | BuildRequires: Qt5Quick-devel | |
24 | BuildRequires: Qt5Test-devel | |
25 | BuildRequires: Qt5Widgets-devel | |
26 | BuildRequires: Qt5Xml-devel >= 5.2.0 | |
27 | BuildRequires: cmake >= 2.8.12 | |
28 | BuildRequires: gettext-devel | |
29 | BuildRequires: kf5-attica-devel >= %{version} | |
30 | BuildRequires: kf5-extra-cmake-modules >= 0.0.9 | |
31 | BuildRequires: kf5-kauth-devel >= %{version} | |
32 | BuildRequires: kf5-kbookmarks-devel >= %{version} | |
33 | BuildRequires: kf5-kcodecs-devel >= %{version} | |
34 | BuildRequires: kf5-kcompletion-devel >= %{version} | |
35 | BuildRequires: kf5-kconfig-devel >= %{version} | |
36 | BuildRequires: kf5-kconfigwidgets-devel >= %{version} | |
37 | BuildRequires: kf5-kcoreaddons-devel >= %{version} | |
38 | BuildRequires: kf5-kdbusaddons-devel >= %{version} | |
39 | BuildRequires: kf5-kglobalaccel-devel >= %{version} | |
40 | BuildRequires: kf5-kguiaddons-devel >= %{version} | |
41 | BuildRequires: kf5-ki18n-devel >= %{version} | |
42 | BuildRequires: kf5-kiconthemes-devel >= %{version} | |
43 | BuildRequires: kf5-kio-devel >= %{version} | |
44 | BuildRequires: kf5-kitemviews-devel >= %{version} | |
45 | BuildRequires: kf5-kjobwidgets-devel >= %{version} | |
46 | BuildRequires: kf5-plasma-framework-devel >= %{version} | |
47 | BuildRequires: kf5-kservice-devel >= %{version} | |
48 | BuildRequires: kf5-ktextwidgets-devel >= %{version} | |
49 | BuildRequires: kf5-threadweaver-devel >= %{version} | |
50 | BuildRequires: kf5-kwidgetsaddons-devel >= %{version} | |
51 | BuildRequires: kf5-kwindowsystem-devel >= %{version} | |
52 | BuildRequires: kf5-kxmlgui-devel >= %{version} | |
53 | BuildRequires: kf5-solid-devel >= %{version} | |
54 | BuildRequires: kf5-sonnet-devel >= %{version} | |
55 | BuildRequires: rpmbuild(macros) >= 1.164 | |
56 | BuildRequires: tar >= 1:1.22 | |
57 | BuildRequires: xz | |
58 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
59 | ||
60 | %define qt5dir %{_libdir}/qt5 | |
61 | ||
62 | %description | |
63 | The Plasma workspace provides an application called KRunner which, | |
64 | among other things, allows one to type into a text area which causes | |
65 | various actions and information that match the text appear as the text | |
66 | is being typed. | |
67 | ||
68 | One application for this is the universal runner you can launch with | |
69 | ALT-F2. | |
70 | ||
71 | This functionality is provided via plugins loaded at runtime called | |
72 | "Runners". These plugins can be used by any application using the | |
73 | Plasma library. The KRunner framework is used to write these plugins. | |
74 | ||
75 | %package devel | |
76 | Summary: Header files for %{orgname} development | |
77 | Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{orgname} | |
78 | Group: X11/Development/Libraries | |
79 | Requires: %{name} = %{version}-%{release} | |
80 | ||
81 | %description devel | |
82 | Header files for %{orgname} development. | |
83 | ||
84 | %description devel -l pl.UTF-8 | |
85 | Pliki nagłówkowe dla programistów używających %{orgname}. | |
86 | ||
87 | %prep | |
88 | %setup -q -n %{orgname}-%{version} | |
89 | ||
90 | %build | |
91 | install -d build | |
92 | cd build | |
93 | %cmake \ | |
94 | -DBIN_INSTALL_DIR=%{_bindir} \ | |
95 | -DKCFG_INSTALL_DIR=%{_datadir}/config.kcfg \ | |
96 | -DPLUGIN_INSTALL_DIR=%{qt5dir}/plugins \ | |
97 | -DQT_PLUGIN_INSTALL_DIR=%{qt5dir}/plugins \ | |
98 | -DQML_INSTALL_DIR=%{qt5dir}/qml \ | |
99 | -DIMPORTS_INSTALL_DIR=%{qt5dirs}/imports \ | |
100 | -DSYSCONF_INSTALL_DIR=%{_sysconfdir} \ | |
101 | -DLIBEXEC_INSTALL_DIR=%{_libexecdir} \ | |
102 | -DKF5_LIBEXEC_INSTALL_DIR=%{_libexecdir} \ | |
103 | -DKF5_INCLUDE_INSTALL_DIR=%{_includedir} \ | |
104 | -DECM_MKSPECS_INSTALL_DIR=%{qt5dir}/mkspecs/modules \ | |
105 | -D_IMPORT_PREFIX=%{_prefix} \ | |
106 | ../ | |
107 | %{__make} | |
108 | ||
109 | %install | |
110 | rm -rf $RPM_BUILD_ROOT | |
111 | ||
112 | %{__make} -C build/ install \ | |
113 | DESTDIR=$RPM_BUILD_ROOT | |
114 | ||
115 | %clean | |
116 | rm -rf $RPM_BUILD_ROOT | |
117 | ||
118 | %post -p /sbin/ldconfig | |
119 | %postun -p /sbin/ldconfig | |
120 | ||
121 | %files | |
122 | %defattr(644,root,root,755) | |
123 | %doc README.md | |
124 | %attr(755,root,root) %ghost %{_libdir}/libKF5Runner.so.5 | |
125 | %attr(755,root,root) %{_libdir}/libKF5Runner.so.5.0.0 | |
126 | %attr(755,root,root) %{_libdir}/qt5/qml/org/kde/runnermodel/librunnermodelplugin.so | |
127 | %{_libdir}/qt5/qml/org/kde/runnermodel/qmldir | |
128 | %{_datadir}/kservicetypes5/plasma-runner.desktop | |
129 | ||
130 | %files devel | |
131 | %defattr(644,root,root,755) | |
132 | %{_includedir}/KF5/KRunner | |
133 | %{_includedir}/KF5/krunner_version.h | |
134 | %{_libdir}/cmake/KF5Runner | |
135 | %attr(755,root,root) %{_libdir}/libKF5Runner.so | |
136 | %{qt5dir}/mkspecs/modules/qt_KRunner.pri |