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