]>
Commit | Line | Data |
---|---|---|
d44641d0 WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
7a4c5bc1 | 4 | %define kdeframever 5.98 |
5a98a766 | 5 | %define qtver 5.15.2 |
026eba87 | 6 | %define kfname kwindowsystem |
0d1101c1 WF |
7 | |
8 | Summary: Access to the windowing system | |
026eba87 | 9 | Name: kf5-%{kfname} |
7a4c5bc1 WF |
10 | Version: 5.98.0 |
11 | Release: 1 | |
0d1101c1 WF |
12 | License: LGPL v2.1+ |
13 | Group: X11/Libraries | |
c1d523b1 | 14 | Source0: https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz |
7a4c5bc1 | 15 | # Source0-md5: 4861618ecc73a63aef9f7c3e3e320251 |
0d1101c1 | 16 | URL: http://www.kde.org/ |
5a98a766 | 17 | BuildRequires: Qt5Core-devel >= %{qtver} |
026eba87 AM |
18 | BuildRequires: Qt5Gui-devel >= %{qtver} |
19 | BuildRequires: Qt5Test-devel >= %{qtver} | |
20 | BuildRequires: Qt5Widgets-devel >= %{qtver} | |
21 | BuildRequires: Qt5X11Extras-devel >= %{qtver} | |
5a98a766 | 22 | BuildRequires: cmake >= 3.16 |
eafe27cb | 23 | BuildRequires: kf5-extra-cmake-modules >= %{version} |
ff9f6591 | 24 | BuildRequires: libxcb-devel |
ef77b2ea | 25 | BuildRequires: ninja |
0d1101c1 | 26 | BuildRequires: pkgconfig |
026eba87 | 27 | BuildRequires: qt5-linguist >= %{qtver} |
3dae240a | 28 | BuildRequires: rpmbuild(macros) >= 1.736 |
2ab755f0 | 29 | BuildRequires: tar >= 1:1.22 |
ff9f6591 | 30 | BuildRequires: xcb-util-keysyms-devel |
cec85429 JP |
31 | BuildRequires: xcb-util-wm-devel |
32 | BuildRequires: xorg-lib-libX11-devel | |
33 | BuildRequires: xorg-lib-libXfixes-devel | |
2ab755f0 | 34 | BuildRequires: xz |
cec85429 JP |
35 | Requires: Qt5Gui >= %{qtver} |
36 | Requires: Qt5Widgets >= %{qtver} | |
37 | Requires: Qt5X11Extras >= %{qtver} | |
2779bcca | 38 | Requires: kf5-dirs |
0d1101c1 WF |
39 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
40 | ||
41 | %define qt5dir %{_libdir}/qt5 | |
42 | ||
43 | %description | |
44 | Convenience access to certain properties and features of the windowing | |
45 | system. | |
46 | ||
47 | KWindowSystem provides information about the windowing system and | |
48 | allows interaction with the windowing system. It provides an high | |
49 | level API which is windowing system independent and has platform | |
50 | specific implementations. This API is inspired by X11 and thus not all | |
51 | functionality is available on all windowing systems. | |
52 | ||
53 | In addition to the high level API, this framework also provides | |
54 | several more low level classes for interaction with the X Windowing | |
55 | System. | |
56 | ||
57 | %package devel | |
026eba87 AM |
58 | Summary: Header files for %{kfname} development |
59 | Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kfname} | |
0d1101c1 WF |
60 | Group: X11/Development/Libraries |
61 | Requires: %{name} = %{version}-%{release} | |
cec85429 | 62 | Requires: Qt5Widgets-devel >= %{qtver} |
0d1101c1 WF |
63 | |
64 | %description devel | |
026eba87 | 65 | Header files for %{kfname} development. |
0d1101c1 WF |
66 | |
67 | %description devel -l pl.UTF-8 | |
026eba87 | 68 | Pliki nagłówkowe dla programistów używających %{kfname}. |
0d1101c1 WF |
69 | |
70 | %prep | |
026eba87 | 71 | %setup -q -n %{kfname}-%{version} |
0d1101c1 WF |
72 | |
73 | %build | |
74 | install -d build | |
75 | cd build | |
ef77b2ea | 76 | %cmake -G Ninja \ |
d44641d0 | 77 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
026eba87 | 78 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
0d1101c1 | 79 | ../ |
ef77b2ea | 80 | %ninja_build |
0d1101c1 | 81 | |
d44641d0 WF |
82 | %if %{with tests} |
83 | ctest | |
84 | %endif | |
85 | ||
86 | ||
0d1101c1 WF |
87 | %install |
88 | rm -rf $RPM_BUILD_ROOT | |
ef77b2ea | 89 | %ninja_install -C build |
0d1101c1 | 90 | |
55b9cca2 | 91 | %find_lang %{kfname}5_qt --with-qm --all-name --with-kde |
0d1101c1 WF |
92 | |
93 | %clean | |
94 | rm -rf $RPM_BUILD_ROOT | |
95 | ||
96 | %post -p /sbin/ldconfig | |
97 | %postun -p /sbin/ldconfig | |
98 | ||
026eba87 | 99 | %files -f %{kfname}5_qt.lang |
0d1101c1 WF |
100 | %defattr(644,root,root,755) |
101 | %doc README.md | |
76c8e1eb | 102 | %ghost %{_libdir}/libKF5WindowSystem.so.5 |
f548483f | 103 | %attr(755,root,root) %{_libdir}/libKF5WindowSystem.so.*.* |
5fa71611 | 104 | %dir %{_libdir}/qt5/plugins/kf5/kwindowsystem |
5fa71611 WF |
105 | %attr(755,root,root) %{_libdir}/qt5/plugins/kf5/kwindowsystem/KF5WindowSystemX11Plugin.so |
106 | %{_datadir}/qlogging-categories5/kwindowsystem.renamecategories | |
1ba6a140 | 107 | %{_datadir}/qlogging-categories5/kwindowsystem.categories |
0d1101c1 WF |
108 | |
109 | %files devel | |
110 | %defattr(644,root,root,755) | |
111 | %{_includedir}/KF5/KWindowSystem | |
0d1101c1 WF |
112 | %{_libdir}/cmake/KF5WindowSystem |
113 | %{_libdir}/libKF5WindowSystem.so | |
114 | %{qt5dir}/mkspecs/modules/qt_KWindowSystem.pri |