summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--python-robotpy-hal.spec81
-rw-r--r--sources1
3 files changed, 83 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..5dfc8bb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/robotpy-hal-2023.4.3.0.tar.gz
diff --git a/python-robotpy-hal.spec b/python-robotpy-hal.spec
new file mode 100644
index 0000000..a6e2290
--- /dev/null
+++ b/python-robotpy-hal.spec
@@ -0,0 +1,81 @@
+%global _empty_manifest_terminate_build 0
+Name: python-robotpy-hal
+Version: 2023.4.3.0
+Release: 1
+Summary: Binary wrapper for FRC HAL
+License: BSD-3-Clause
+URL: https://github.com/robotpy/robotpy-hal
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/2a/aa/d28718d4acddce0e12877e57e9fb80c61448ec85a3f8df1dcb9e1e15577e/robotpy-hal-2023.4.3.0.tar.gz
+
+Requires: python3-robotpy-wpiutil
+
+%description
+Python wrappers around the WPILib HAL.
+API Documentation can be found at
+https://robotpy.readthedocs.io/projects/hal/en/latest
+
+%package -n python3-robotpy-hal
+Summary: Binary wrapper for FRC HAL
+Provides: python-robotpy-hal
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+BuildRequires: python3-cffi
+BuildRequires: gcc
+BuildRequires: gdb
+%description -n python3-robotpy-hal
+Python wrappers around the WPILib HAL.
+API Documentation can be found at
+https://robotpy.readthedocs.io/projects/hal/en/latest
+
+%package help
+Summary: Development documents and examples for robotpy-hal
+Provides: python3-robotpy-hal-doc
+%description help
+Python wrappers around the WPILib HAL.
+API Documentation can be found at
+https://robotpy.readthedocs.io/projects/hal/en/latest
+
+%prep
+%autosetup -n robotpy-hal-2023.4.3.0
+
+%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-robotpy-hal -f filelist.lst
+%dir %{python3_sitearch}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 2023.4.3.0-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..a6b026b
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+b0a90c1e5c16445bf2273d0ec2f62400 robotpy-hal-2023.4.3.0.tar.gz