File plasma-applet-todolist.spec of Package plasma-applet-todolist

#
# spec file for package plasma-applet-todolist
#
# 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:           plasma-applet-todolist
Version:        ?_?
Release:        0
Summary:        A Plasmoid of TodoList
# FIXME: Select a correct license from https://github.com/openSUSE/spec-cleaner#spdx-licenses
License:        GPL-2.0-only
URL:            https://github.com/Zren/plasma-applet-todolist
Source:         %{name}-%{version}.tar.gz
Source1:        CMakeLists.txt
BuildRequires:  extra-cmake-modules
BuildRequires:  cmake(KF5Plasma)
Requires:       plasma5-desktop
Requires:       plasma5-addons
BuildArch:      noarch

%description
A TodoList Plasmoid for KDE Plasma

%prep
%setup -q
cp %{S:1} .
[[ -f build ]] && rm build

%build
pushd package/translate
sh ./merge && sh ./build
popd
# rm -rf package/translate
mkdir -p build && cd build
cmake .. \
  -DCMAKE_POLICY_VERSION_MINIMUM=3.5
%make_jobs

%install
%kf5_makeinstall -C build

%find_lang plasma_applet_com.github.zren.todolist

%post
%postun

%files -f plasma_applet_com.github.zren.todolist.lang
%doc ChangeLog.md ReadMe.md
%{_kf5_plasmadir}/plasmoids/
%if %{pkg_vcmp cmake(KF5Plasma) < 5.84} || %{pkg_vcmp cmake(KF5Plasma) > 5.89}
%{_kf5_servicesdir}/plasma-applet-com.github.zren.todolist.desktop
%endif

%changelog

openSUSE Build Service is sponsored by