]>
Commit | Line | Data |
---|---|---|
1894e6ab WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
5ea76f10 | 4 | %define kdeframever 5.98 |
a7a7c061 | 5 | %define qtver 5.15.2 |
db8cf9df | 6 | %define kfname kguiaddons |
59b7a5f5 WF |
7 | |
8 | Summary: Utilities for graphical user interfaces | |
db8cf9df | 9 | Name: kf5-%{kfname} |
5ea76f10 WF |
10 | Version: 5.98.0 |
11 | Release: 1 | |
59b7a5f5 WF |
12 | License: LGPL v2.1+ |
13 | Group: X11/Libraries | |
d8e78e96 | 14 | Source0: https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz |
5ea76f10 | 15 | # Source0-md5: f6d58f99f68791cb7a3ec3f386707ba4 |
59b7a5f5 | 16 | URL: http://www.kde.org/ |
a7a7c061 | 17 | BuildRequires: Qt5Core-devel >= %{qtver} |
db8cf9df AM |
18 | BuildRequires: Qt5Gui-devel >= %{qtver} |
19 | BuildRequires: Qt5Test-devel >= %{qtver} | |
c3c53a09 JP |
20 | BuildRequires: Qt5WaylandClient >= %{qtver} |
21 | BuildRequires: Qt5WaylandClient-devel >= %{qtver} | |
db8cf9df | 22 | BuildRequires: Qt5X11Extras-devel >= %{qtver} |
a7a7c061 | 23 | BuildRequires: cmake >= 3.16 |
45547479 | 24 | BuildRequires: kf5-extra-cmake-modules >= %{version} |
27ee5766 | 25 | BuildRequires: kf5-plasma-wayland-protocols-devel >= 1.7.0 |
c3c53a09 | 26 | BuildRequires: libxcb-devel |
db48b781 | 27 | BuildRequires: ninja |
59b7a5f5 | 28 | BuildRequires: pkgconfig |
db8cf9df | 29 | BuildRequires: qt5-linguist >= %{qtver} |
bfae3def | 30 | BuildRequires: rpmbuild(macros) >= 1.736 |
13edb4cb | 31 | BuildRequires: tar >= 1:1.22 |
c3c53a09 JP |
32 | BuildRequires: wayland-devel >= 1.9 |
33 | BuildRequires: xorg-lib-libX11-devel | |
34 | BuildRequires: xorg-proto-kbproto-devel | |
13edb4cb | 35 | BuildRequires: xz |
c3c53a09 JP |
36 | Requires: Qt5Gui >= %{qtver} |
37 | Requires: Qt5WaylandClient >= %{qtver} | |
38 | Requires: Qt5X11Extras >= %{qtver} | |
1130b8a9 | 39 | Requires: kf5-dirs |
c3c53a09 | 40 | Requires: wayland >= 1.9 |
59b7a5f5 WF |
41 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
42 | ||
43 | %define qt5dir %{_libdir}/qt5 | |
44 | ||
45 | %description | |
46 | The KDE GUI addons provide utilities for graphical user interfaces in | |
47 | the areas of colors, fonts, text, images, keyboard input. | |
48 | ||
49 | %package devel | |
db8cf9df AM |
50 | Summary: Header files for %{kfname} development |
51 | Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kfname} | |
59b7a5f5 WF |
52 | Group: X11/Development/Libraries |
53 | Requires: %{name} = %{version}-%{release} | |
c3c53a09 | 54 | Requires: Qt5Gui-devel >= %{qtver} |
a7a7c061 | 55 | Requires: cmake >= 3.16 |
59b7a5f5 WF |
56 | |
57 | %description devel | |
db8cf9df | 58 | Header files for %{kfname} development. |
59b7a5f5 WF |
59 | |
60 | %description devel -l pl.UTF-8 | |
db8cf9df | 61 | Pliki nagłówkowe dla programistów używających %{kfname}. |
59b7a5f5 WF |
62 | |
63 | %prep | |
db8cf9df | 64 | %setup -q -n %{kfname}-%{version} |
59b7a5f5 WF |
65 | |
66 | %build | |
67 | install -d build | |
68 | cd build | |
db48b781 | 69 | %cmake -G Ninja \ |
1894e6ab | 70 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
db8cf9df | 71 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
59b7a5f5 | 72 | ../ |
db48b781 | 73 | %ninja_build |
59b7a5f5 | 74 | |
1894e6ab WF |
75 | %if %{with tests} |
76 | ctest | |
77 | %endif | |
78 | ||
79 | ||
59b7a5f5 WF |
80 | %install |
81 | rm -rf $RPM_BUILD_ROOT | |
db48b781 | 82 | %ninja_install -C build |
59b7a5f5 WF |
83 | |
84 | %clean | |
85 | rm -rf $RPM_BUILD_ROOT | |
86 | ||
87 | %post -p /sbin/ldconfig | |
88 | %postun -p /sbin/ldconfig | |
89 | ||
90 | %files | |
91 | %defattr(644,root,root,755) | |
92 | %doc README.md | |
7916d07d | 93 | %ghost %{_libdir}/libKF5GuiAddons.so.5 |
cbe8741c | 94 | %attr(755,root,root) %{_libdir}/libKF5GuiAddons.so.*.* |
827740c8 | 95 | %{_datadir}/qlogging-categories5/kguiaddons.categories |
6e5489a1 WF |
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 | |
59b7a5f5 WF |
101 | |
102 | %files devel | |
103 | %defattr(644,root,root,755) | |
104 | %{_includedir}/KF5/KGuiAddons | |
59b7a5f5 | 105 | %{_libdir}/cmake/KF5GuiAddons |
7916d07d | 106 | %{_libdir}/libKF5GuiAddons.so |
59b7a5f5 | 107 | %{qt5dir}/mkspecs/modules/qt_KGuiAddons.pri |