[packages/python-hpi] - last version of python2-compatible python-hpi package from hpklinux.spec
qboosh
qboosh at pld-linux.org
Sun Jun 9 21:37:56 CEST 2024
commit dda96745d6348485678f2a650090a9b4047c251e
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Jun 9 21:29:29 2024 +0200
- last version of python2-compatible python-hpi package from hpklinux.spec
python-hpi.spec | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
---
diff --git a/python-hpi.spec b/python-hpi.spec
new file mode 100644
index 0000000..8618aba
--- /dev/null
+++ b/python-hpi.spec
@@ -0,0 +1,49 @@
+Summary: Python Linux HPI library
+Summary(pl.UTF-8): Biblioteka Linux HPI dla Pythona
+Name: python-hpi
+# keep 4.20.42 here for python2 support
+Version: 4.20.42
+Release: 1
+License: GPL v2
+Group: Libraries/Python
+#Source0Download: https://www.audioscience.com/internet/download/linux_drivers.htm
+Source0: https://www.audioscience.com/internet/download/drivers/released/v4/20/42/hpklinux_%{version}.tar.gz
+# Source0-md5: 5d937b0c151332dc8f345a4b59ec7def
+URL: https://www.audioscience.com/internet/download/linux_drivers.htm
+BuildRequires: python-modules >= 1:2.7
+BuildRequires: python-setuptools
+Requires: hpklinux-libs >= %{version}
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Python Linux HPI library.
+
+%description -l pl.UTF-8
+Biblioteka Linux HPI dla Pythona.
+
+%prep
+%setup -q -n hpklinux_%{version}
+
+%build
+cd asi-python
+%py_build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+cd asi-python
+%py_install
+
+%py_postclean
+
+# packaged in python3-hpi
+%{__rm} $RPM_BUILD_ROOT%{_bindir}/{dab_data,dabtest,hpicontrol,hpimixer,hpisave}.py
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.md
+%{py_sitescriptdir}/audioscience
+%{py_sitescriptdir}/hpi-2.0-py*.egg-info
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-hpi.git/commitdiff/dda96745d6348485678f2a650090a9b4047c251e
More information about the pld-cvs-commit
mailing list