File psensor.spec of Package psensor

#
# spec file for package psensor.spec
#
# Copyright (c) 2015-2021 Malcolm J Lewis <malcolmlewis@opensuse.org>
#
# 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:           psensor
Version:        1.2.1+13
Release:        0
Summary:        Graphical hardware temperature monitor
License:        GPL-2.0
Group:          System/Monitoring
URL:            http://wpitchoune.net/blog/psensor/
Source0:        %{name}-%{version}.tar.xz
BuildRequires:  automake
BuildRequires:  automake
BuildRequires:  help2man
BuildRequires:  libXNVCtrl-devel
BuildRequires:  libsensors4-devel
BuildRequires:  libtool
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(appindicator3-0.1)
BuildRequires:  pkgconfig(gtk+-3.0)
BuildRequires:  pkgconfig(json-c)
BuildRequires:  pkgconfig(libatasmart)
BuildRequires:  pkgconfig(libcurl)
BuildRequires:  pkgconfig(libgtop-2.0)
BuildRequires:  pkgconfig(libmicrohttpd)
BuildRequires:  pkgconfig(libnotify)
BuildRequires:  pkgconfig(udisks2)
Recommends:     hddtemp

%description
Psensor is a graphical hardware temperature monitor for Linux.

It draws realtime charts and raises alerts about:

 * Temperature of the motherboard and CPU sensors (using lm-sensors).
 * Temperature of the NVidia GPUs (using XNVCtrl).
 * Temperature of ATI GPUs (using ATI ADL SDK).
 * Temperature of the Hard Disk Drives (using hddtemp, libatasmart or udisks2).
 * Rotation speed of the fans.
 * Temperature of a remote computer.
 * CPU load.

Alerts are using Desktop Notification and a specific GTK+ status icon.

%package -n %{name}-server
Summary:        Graphical hardware temperature monitor
License:        GPL-2.0
Requires:       %{name} == %{version}

%description -n %{name}-server
Psensor is a graphical hardware temperature monitor for Linux.

It draws realtime charts and raises alerts about:

 * Temperature of the motherboard and CPU sensors (using lm-sensors).
 * Temperature of the NVidia GPUs (using XNVCtrl).
 * Temperature of ATI GPUs (using ATI ADL SDK).
 * Temperature of the Hard Disk Drives (using hddtemp, libatasmart or udisks2).
 * Rotation speed of the fans.
 * Temperature of a remote computer.
 * CPU load.

Alerts are using Desktop Notification and a specific GTK+ status icon.

%lang_package
%prep
%setup -q

%build
autoreconf -ifs
%configure
make

%install
%makeinstall
# Remove installed docs as we use %%doc
pushd %{buildroot}%{_datadir}
rm -rf doc
popd
# Remove icons not used in openSUSE
pushd %{buildroot}%{_datadir}/icons/
rm -rf ubuntu*
cd hicolor
rm -rf 14x14
popd
%find_lang %{name} %{?no_lang_C}
%suse_update_desktop_file %{name}

%files -f %{name}.lang
%doc AUTHORS NEWS doc/TODO.txt doc/faq.txt
%license COPYING
%{_bindir}/%{name}
%{_datadir}/applications/psensor.desktop
%{_datadir}/glib-2.0/schemas/psensor.gschema.xml
%{_datadir}/icons/hicolor/*/apps/*
%{_mandir}/man1/psensor.1%{?ext_man}
%{_datadir}/%{name}

%files -n %{name}-server
%{_bindir}/%{name}-server
%{_mandir}/man1/psensor-server.1%{?ext_man}

%changelog
openSUSE Build Service is sponsored by