[packages/python3-hidapi] - python-hidapi.spec updated to 0.14.0 for python 3.5+
qboosh
qboosh at pld-linux.org
Sun Nov 12 21:07:55 CET 2023
commit 568c8d0b2fd2cf483edee4b7cc2b8c85e0904643
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Nov 12 20:54:31 2023 +0100
- python-hidapi.spec updated to 0.14.0 for python 3.5+
python-hidapi.spec | 111 ----------------------------------------------------
python3-hidapi.spec | 60 ++++++++++++++++++++++++++++
2 files changed, 60 insertions(+), 111 deletions(-)
---
diff --git a/python-hidapi.spec b/python-hidapi.spec
deleted file mode 100644
index 7025301..0000000
--- a/python-hidapi.spec
+++ /dev/null
@@ -1,111 +0,0 @@
-#
-# Conditional build:
-%bcond_without tests # unit tests
-%bcond_without python2 # CPython 2.x module
-%bcond_without python3 # CPython 3.x module
-
-Summary: Cython interface to HIDAPI library
-Summary(pl.UTF-8): Cythonowy interfejs do biblioteki HIDAPI
-Name: python-hidapi
-# 0.9.0.post3 requires hidapi > 0.9.0
-Version: 0.9.0.post2
-Release: 6
-License: GPL v3 or BSD or HIDAPI
-Group: Libraries/Python
-#Source0Download: https://pypi.org/simple/hidapi/
-Source0: https://files.pythonhosted.org/packages/source/h/hidapi/hidapi-%{version}.tar.gz
-# Source0-md5: 73797981acc762bd39f6ceb5a0b0b0b7
-URL: https://pypi.org/project/hidapi/
-BuildRequires: hidapi-devel >= 0.9.0
-BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.714
-%if %{with python2}
-BuildRequires: python-Cython
-BuildRequires: python-devel >= 1:2.6
-BuildRequires: python-setuptools >= 1:19.0
-%endif
-%if %{with python3}
-BuildRequires: python3-Cython
-BuildRequires: python3-devel >= 1:3.2
-BuildRequires: python3-setuptools >= 1:19.0
-%endif
-Requires: hidapi >= 0.9.0
-Requires: python-libs >= 1:2.6
-BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%description
-Cython interface to HIDAPI library.
-
-%description -l pl.UTF-8
-Cythonowy interfejs do biblioteki HIDAPI.
-
-%package -n python3-hidapi
-Summary: Cython interface to HIDAPI library
-Summary(pl.UTF-8): Cythonowy interfejs do biblioteki HIDAPI
-Group: Libraries/Python
-Requires: hidapi >= 0.9.0
-Requires: python3-libs >= 1:3.2
-
-%description -n python3-hidapi
-Cython interface to HIDAPI library.
-
-%description -n python3-hidapi -l pl.UTF-8
-Cythonowy interfejs do biblioteki HIDAPI.
-
-%prep
-%setup -q -n hidapi-%{version}
-
-%build
-%if %{with python2}
-%py_build \
- --with-system-hidapi
-
-%if %{with tests}
-PYTHONPATH=$(echo build-2/lib.*) \
-%{__python} -m unittest tests
-%endif
-%endif
-
-%if %{with python3}
-%py3_build \
- --with-system-hidapi
-
-%if %{with tests}
-PYTHONPATH=$(echo build-3/lib.*) \
-%{__python3} -m unittest tests
-%endif
-%endif
-
-%install
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%py_install
-
-%py_postclean
-%endif
-
-%if %{with python3}
-%py3_install
-%endif
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%files
-%defattr(644,root,root,755)
-%doc LICENSE.txt LICENSE-bsd.txt LICENSE-orig.txt README.rst
-%attr(755,root,root) %{py_sitedir}/hid.so
-%attr(755,root,root) %{py_sitedir}/hidraw.so
-%{py_sitedir}/hidapi-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-hidapi
-%defattr(644,root,root,755)
-%doc LICENSE.txt LICENSE-bsd.txt LICENSE-orig.txt README.rst
-%attr(755,root,root) %{py3_sitedir}/hid.cpython-*.so
-%attr(755,root,root) %{py3_sitedir}/hidraw.cpython-*.so
-%{py3_sitedir}/hidapi-%{version}-py*.egg-info
-%endif
diff --git a/python3-hidapi.spec b/python3-hidapi.spec
new file mode 100644
index 0000000..dfcc4e9
--- /dev/null
+++ b/python3-hidapi.spec
@@ -0,0 +1,60 @@
+#
+# Conditional build:
+%bcond_without tests # unit tests
+%bcond_without python2 # CPython 2.x module
+%bcond_without python3 # CPython 3.x module
+
+Summary: Cython interface to HIDAPI library
+Summary(pl.UTF-8): Cythonowy interfejs do biblioteki HIDAPI
+Name: python3-hidapi
+Version: 0.14.0
+Release: 1
+License: GPL v3 or BSD or HIDAPI
+Group: Libraries/Python
+#Source0Download: https://pypi.org/simple/hidapi/
+Source0: https://files.pythonhosted.org/packages/source/h/hidapi/hidapi-%{version}.tar.gz
+# Source0-md5: 261310752df90b76fa4e22f3f60ad733
+URL: https://pypi.org/project/hidapi/
+BuildRequires: hidapi-devel >= 0.14.0
+BuildRequires: libusb-devel >= 1.0
+BuildRequires: python3-Cython
+BuildRequires: python3-devel >= 1:3.5
+BuildRequires: python3-setuptools >= 1:19.0
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
+Requires: hidapi >= 0.14.0
+Requires: python3-libs >= 1:3.5
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Cython interface to HIDAPI library.
+
+%description -l pl.UTF-8
+Cythonowy interfejs do biblioteki HIDAPI.
+
+%prep
+%setup -q -n hidapi-%{version}
+
+%build
+%py3_build \
+ --with-system-hidapi
+
+%if %{with tests}
+PYTHONPATH=$(echo build-3/lib.*) \
+%{__python3} -m unittest tests
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE.txt LICENSE-bsd.txt LICENSE-orig.txt README.rst
+%attr(755,root,root) %{py3_sitedir}/hid.cpython-*.so
+%attr(755,root,root) %{py3_sitedir}/hidraw.cpython-*.so
+%{py3_sitedir}/hidapi-%{version}-py*.egg-info
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-hidapi.git/commitdiff/568c8d0b2fd2cf483edee4b7cc2b8c85e0904643
More information about the pld-cvs-commit
mailing list