File knutclient.spec of Package knutclient
#
# spec file for package knutclient
#
# Copyright (c) 2025 SUSE LLC and contributors
#
# 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: knutclient
Version: 1.1.1
Release: 0
Summary: Visual KDE Client for UPS Systems Using NUT
License: GPL-2.0-or-later
URL: http://knut.prynych.cz/
Source: %{name}_%{version}.tar.gz
BuildRequires: extra-cmake-modules
BuildRequires: cmake(KF5Completion)
BuildRequires: cmake(KF5Config)
BuildRequires: cmake(KF5ConfigWidgets)
BuildRequires: cmake(KF5CoreAddons)
BuildRequires: cmake(KF5Crash)
BuildRequires: cmake(KF5DBusAddons)
BuildRequires: cmake(KF5DocTools)
BuildRequires: cmake(KF5I18n)
BuildRequires: cmake(KF5IconThemes)
# Still required to build the doc (dtd/kdex.dtd comes from kdelibs4support)
BuildRequires: cmake(KF5KDELibs4Support)
BuildRequires: cmake(KF5Notifications)
BuildRequires: cmake(KF5WidgetsAddons)
BuildRequires: cmake(KF5WindowSystem)
BuildRequires: cmake(KF5XmlGui)
BuildRequires: cmake(Qt5Core)
BuildRequires: cmake(Qt5Gui)
BuildRequires: cmake(Qt5Network)
BuildRequires: cmake(Qt5Widgets)
Recommends: %{name}-doc = %{version}
%description
knutclient is a client GUI for NUT (Network Ups Tools).
It allows to watch the state of one or more UPS and it shows the values of all
variables that the used driver supports for that UPS.
%package doc
Summary: A Visual KDE Client for UPS Systems Using NUT
Requires: %{name} = %{version}
%description doc
HTML documentation for knutclient.
knutclient is a client GUI for NUT (Network Ups Tools).
It allows to watch the state of one or more UPS and it shows the values of all
variables that the used driver supports for that UPS.
%lang_package
%prep
%autosetup -p1 -n %{name}_%{version}
rmdir build
%build
export CMAKE_POLICY_VERSION_MINIMUM=3.5
%cmake_kf5 -d build
%cmake_build
%install
%kf5_makeinstall -C build
%find_lang %{name}
%files lang -f %{name}.lang
%exclude %{_kf5_htmldir}/*/knutclient
%files
%license COPYING
%doc ChangeLog README
%{_kf5_bindir}/knutclient
%{_kf5_appsdir}/knutclient
%{_kf5_kxmlguidir}/knutclient
%{_kf5_applicationsdir}/knutclient.desktop
%{_kf5_iconsdir}/*/*/apps/knutclient.png
%files doc
%doc %lang(cs) %{_kf5_htmldir}/cs/knutclient
%doc %lang(en) %{_kf5_htmldir}/en/knutclient
%changelog