File rubygem-lmsensors.spec of Package rubygem-lmsensors
#
# spec file for package rubygem-lmsensors
#
# Copyright (c) 2023 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 mod_name lmsensors
%define mod_full_name %{mod_name}-%{version}
Name: rubygem-lmsensors
Version: 0.1.1+git1.5ddd5e1
Release: 0
Summary: Lmsensors wrapper in the C-Ruby API
License: LGPL-3.0-only
Group: Development/Languages/Ruby
URL: https://github.com/hramrach/lmsensors_rb
Source: lmsensors_rb-%{version}.tar.gz
BuildRequires: %{rubydevel}
BuildRequires: %{rubygem rdoc > 3.10}
BuildRequires: libsensors4-devel
BuildRequires: ruby-macros >= 5
%description
Wrapper for the ``lm-sensors`` library, which provides the programs,
``sensors`` and ``sensors-detect``, for Linux systems. This library
and its programs are used to allow the user to access temperature and
fan data for various hardware devices.
The wrapper is written in the C-Ruby API, so you can use it in whatever
Ruby-based monitoring program makes the most sense and only using
the parts relevant to your use case.
%prep
%autosetup -n lmsensors_rb-%{version}
%build
ruby ext/lmsensors_base/extconf.rb
%make_build
%install
%make_install
%files
%license LICENSE.txt
%doc CHANGELOG.md README.md
%{rb_sitearchdir}/lmsensors_base.so
%changelog