File plasmoid-redshift-control.spec of Package plasmoid-redshift-control

#
# spec file for package plasmoid-redshift-control
#
# Copyright (c) 2018 SUSE LINUX Products 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:           plasmoid-redshift-control
Version:        1.0.18
Release:        0
Summary:        Plasma 5 applet for controlling redshift
License:        GPL-2.0
Group:          System/GUI/KDE
Url:            https://github.com/kotelnik/plasma-redshift-control
Source:         plasma-applet-redshift-control-%{version}.tar.gz
BuildRequires:  fdupes
BuildRequires:	plasma5-workspace-devel
BuildRequires:	plasma-framework-devel
Requires:       redshift
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Plasma 5 applet for controlling redshift (screen temperature modifying). It allowes basic redshift settings and fast manual temperature control by mouse wheel.

%prep
%setup -q -n plasma-applet-redshift-control-%{version}

%build
%cmake_kf5 -d build
%make_jobs

%install
%kf5_makeinstall -C build
%fdupes -s %{buildroot}
%find_lang plasma_applet_org.kde.redshiftControl %{name}.lang

%files -f %{name}.lang
%defattr(-,root,root)
%doc README.md
%doc LICENSE
%{_kf5_plasmadir}/
%{_kf5_servicesdir}/
%{_datadir}/metainfo