File tuxclocker.spec of Package tuxclocker
#
# spec file for package tuxclocker
#
# Copyright (c) 2024 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/
#
%define libname libtuxclocker
%define sover 0
Name: tuxclocker
Version: 1.5.1
Release: 0
Summary: Qt overclocking tool for GNU/Linux
License: GPL-3.0-only
Group: Development/Languages/Python
URL: https://github.com/Lurkki14/tuxclocker
Source: %{name}-%{version}.tar.gz
Source99: %{name}-rpmlintrc
%if 0%{?suse_version} < 1600
BuildRequires: gcc13
BuildRequires: gcc13-c++
%else
BuildRequires: gcc
BuildRequires: gcc-c++
%endif
BuildRequires: meson
BuildRequires: gettext-runtime
BuildRequires: git
BuildRequires: libboost_system-devel
BuildRequires: libboost_filesystem-devel
BuildRequires: libdrm-devel
BuildRequires: libXNVCtrl-devel
BuildRequires: libX11-devel
BuildRequires: libQt5DBus-devel
BuildRequires: libQt5Charts5-devel
BuildRequires: libqt5-qtbase-devel
BuildRequires: libopenssl-devel
BuildRequires: %{python_module devel}
BuildRequires: %{python_module hwdata}
Requires: %{libname} = %{version}
%description
TuxClocker is a hardware controlling and monitoring program. TuxClocker consists of a DBus daemon and a Qt GUI that uses the daemon.
%package -n %{libname}
Summary: Library for %name
%description -n %{libname}
{%summary}.
%lang_package
%prep
%autosetup -p1
# Without https://github.com/Lurkki14/tuxclocker/issues/65 -Drequire-nvidia=false can't be enabled
%build
%if 0%{?suse_version} < 1600
export CC=gcc-13
export CXX=g++-13
%endif
%meson \
-Dplugins=true \
-Ddaemon=true \
-Drequire-nvidia=false \
-Drequire-amd=true \
-Drequire-python-hwdata=true
%meson_build
%install
%meson_install
%find_lang %{name}
%post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig
%files
%license LICENSE
%doc README.md
%{_bindir}/tuxclocker-qt
%{_bindir}/tuxclockerd
# add plugin directories
%dir %{_libdir}/tuxclocker
%dir %{_libdir}/tuxclocker/plugins
%{_libdir}/tuxclocker/plugins/*.so
%{_datadir}/dbus-1/system-services/org.tuxclocker.service
%{_datadir}/dbus-1/system.d/org.tuxclocker.conf
%{_datadir}/icons/hicolor/
%{_datadir}/icons/hicolor/*/apps/*.svg
%{_datadir}/applications/%{name}.desktop
%files -n %{libname}
%{_libdir}/%{libname}.so
%files lang -f %{name}.lang
%changelog