## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 18; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Many modules not packaged. Some of them deprecated. %bcond_with tests %global pypi_name linux_thermaltake_rgb %global sys_name linux_thermaltake_riing Name: linux-thermaltake-rgb Version: 0.2.0 Release: %autorelease Summary: Python driver and daemon to control thermaltake Riing fans and pumps BuildArch: noarch License: GPLv2 URL: https://github.com/chestm007/linux_thermaltake_riing # GitHub source because pypi version outdated Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz BuildRequires: python3-devel BuildRequires: systemd-rpm-macros BuildRequires: python3dist(setuptools) %if %{with tests} # BuildRequires: python3dist(base_test_object) # BuildRequires: python3dist(pep8) # BuildRequires: python3dist(usb) BuildRequires: python3dist(pytest) %endif %description Linux driver and daemon for Thermaltake Riing Currently supported devices are (as they show up in thermaltakes TTRGBPLUS software: - Flow Riing RGB - Lumi Plus LED Strip - Pacific PR22-D5 Plus - Pacific Rad Plus LED Panel - Pacific V-GTX 1080Ti Plus GPU Waterblock - Pacific W4 Plus CPU Waterblock - Riing Plus %prep %autosetup -n %{sys_name}-%{version} -p1 sed -i 's/PROJECTVERSION/%{version}/g' setup.py # Fixed missing 1 positional argument in daemon/config.py # # For newer versions of python yaml, Simply loading the config with # yaml.load(cfg) does not work due to it being deprecated, It has been fixed # here. # https://github.com/chestm007/linux_thermaltake_riing/pull/53 sed -i 's/yaml.load(cfg)/yaml.load(cfg, Loader=yaml.FullLoader)/' \ %{pypi_name}/daemon/config.py # fix wrong package requirement for GObject # https://github.com/chestm007/linux_thermaltake_riing/pull/37 sed -i 's/GObject/PyGObject/g' setup.py # Remove bundled egg-info rm -rf %{name}.egg-info %build %py3_build %install %py3_install mkdir -p %{buildroot}%{_unitdir} mv %{buildroot}%{_datadir}/%{pypi_name}/%{name}.service \ %{buildroot}%{_unitdir} mkdir -p %{buildroot}%{_sysconfdir}/%{pypi_name} mv %{buildroot}%{_datadir}/%{pypi_name}/config.yml \ %{buildroot}%{_sysconfdir}/%{pypi_name} %if %{with tests} %check %{python3} -m pytest -v %endif %post %systemd_post %{name}.service %preun %systemd_preun %{name}.service %postun %systemd_postun_with_restart %{name}.service %files %license LICENSE.txt %doc README.md roadmap.txt protocol.txt %config(noreplace) %{_sysconfdir}/%{pypi_name}/config.yml %dir %{_sysconfdir}/%{pypi_name} %{_bindir}/%{name} %{_unitdir}/*.service %{python3_sitelib}/%{pypi_name}-%{version}-py*.egg-info/ %{python3_sitelib}/%{pypi_name}/ %changelog ## START: Generated by rpmautospec * Thu Jul 18 2024 Fedora Release Engineering - 0.2.0-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jun 07 2024 Python Maint - 0.2.0-17 - Rebuilt for Python 3.13 * Thu Jan 25 2024 Fedora Release Engineering - 0.2.0-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 0.2.0-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Jul 20 2023 Fedora Release Engineering - 0.2.0-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jun 13 2023 Python Maint - 0.2.0-13 - Rebuilt for Python 3.12 * Thu Jan 19 2023 Fedora Release Engineering - 0.2.0-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Wed Nov 09 2022 Artem Polishchuk - 0.2.0-11 - fix: Fixed missing 1 positional argument (again) * Fri Nov 04 2022 Artem Polishchuk - 0.2.0-10 - fix: Fixed missing 1 positional argument * Fri Nov 04 2022 Artem Polishchuk - 0.2.0-9 - Revert "build: Update to latest git snapshot" * Fri Nov 04 2022 Artem Polishchuk - 0.2.0-8 - build: Update to latest git snapshot * Thu Jul 21 2022 Fedora Release Engineering - 0.2.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 0.2.0-5 - Rebuilt for Python 3.11 * Thu Jan 20 2022 Fedora Release Engineering - 0.2.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 0.2.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 0.2.0-2 - Rebuilt for Python 3.10 * Sun Jan 31 2021 Artem Polishchuk - 0.2.0-1 - Initial package ## END: Generated by rpmautospec