1 %define kdeplasmaver 5.23.5
3 %define kpname kde-gtk-config
4 Summary: GTK2 and GTK3 Configurator for KDE
8 License: GPL v2+/LGPL v2.1+
10 Source0: http://download.kde.org/stable/plasma/%{kdeplasmaver}/%{kpname}-%{version}.tar.xz
11 # Source0-md5: d3b3ffb635de7bcc01fec5b54741062c
13 %define specflags -I/usr/include/harfbuzz
14 URL: http://www.kde.org/
15 BuildRequires: Qt5Core-devel >= %{qtver}
16 BuildRequires: cmake >= 2.8.12
17 BuildRequires: gtk+2-devel
18 BuildRequires: gtk+3-devel
19 BuildRequires: kf5-extra-cmake-modules >= 1.4.0
20 BuildRequires: kf5-karchive-devel
21 BuildRequires: kf5-kauth-devel
22 BuildRequires: kf5-kbookmarks-devel
23 BuildRequires: kf5-kcmutils-devel
24 BuildRequires: kf5-kcmutils-devel
25 BuildRequires: kf5-kconfigwidgets-devel
26 BuildRequires: kf5-kconfigwidgets-devel
27 BuildRequires: kf5-ki18n-devel
28 BuildRequires: kf5-kiconthemes-devel
29 BuildRequires: kf5-kio-devel
30 BuildRequires: kf5-kio-devel
31 BuildRequires: kf5-knewstuff-devel
32 BuildRequires: kf5-knewstuff-devel
33 BuildRequires: kf5-kxmlgui-devel
34 BuildRequires: kp5-kdecoration-devel >= 5.23.0
36 BuildRequires: qt5-build >= %{qtver}
37 BuildRequires: rpmbuild(macros) >= 1.164
38 BuildRequires: tar >= 1:1.22
40 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
43 GTK2 and GTK3 Configurator for KDE.
46 %setup -q -n %{kpname}-%{version}
53 -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
54 -DHTML_INSTALL_DIR=%{_kdedocdir} \
59 rm -rf $RPM_BUILD_ROOT
60 %ninja_install -C build
62 sed -i -e 's|/usr/bin/env sh|/bin/bash|' $RPM_BUILD_ROOT/usr/share/kconf_update/remove_window_decorations_from_gtk_css.sh
65 rm -rf $RPM_BUILD_ROOT
67 %post -p /sbin/ldconfig
68 %postun -p /sbin/ldconfig
71 %defattr(644,root,root,755)
72 %attr(755,root,root) %{_prefix}/libexec/gtk3_preview
73 %attr(755,root,root) %{_libdir}/qt5/plugins/kf5/kded/gtkconfig.so
74 %attr(755,root,root) %{_libdir}/kconf_update_bin/gtk_theme
75 %{_datadir}/kconf_update/gtkconfig.upd
76 %attr(755,root,root) %{_libdir}/gtk-3.0/modules/libcolorreload-gtk-module.so
77 %attr(755,root,root) %{_libdir}/gtk-3.0/modules/libwindow-decorations-gtk-module.so
78 %attr(755,root,root) %{_datadir}/kconf_update/remove_window_decorations_from_gtk_css.sh
79 %{_datadir}/themes/Breeze/window_decorations.css
80 %dir %{_datadir}/kcm-gtk-module
81 %{_datadir}/kcm-gtk-module/preview.ui