]>
Commit | Line | Data |
---|---|---|
67b31f1b WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
f551fd38 | 4 | %define kdeplasmaver 5.27.10 |
5f678f16 | 5 | %define qtver 5.15.2 |
fcfbcf4c AM |
6 | %define kpname kde-gtk-config |
7 | Summary: GTK2 and GTK3 Configurator for KDE | |
8 | Name: kp5-%{kpname} | |
f551fd38 | 9 | Version: 5.27.10 |
60b42f27 | 10 | Release: 1 |
fcfbcf4c AM |
11 | License: GPL v2+/LGPL v2.1+ |
12 | Group: X11/Libraries | |
07b216ad | 13 | Source0: https://download.kde.org/stable/plasma/%{kdeplasmaver}/%{kpname}-%{version}.tar.xz |
f551fd38 | 14 | # Source0-md5: 490bd81c915f332b65631b87b6eaa49d |
ed9ad830 | 15 | Patch0: x32.patch |
40293ee5 | 16 | %define specflags -I/usr/include/harfbuzz |
fcfbcf4c AM |
17 | URL: http://www.kde.org/ |
18 | BuildRequires: Qt5Core-devel >= %{qtver} | |
d555dcc6 | 19 | BuildRequires: cmake >= 3.16.0 |
8bdb3d64 WF |
20 | BuildRequires: gsettings-desktop-schemas |
21 | BuildRequires: gsettings-desktop-schemas-devel | |
dcb01a42 WF |
22 | BuildRequires: gtk+2-devel |
23 | BuildRequires: gtk+3-devel | |
fcfbcf4c AM |
24 | BuildRequires: kf5-extra-cmake-modules >= 1.4.0 |
25 | BuildRequires: kf5-karchive-devel | |
41cb347c JR |
26 | BuildRequires: kf5-kauth-devel |
27 | BuildRequires: kf5-kbookmarks-devel | |
fcfbcf4c | 28 | BuildRequires: kf5-kcmutils-devel |
41cb347c JR |
29 | BuildRequires: kf5-kcmutils-devel |
30 | BuildRequires: kf5-kconfigwidgets-devel | |
fcfbcf4c AM |
31 | BuildRequires: kf5-kconfigwidgets-devel |
32 | BuildRequires: kf5-ki18n-devel | |
33 | BuildRequires: kf5-kiconthemes-devel | |
34 | BuildRequires: kf5-kio-devel | |
41cb347c JR |
35 | BuildRequires: kf5-kio-devel |
36 | BuildRequires: kf5-knewstuff-devel | |
fcfbcf4c | 37 | BuildRequires: kf5-knewstuff-devel |
41cb347c | 38 | BuildRequires: kf5-kxmlgui-devel |
a42aa6da | 39 | BuildRequires: kp5-kdecoration-devel >= 5.23.0 |
99d694b6 | 40 | BuildRequires: ninja |
fcfbcf4c AM |
41 | BuildRequires: qt5-build >= %{qtver} |
42 | BuildRequires: rpmbuild(macros) >= 1.164 | |
43 | BuildRequires: tar >= 1:1.22 | |
44 | BuildRequires: xz | |
45 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
46 | ||
47 | %description | |
48 | GTK2 and GTK3 Configurator for KDE. | |
49 | ||
50 | %prep | |
51 | %setup -q -n %{kpname}-%{version} | |
40293ee5 | 52 | #%%patch0 -p1 |
fcfbcf4c AM |
53 | |
54 | %build | |
d555dcc6 WF |
55 | %cmake -B build \ |
56 | -G Ninja \ | |
67b31f1b | 57 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
fcfbcf4c | 58 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
d555dcc6 WF |
59 | -DHTML_INSTALL_DIR=%{_kdedocdir} |
60 | %ninja_build -C build | |
fcfbcf4c | 61 | |
67b31f1b WF |
62 | %if %{with tests} |
63 | ctest | |
64 | %endif | |
65 | ||
fcfbcf4c AM |
66 | %install |
67 | rm -rf $RPM_BUILD_ROOT | |
99d694b6 | 68 | %ninja_install -C build |
fcfbcf4c | 69 | |
40293ee5 | 70 | sed -i -e 's|/usr/bin/env sh|/bin/bash|' $RPM_BUILD_ROOT/usr/share/kconf_update/remove_window_decorations_from_gtk_css.sh |
fcfbcf4c AM |
71 | |
72 | %clean | |
73 | rm -rf $RPM_BUILD_ROOT | |
74 | ||
75 | %post -p /sbin/ldconfig | |
76 | %postun -p /sbin/ldconfig | |
77 | ||
40293ee5 | 78 | %files |
fcfbcf4c | 79 | %defattr(644,root,root,755) |
40293ee5 WF |
80 | %attr(755,root,root) %{_prefix}/libexec/gtk3_preview |
81 | %attr(755,root,root) %{_libdir}/qt5/plugins/kf5/kded/gtkconfig.so | |
82 | %attr(755,root,root) %{_libdir}/kconf_update_bin/gtk_theme | |
83 | %{_datadir}/kconf_update/gtkconfig.upd | |
84 | %attr(755,root,root) %{_libdir}/gtk-3.0/modules/libcolorreload-gtk-module.so | |
85 | %attr(755,root,root) %{_libdir}/gtk-3.0/modules/libwindow-decorations-gtk-module.so | |
86 | %attr(755,root,root) %{_datadir}/kconf_update/remove_window_decorations_from_gtk_css.sh | |
87 | %{_datadir}/themes/Breeze/window_decorations.css | |
d21686e8 | 88 | %dir %{_datadir}/kcm-gtk-module |
005f18bd | 89 | %{_datadir}/kcm-gtk-module/preview.ui |
e3565445 | 90 | %attr(755,root,root) %{_libdir}/kconf_update_bin/remove_deprecated_gtk4_option |