File liquidctl.spec of Package liquidctl

#
# spec file for package liquidctl
#
# Copyright (c) 2021 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:           liquidctl
Version:        1.5.0
Release:        0
Summary:        Tool for controlling liquid coolers, case fans and RGB LED strips
License:        GPL-3.0-or-later
URL:            https://github.com/jonasmalacofilho/liquidctl
Source:         https://github.com/jonasmalacofilho/liquidctl/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires:  python3-setuptools
Requires:       python3-appdirs
Requires:       python3-docopt
Requires:       python3-hidapi
Requires:       python3-pyusb
BuildArch:      noarch

%description
%{name} is a tool for controlling various settings of PC internals, such as:
- liquid cooler pump speed
- case fan speed
- RGB LED strip colors

Currently supported devices are:
- Corsair H80i GTX/v2, H100i GTX/v2, H110i GTX and H115i (experimental)
- Corsair HX750i, HX850i, HX1000i and HX1200i (experimental)
- Corsair RM650i, RM750i, RM850i and RM1000i (experimental)
- EVGA CLC 120 (CL12), 240, 280 and 360
- NZXT E500, E650, E850 (experimental)
- NZXT Grid+ V3 (experimental)
- NZXT Kraken M22
- NZXT Kraken X42, X52, X62 and X72
- NZXT Kraken X31, X40/X41 and X60/X61 (experimental)
- NZXT Smart Device, Smart Device V2

%prep
%autosetup

%build
python3 setup.py build

%install
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
install -m 755 -d %{buildroot}%{_mandir}/man8/
install -m 644 %{name}.8 %{buildroot}%{_mandir}/man8/

%files
%license LICENSE.txt
%doc CHANGELOG.md README.md
%{_bindir}/%{name}
%{_mandir}/man8/%{name}.8%{?ext_man}
%{python3_sitelib}/%{name}
%{python3_sitelib}/%{name}-%{version}-py%{python3_version}.egg-info

%changelog
openSUSE Build Service is sponsored by