diff --git a/liquidctl-1.7.2.tar.gz b/liquidctl-1.7.2.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..f7f4edf7047661e97867b4fe58f1106a07743061 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..0838ac3318164c23ea28819a431a79c13b47db83 --- /dev/null +++ b/python-liquidctl.spec @@ -0,0 +1,72 @@ +%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: GPL-3.0-only +URL: https://github.com/liquidctl/liquidctl +Source0: https://files.pythonhosted.org/packages/e4/f5/745cc14e5748de5d5ac3ccc1a0a9ee5e0e73858aafcc863514ce88956c0b/liquidctl-1.7.2.tar.gz +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 +BuildRequires: python3-devel +BuildRequires: python3-setuptools +%description -n python3-liquidctl +Cross-platform tool and drivers for liquid coolers and other devices + +%package help +Summary: Development documents and examples for liquidctl +Provides: python3-liquidctl-doc +%description help +Cross-platform tool and drivers for liquid coolers and other devices + +%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 . + +%files -n python3-liquidctl -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Dec 20 2021 Python_Bot - 1.7.2-1 +- Package Init +