summaryrefslogtreecommitdiff
path: root/python-adafruit-circuitpython-wiznet5k.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-06-09 06:43:20 +0000
committerCoprDistGit <infra@openeuler.org>2023-06-09 06:43:20 +0000
commit3a0caf1ef36722578e1ad761f2327839f1e2ee7d (patch)
treeacc62e984090a9b57296c0702feebb1918f73059 /python-adafruit-circuitpython-wiznet5k.spec
parenta1c7d2a3997b9017bcf759441919cc1f9f1f335c (diff)
automatic import of python-adafruit-circuitpython-wiznet5kopeneuler20.03
Diffstat (limited to 'python-adafruit-circuitpython-wiznet5k.spec')
-rw-r--r--python-adafruit-circuitpython-wiznet5k.spec77
1 files changed, 77 insertions, 0 deletions
diff --git a/python-adafruit-circuitpython-wiznet5k.spec b/python-adafruit-circuitpython-wiznet5k.spec
new file mode 100644
index 0000000..7290e2e
--- /dev/null
+++ b/python-adafruit-circuitpython-wiznet5k.spec
@@ -0,0 +1,77 @@
+%global _empty_manifest_terminate_build 0
+Name: python-adafruit-circuitpython-wiznet5k
+Version: 2.5.3
+Release: 1
+Summary: Pure-Python interface for WIZNET 5k ethernet modules.
+License: MIT
+URL: https://github.com/adafruit/Adafruit_CircuitPython_Wiznet5k
+Source0: https://mirrors.aliyun.com/pypi/web/packages/ac/80/424aa783d4ef0c2bac49ecbe5050cd1d92d5122c60976dada00a7e96b5ab/adafruit-circuitpython-wiznet5k-2.5.3.tar.gz
+BuildArch: noarch
+
+Requires: python3-Adafruit-Blinka
+Requires: python3-adafruit-circuitpython-busdevice
+Requires: python3-pytest
+Requires: python3-pytest-mock
+Requires: python3-freezegun
+
+%description
+Pure-Python interface for WIZNET 5k ethernet modules.
+
+%package -n python3-adafruit-circuitpython-wiznet5k
+Summary: Pure-Python interface for WIZNET 5k ethernet modules.
+Provides: python-adafruit-circuitpython-wiznet5k
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-adafruit-circuitpython-wiznet5k
+Pure-Python interface for WIZNET 5k ethernet modules.
+
+%package help
+Summary: Development documents and examples for adafruit-circuitpython-wiznet5k
+Provides: python3-adafruit-circuitpython-wiznet5k-doc
+%description help
+Pure-Python interface for WIZNET 5k ethernet modules.
+
+%prep
+%autosetup -n adafruit-circuitpython-wiznet5k-2.5.3
+
+%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-adafruit-circuitpython-wiznet5k -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Fri Jun 09 2023 Python_Bot <Python_Bot@openeuler.org> - 2.5.3-1
+- Package Spec generated