diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-29 13:03:46 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-29 13:03:46 +0000 |
commit | 881fad0fe3e89855508c98f7dc6bdc27760b83f2 (patch) | |
tree | 12cc9f9048ac9876778fdadf9bf6cc11c3b2d7cb | |
parent | 78518726bce00c574aebc8afecc3e48d5898c2fe (diff) |
automatic import of python-pixel-ring
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-pixel-ring.spec | 86 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 88 insertions, 0 deletions
@@ -0,0 +1 @@ +/pixel-ring-0.1.0.tar.gz diff --git a/python-pixel-ring.spec b/python-pixel-ring.spec new file mode 100644 index 0000000..c6e4f6a --- /dev/null +++ b/python-pixel-ring.spec @@ -0,0 +1,86 @@ +%global _empty_manifest_terminate_build 0 +Name: python-pixel-ring +Version: 0.1.0 +Release: 1 +Summary: respeaker series pixel ring library +License: GNU General Public License v2 +URL: https://github.com/respeaker/pixel_ring +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/cb/ee/f916b4d06ebe8f2afef2a25ba43eea56c8dcb6e341678f04de475d3f9dea/pixel-ring-0.1.0.tar.gz +BuildArch: noarch + +Requires: python3-spidev +Requires: python3-pyusb + +%description +RGB LED library for ReSpeaker USB 6+1 Microphone Array, 4 Mic Array for Raspberry Pi +to control the pixel ring + + + + +%package -n python3-pixel-ring +Summary: respeaker series pixel ring library +Provides: python-pixel-ring +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-pixel-ring +RGB LED library for ReSpeaker USB 6+1 Microphone Array, 4 Mic Array for Raspberry Pi +to control the pixel ring + + + + +%package help +Summary: Development documents and examples for pixel-ring +Provides: python3-pixel-ring-doc +%description help +RGB LED library for ReSpeaker USB 6+1 Microphone Array, 4 Mic Array for Raspberry Pi +to control the pixel ring + + + + +%prep +%autosetup -n pixel-ring-0.1.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-pixel-ring -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon May 29 2023 Python_Bot <Python_Bot@openeuler.org> - 0.1.0-1 +- Package Spec generated @@ -0,0 +1 @@ +c952cac96f0caafe4ec9706b5335ca2c pixel-ring-0.1.0.tar.gz |