File koi.spec of Package koi
#
# spec file for package koi
#
# Copyright (c) 2020 SUSE LLC
#
# 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 https://bugs.opensuse.org/
Name: Koi
Version: @SERVICE@
Release: 0
Summary: Theme scheduling for the KDE Plasma Desktop
License: LGPL-3.0-only
URL: https://github.com/baduhai/Koi
Source: %{name}-%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: cmake(KF5CoreAddons)
BuildRequires: cmake(KF5Config)
BuildRequires: cmake(Qt5DBus)
BuildRequires: cmake(Qt5Test)
BuildRequires: cmake(Qt5Core)
BuildRequires: cmake(Qt5Network)
BuildRequires: cmake(KF5WidgetsAddons)
%description
Koi is a program designed to provide the KDE Plasma Desktop functionality to
automatically switch between light and dark themes.
%prep
%setup -q
%autopatch -p1
%build
cd src
%cmake
%cmake_build
%install
cd src
%cmake_install INSTALL_ROOT=%{buildroot}
%fdupes -s %{buildroot}
%files
%license LICENSE
%doc README.md
%{_kf5_bindir}/koi
%{_kf5_sharedir}/applications/koi.desktop
%dir %{_datadir}/icons
%dir %{_datadir}/icons/hicolor
%dir %{_datadir}/icons/hicolor/scalable
%dir %{_datadir}/icons/hicolor/scalable/apps
%{_datadir}/icons/hicolor/scalable/apps/*.svg