diff --git a/liquidctl-1.11.1.tar.gz b/liquidctl-1.11.1.tar.gz deleted file mode 100644 index 943176c6b42458a8df12a4c7fdd6a95c2dedf77e..0000000000000000000000000000000000000000 Binary files a/liquidctl-1.11.1.tar.gz and /dev/null differ diff --git a/liquidctl-1.15.0.tar.gz b/liquidctl-1.15.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..9537e5a2656bbb93bc7c78850c0dc24ef9cda45f Binary files /dev/null and b/liquidctl-1.15.0.tar.gz differ diff --git a/python-liquidctl.spec b/python-liquidctl.spec index 31af8549f525a91d800648b386f70ac605d8b8ea..d86cf1b929a4626c3fcbd406ba1cd75622ef3f6d 100644 --- a/python-liquidctl.spec +++ b/python-liquidctl.spec @@ -1,14 +1,21 @@ +%global pypi_name liquidctl %global _empty_manifest_terminate_build 0 -Name: python-liquidctl -Version: 1.11.1 +Name: python-%{pypi_name} +Version: 1.15.0 Release: 1 Summary: Cross-platform tool and drivers for liquid coolers and other devices License: GPL-3.0-only URL: https://github.com/liquidctl/liquidctl -Source0: https://files.pythonhosted.org/packages/7d/61/e3cfc5e1cb8f711a6da0fe813a01c01b793c594a401c3c579fc0a0e41027/liquidctl-1.11.1.tar.gz +Source0: https://files.pythonhosted.org/packages/1d/87/8b80a72696a906fde5ead01398291c4ae67353d8d445b3828af4217b7d2c/%{pypi_name}-%{version}.tar.gz Patch0: 0001-add-setup.py.patch BuildArch: noarch +%description +Cross-platform tool and drivers for liquid coolers and other devices + +%package -n python3-liquidctl +Summary: Cross-platform tool and drivers for liquid coolers and other devices +Provides: python-liquidctl = %{version}-%{release} Requires: python3-colorlog Requires: python3-crcmod Requires: python3-docopt @@ -18,16 +25,11 @@ Requires: python3-pillow Requires: python3-smbus Requires: python3-winusbcdc Requires: python3-libusb-package - -%description -Cross-platform tool and drivers for liquid coolers and other devices - -%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 BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-hatchling %description -n python3-liquidctl Cross-platform tool and drivers for liquid coolers and other devices @@ -38,14 +40,14 @@ Provides: python3-liquidctl-doc Cross-platform tool and drivers for liquid coolers and other devices %prep -%autosetup -n liquidctl-%{version} +%autosetup -n %{pypi_name}-%{version} %patch0 %build -%py3_build +%pyproject_build %install -%py3_install +%pyproject_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 @@ -74,11 +76,20 @@ mv %{buildroot}/doclist.lst . %files -n python3-liquidctl -f filelist.lst %dir %{python3_sitelib}/* +%{python3_sitelib}/liquidctl/__pycache__/* %files help -f doclist.lst %{_docdir}/* %changelog +* Tue Nov 11 2025 - 1.15.0-1 +- Update version to 1.15.0 +- Fix spec file format: add pypi_name variable, use variables in Name and Source0 +- Fix build system: use %%pyproject_build instead of %%py3_build +- Add BuildRequires for pyproject build system (python3-wheel, python3-hatchling) +- Move Requires to subpackage section +- Fix %%files section to include __pycache__ directories + * Tue Nov 08 2022 liqiuyu - 1.11.1-1 - Upgrade package to version 1.11.1