3 %bcond_with tests # build with tests
4 %define kdeframever 5.97
6 %define kfname kguiaddons
8 Summary: Utilities for graphical user interfaces
14 Source0: https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz
15 # Source0-md5: 2211961bfca22edd9b7bb4c28d3d3c94
16 URL: http://www.kde.org/
17 BuildRequires: Qt5Core-devel >= %{qtver}
18 BuildRequires: Qt5Gui-devel >= %{qtver}
19 BuildRequires: Qt5Test-devel >= %{qtver}
20 BuildRequires: Qt5WaylandClient >= %{qtver}
21 BuildRequires: Qt5WaylandClient-devel >= %{qtver}
22 BuildRequires: Qt5X11Extras-devel >= %{qtver}
23 BuildRequires: cmake >= 3.16
24 BuildRequires: kf5-extra-cmake-modules >= %{version}
25 BuildRequires: kf5-plasma-wayland-protocols-devel >= 1.7.0
26 BuildRequires: libxcb-devel
28 BuildRequires: pkgconfig
29 BuildRequires: qt5-linguist >= %{qtver}
30 BuildRequires: rpmbuild(macros) >= 1.736
31 BuildRequires: tar >= 1:1.22
32 BuildRequires: wayland-devel >= 1.9
33 BuildRequires: xorg-lib-libX11-devel
34 BuildRequires: xorg-proto-kbproto-devel
36 Requires: Qt5Gui >= %{qtver}
37 Requires: Qt5WaylandClient >= %{qtver}
38 Requires: Qt5X11Extras >= %{qtver}
40 Requires: wayland >= 1.9
41 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
43 %define qt5dir %{_libdir}/qt5
46 The KDE GUI addons provide utilities for graphical user interfaces in
47 the areas of colors, fonts, text, images, keyboard input.
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}
54 Requires: Qt5Gui-devel >= %{qtver}
55 Requires: cmake >= 3.16
58 Header files for %{kfname} development.
60 %description devel -l pl.UTF-8
61 Pliki nagłówkowe dla programistów używających %{kfname}.
64 %setup -q -n %{kfname}-%{version}
70 %{!?with_tests:-DBUILD_TESTING=OFF} \
71 -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
81 rm -rf $RPM_BUILD_ROOT
82 %ninja_install -C build
85 rm -rf $RPM_BUILD_ROOT
87 %post -p /sbin/ldconfig
88 %postun -p /sbin/ldconfig
91 %defattr(644,root,root,755)
93 %ghost %{_libdir}/libKF5GuiAddons.so.5
94 %attr(755,root,root) %{_libdir}/libKF5GuiAddons.so.*.*
95 %{_datadir}/qlogging-categories5/kguiaddons.categories
96 %attr(755,root,root) %{_bindir}/kde-geo-uri-handler
97 %{_desktopdir}/google-maps-geo-handler.desktop
98 %{_desktopdir}/openstreetmap-geo-handler.desktop
99 %{_desktopdir}/qwant-maps-geo-handler.desktop
100 %{_desktopdir}/wheelmap-geo-handler.desktop
103 %defattr(644,root,root,755)
104 %{_includedir}/KF5/KGuiAddons
105 %{_libdir}/cmake/KF5GuiAddons
106 %{_libdir}/libKF5GuiAddons.so
107 %{qt5dir}/mkspecs/modules/qt_KGuiAddons.pri