File kvantum.spec of Package kvantum

#
# spec file for package kvantum
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           kvantum
Version:        0.10.3
Release:        0
Summary:        A Linux SVG-based theme engine for Qt4/Qt5 and KDE
License:        GPL-3.0
Group:          System/GUI/KDE
Url:            https://github.com/tsujan/Kvantum
Source:         %{name}-%{version}.tar.xz
BuildRequires:  cmake
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  hicolor-icon-theme
BuildRequires:  kf5-filesystem
BuildRequires:  libQt5PlatformHeaders-devel
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5Gui)
BuildRequires:  pkgconfig(Qt5Svg)
BuildRequires:  pkgconfig(Qt5Widgets)
BuildRequires:  pkgconfig(Qt5X11Extras)
BuildRequires:  pkgconfig(x11)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Kvantum is an SVG-based theme engine for Qt4/Qt5, KDE and LXQT, with an
emphasis on elegance, usability and practicality.

%package openbox-themes
Summary:        Openbox themes for Kvantum style
Group:          System/GUI/Other
BuildArch:      noarch

%description openbox-themes
Kvantum is an SVG-based theme engine for Qt4/Qt5, KDE and LXQT, with an
emphasis on elegance, usability and practicality.

This package provides some Openbox themes for Kvantum style.

%prep
%setup -q
sed -i 's/\(LXQt\)/X-\1/' %{name}manager/data/%{name}manager.desktop

%build
%qmake5
%make_jobs

%install
%qmake5_install
rm -rf %{buildroot}%{_datadir}/kde4
%fdupes %{buildroot}%{_datadir}/themes

%post
%icon_theme_cache_post

%postun
%icon_theme_cache_postun

%files
%defattr(-,root,root)
%doc ChangeLog COPYING NEWS README
%{_bindir}/%{name}*
%dir %{_kf5_plugindir}/styles
%{_kf5_plugindir}/styles/lib%{name}.so
%{_datadir}/Kvantum
%{_datadir}/applications/%{name}manager.desktop
%dir %{_datadir}/color-schemes
%{_datadir}/color-schemes/Kv*
%{_datadir}/icons/hicolor/*/apps/%{name}.??g

%files openbox-themes
%defattr(-,root,root)
%{_datadir}/themes/Kv*

%changelog