diff --git a/liquidctl-1.7.2.tar.gz b/liquidctl-1.7.2.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..7155b245b1e9954110f3120b92936a4ec0e0393a Binary files /dev/null and b/liquidctl-1.7.2.tar.gz differ diff --git a/python-liquidctl.spec b/python-liquidctl.spec new file mode 100644 index 0000000000000000000000000000000000000000..ec222d0ac294db6d5d2f39750b406939851f8ee2 --- /dev/null +++ b/python-liquidctl.spec @@ -0,0 +1,247 @@ +%global _empty_manifest_terminate_build 0 +Name: python-liquidctl +Version: 1.7.2 +Release: 1 +Summary: Cross-platform tool and drivers for liquid coolers and other devices +License: None +URL: https://github.com/liquidctl/liquidctl +Source0: https://files.pythonhosted.org/packages/e4/f5/745cc14e5748de5d5ac3ccc1a0a9ee5e0e73858aafcc863514ce88956c0b/liquidctl-1.7.2.tar.gz +BuildArch: noarch + + +%description +# liquidctl – liquid cooler control + +_Cross-platform tool and drivers for liquid coolers and other devices_ + +[![Status of the tests](https://github.com/liquidctl/liquidctl/workflows/tests/badge.svg)](https://github.com/liquidctl/liquidctl/commits/main) +[![Status of the build for Windows](https://ci.appveyor.com/api/projects/status/n5lgebd5m8iomx42/branch/main?svg=true)](https://ci.appveyor.com/project/jonasmalacofilho/liquidctl/branch/main) +[![Developer's Discord server](https://img.shields.io/discord/780568774964805672)](https://discord.gg/GyCBjQhqCd) + + +``` +# liquidctl list +Device #0: ASUS Strix RTX 2080 Ti OC +Device #1: Corsair Vengeance RGB DIMM2 +Device #2: Corsair Vengeance RGB DIMM4 +Device #3: NZXT Smart Device (V1) +Device #4: NZXT Kraken X (X42, X52, X62 or X72) + +# liquidctl initialize all + +# liquidctl status --unsafe=smbus,vengeance_rgb +Corsair Vengeance RGB DIMM2 +└── Temperature 33.8 °C + +Corsair Vengeance RGB DIMM4 +└── Temperature 33.8 °C + +NZXT Smart Device (V1) +├── Fan 1 speed 1473 rpm +├── Fan 1 voltage 11.91 V +├── Fan 1 current 0.01 A +├── Fan 1 control mode PWM +├── Fan 2 [...] +├── Fan 2 [...] +├── Firmware version 1.0.7 +├── LED accessories 2 +├── LED accessory type HUE+ Strip +├── LED count (total) 20 +└── Noise level 65 dB + +NZXT Kraken X (X42, X52, X62 or X72) +├── Liquid temperature 31.7 °C +├── Fan speed 801 rpm +├── Pump speed 2239 rpm +└── Firmware version 6.0.2 + +# liquidctl --match kraken set fan speed 20 30 30 50 34 80 40 90 50 100 +# liquidctl --match kraken set pump speed 70 +# liquidctl --match "smart device" set sync speed 50 + +# liquidctl --match kraken set sync color fixed 0080ff +# liquidctl --match "smart device" set led color moving-alternating "hsv(30,98,100)" "hsv(30,98,10)" --speed slower +# liquidctl --match "rtx 2080" set led color fixed 2aff00 --unsafe=smbus +# liquidctl --match dimm2 set led color fixed "hsl(5, 100, 34)" --unsafe=smbus,vengeance_rgb +# liquidctl --match dimm4 set led color fixed "hsl(5, 100, 34)" --unsafe=smbus,vengeance_rgb +``` + +For which devices are supported, installation instructions, a guide to the CLI and device specific details, check the complete [Documentation](https://github.com/liquidctl/liquidctl/tree/v1.7.2#liquidctl--liquid-cooler-control). + + + +%package -n python3-liquidctl +Summary: Cross-platform tool and drivers for liquid coolers and other devices +Provides: python-liquidctl +BuildRequires: python3-devel +BuildRequires: python3-setuptools +%description -n python3-liquidctl +# liquidctl – liquid cooler control + +_Cross-platform tool and drivers for liquid coolers and other devices_ + +[![Status of the tests](https://github.com/liquidctl/liquidctl/workflows/tests/badge.svg)](https://github.com/liquidctl/liquidctl/commits/main) +[![Status of the build for Windows](https://ci.appveyor.com/api/projects/status/n5lgebd5m8iomx42/branch/main?svg=true)](https://ci.appveyor.com/project/jonasmalacofilho/liquidctl/branch/main) +[![Developer's Discord server](https://img.shields.io/discord/780568774964805672)](https://discord.gg/GyCBjQhqCd) + + +``` +# liquidctl list +Device #0: ASUS Strix RTX 2080 Ti OC +Device #1: Corsair Vengeance RGB DIMM2 +Device #2: Corsair Vengeance RGB DIMM4 +Device #3: NZXT Smart Device (V1) +Device #4: NZXT Kraken X (X42, X52, X62 or X72) + +# liquidctl initialize all + +# liquidctl status --unsafe=smbus,vengeance_rgb +Corsair Vengeance RGB DIMM2 +└── Temperature 33.8 °C + +Corsair Vengeance RGB DIMM4 +└── Temperature 33.8 °C + +NZXT Smart Device (V1) +├── Fan 1 speed 1473 rpm +├── Fan 1 voltage 11.91 V +├── Fan 1 current 0.01 A +├── Fan 1 control mode PWM +├── Fan 2 [...] +├── Fan 2 [...] +├── Firmware version 1.0.7 +├── LED accessories 2 +├── LED accessory type HUE+ Strip +├── LED count (total) 20 +└── Noise level 65 dB + +NZXT Kraken X (X42, X52, X62 or X72) +├── Liquid temperature 31.7 °C +├── Fan speed 801 rpm +├── Pump speed 2239 rpm +└── Firmware version 6.0.2 + +# liquidctl --match kraken set fan speed 20 30 30 50 34 80 40 90 50 100 +# liquidctl --match kraken set pump speed 70 +# liquidctl --match "smart device" set sync speed 50 + +# liquidctl --match kraken set sync color fixed 0080ff +# liquidctl --match "smart device" set led color moving-alternating "hsv(30,98,100)" "hsv(30,98,10)" --speed slower +# liquidctl --match "rtx 2080" set led color fixed 2aff00 --unsafe=smbus +# liquidctl --match dimm2 set led color fixed "hsl(5, 100, 34)" --unsafe=smbus,vengeance_rgb +# liquidctl --match dimm4 set led color fixed "hsl(5, 100, 34)" --unsafe=smbus,vengeance_rgb +``` + +For which devices are supported, installation instructions, a guide to the CLI and device specific details, check the complete [Documentation](https://github.com/liquidctl/liquidctl/tree/v1.7.2#liquidctl--liquid-cooler-control). + + + +%package help +Summary: Development documents and examples for liquidctl +Provides: python3-liquidctl-doc +%description help +# liquidctl – liquid cooler control + +_Cross-platform tool and drivers for liquid coolers and other devices_ + +[![Status of the tests](https://github.com/liquidctl/liquidctl/workflows/tests/badge.svg)](https://github.com/liquidctl/liquidctl/commits/main) +[![Status of the build for Windows](https://ci.appveyor.com/api/projects/status/n5lgebd5m8iomx42/branch/main?svg=true)](https://ci.appveyor.com/project/jonasmalacofilho/liquidctl/branch/main) +[![Developer's Discord server](https://img.shields.io/discord/780568774964805672)](https://discord.gg/GyCBjQhqCd) + + +``` +# liquidctl list +Device #0: ASUS Strix RTX 2080 Ti OC +Device #1: Corsair Vengeance RGB DIMM2 +Device #2: Corsair Vengeance RGB DIMM4 +Device #3: NZXT Smart Device (V1) +Device #4: NZXT Kraken X (X42, X52, X62 or X72) + +# liquidctl initialize all + +# liquidctl status --unsafe=smbus,vengeance_rgb +Corsair Vengeance RGB DIMM2 +└── Temperature 33.8 °C + +Corsair Vengeance RGB DIMM4 +└── Temperature 33.8 °C + +NZXT Smart Device (V1) +├── Fan 1 speed 1473 rpm +├── Fan 1 voltage 11.91 V +├── Fan 1 current 0.01 A +├── Fan 1 control mode PWM +├── Fan 2 [...] +├── Fan 2 [...] +├── Firmware version 1.0.7 +├── LED accessories 2 +├── LED accessory type HUE+ Strip +├── LED count (total) 20 +└── Noise level 65 dB + +NZXT Kraken X (X42, X52, X62 or X72) +├── Liquid temperature 31.7 °C +├── Fan speed 801 rpm +├── Pump speed 2239 rpm +└── Firmware version 6.0.2 + +# liquidctl --match kraken set fan speed 20 30 30 50 34 80 40 90 50 100 +# liquidctl --match kraken set pump speed 70 +# liquidctl --match "smart device" set sync speed 50 + +# liquidctl --match kraken set sync color fixed 0080ff +# liquidctl --match "smart device" set led color moving-alternating "hsv(30,98,100)" "hsv(30,98,10)" --speed slower +# liquidctl --match "rtx 2080" set led color fixed 2aff00 --unsafe=smbus +# liquidctl --match dimm2 set led color fixed "hsl(5, 100, 34)" --unsafe=smbus,vengeance_rgb +# liquidctl --match dimm4 set led color fixed "hsl(5, 100, 34)" --unsafe=smbus,vengeance_rgb +``` + +For which devices are supported, installation instructions, a guide to the CLI and device specific details, check the complete [Documentation](https://github.com/liquidctl/liquidctl/tree/v1.7.2#liquidctl--liquid-cooler-control). + + + +%prep +%autosetup -n liquidctl-1.7.2 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . +sed -i 's/\(^.*$\)/"\1"/g' filelist.lst doclist.lst +find %{buildroot} -type f -exec file {} ';' | grep "\" | awk -F ':' '{print $1}' | xargs -i chrpath --delete "{}" + +%files -n python3-liquidctl -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri Dec 10 2021 yinzehao - 1.7.2-1 +- Package Spec generated