]>
Commit | Line | Data |
---|---|---|
62587856 WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
02ce9d6e | 4 | %define kdeframever 5.97 |
81559c7b | 5 | %define qtver 5.15.2 |
5ab38a48 WF |
6 | %define kfname kwayland |
7 | ||
8 | Summary: Framework for managing menu and toolbar actions | |
9 | Name: kf5-%{kfname} | |
02ce9d6e | 10 | Version: 5.97.0 |
2c4bdc76 | 11 | Release: 2 |
5ab38a48 WF |
12 | License: LGPL v2.1+ |
13 | Group: X11/Libraries | |
60f7f77d | 14 | Source0: https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz |
02ce9d6e | 15 | # Source0-md5: c0943e04bb7f514c58bcb9b891efb080 |
5ab38a48 | 16 | URL: http://www.kde.org/ |
d5546d35 JP |
17 | BuildRequires: EGL-devel |
18 | BuildRequires: Qt5Concurrent-devel >= %{qtver} | |
5ab38a48 | 19 | BuildRequires: Qt5Core-devel >= %{qtver} |
5ab38a48 | 20 | BuildRequires: Qt5Gui-devel >= %{qtver} |
5ab38a48 | 21 | BuildRequires: Qt5Test-devel >= %{qtver} |
97a1b4f3 | 22 | BuildRequires: Qt5WaylandClient-devel >= %{qtver} |
5ab38a48 | 23 | BuildRequires: Qt5Widgets-devel >= %{qtver} |
d5546d35 | 24 | BuildRequires: cmake >= 3.16 |
5ab38a48 | 25 | BuildRequires: gettext-devel |
8cceedc4 | 26 | BuildRequires: kf5-extra-cmake-modules >= %{version} |
3931fa72 | 27 | BuildRequires: kf5-plasma-wayland-protocols-devel >= 1.4.0 |
e81beb87 | 28 | BuildRequires: ninja |
d5546d35 JP |
29 | BuildRequires: pkgconfig |
30 | BuildRequires: rpmbuild(macros) >= 1.736 | |
5ab38a48 | 31 | BuildRequires: tar >= 1:1.22 |
d5546d35 JP |
32 | BuildRequires: wayland-devel >= 1.15 |
33 | BuildRequires: wayland-protocols >= 1.15 | |
5ab38a48 | 34 | BuildRequires: xz |
d5546d35 JP |
35 | Requires: Qt5Core >= %{qtver} |
36 | Requires: Qt5Gui >= %{qtver} | |
5ab38a48 | 37 | Requires: kf5-dirs |
d5546d35 | 38 | Requires: wayland >= 1.15 |
5ab38a48 WF |
39 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
40 | ||
5ab38a48 WF |
41 | %description |
42 | kwayland | |
43 | ||
44 | %package devel | |
45 | Summary: Header files for %{kfname} development | |
46 | Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kfname} | |
47 | Group: X11/Development/Libraries | |
48 | Requires: %{name} = %{version}-%{release} | |
d5546d35 | 49 | Requires: Qt5Gui-devel >= %{qtver} |
5ab38a48 WF |
50 | |
51 | %description devel | |
52 | Header files for %{kfname} development. | |
53 | ||
54 | %description devel -l pl.UTF-8 | |
55 | Pliki nagłówkowe dla programistów używających %{kfname}. | |
56 | ||
57 | %prep | |
58 | %setup -q -n %{kfname}-%{version} | |
59 | ||
60 | %build | |
61 | install -d build | |
62 | cd build | |
e81beb87 | 63 | %cmake -G Ninja \ |
62587856 | 64 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
5ab38a48 WF |
65 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
66 | ../ | |
e81beb87 | 67 | %ninja_build |
5ab38a48 | 68 | |
62587856 WF |
69 | %if %{with tests} |
70 | ctest | |
71 | %endif | |
72 | ||
73 | ||
5ab38a48 WF |
74 | %install |
75 | rm -rf $RPM_BUILD_ROOT | |
e81beb87 | 76 | %ninja_install -C build |
5ab38a48 WF |
77 | |
78 | %clean | |
79 | rm -rf $RPM_BUILD_ROOT | |
80 | ||
81 | %post -p /sbin/ldconfig | |
82 | %postun -p /sbin/ldconfig | |
83 | ||
84 | %files | |
85 | %defattr(644,root,root,755) | |
86 | %doc README.md | |
97a1b4f3 | 87 | %{_datadir}/qlogging-categories5/kwayland.categories |
7ba2557f | 88 | %ghost %{_libdir}/libKF5WaylandClient.so.5 |
5ab38a48 | 89 | %attr(755,root,root) %{_libdir}/libKF5WaylandClient.so.5.*.* |
7ba2557f | 90 | %ghost %{_libdir}/libKF5WaylandServer.so.5 |
5ab38a48 | 91 | %attr(755,root,root) %{_libdir}/libKF5WaylandServer.so.5.*.* |
325e46cb | 92 | %attr(755,root,root) %{_prefix}/libexec/org-kde-kf5-kwayland-testserver |
97a1b4f3 | 93 | %{_datadir}/qlogging-categories5/kwayland.renamecategories |
5ab38a48 WF |
94 | |
95 | %files devel | |
96 | %defattr(644,root,root,755) | |
97 | %{_includedir}/KF5/KWayland | |
5ab38a48 WF |
98 | %{_libdir}/cmake/KF5Wayland |
99 | %{_libdir}/qt5/mkspecs/modules/qt_KWaylandClient.pri | |
100 | %{_libdir}/qt5/mkspecs/modules/qt_KWaylandServer.pri | |
7ba2557f WF |
101 | %{_libdir}/libKF5WaylandClient.so |
102 | %{_libdir}/libKF5WaylandServer.so | |
95e60195 | 103 | %{_pkgconfigdir}/KF5WaylandClient.pc |