summaryrefslogtreecommitdiff
path: root/python-flux-led.spec
diff options
context:
space:
mode:
Diffstat (limited to 'python-flux-led.spec')
-rw-r--r--python-flux-led.spec123
1 files changed, 123 insertions, 0 deletions
diff --git a/python-flux-led.spec b/python-flux-led.spec
new file mode 100644
index 0000000..145ffb2
--- /dev/null
+++ b/python-flux-led.spec
@@ -0,0 +1,123 @@
+%global _empty_manifest_terminate_build 0
+Name: python-flux-led
+Version: 0.28.37
+Release: 1
+Summary: A Python library to communicate with the flux_led smart bulbs
+License: LGPLv3+
+URL: https://github.com/Danielhiversen/flux_led
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/f0/bf/d7f780b6a6cbf2dc2a2406d4b4ec944e3c5165d868fbb99fe243bf06fdb5/flux_led-0.28.37.tar.gz
+BuildArch: noarch
+
+Requires: python3-webcolors
+Requires: python3-async-timeout
+Requires: python3-typing-extensions
+Requires: python3-webcolors
+Requires: python3-async-timeout
+Requires: python3-pytest-runner
+Requires: python3-pytest-asyncio
+Requires: python3-black
+Requires: python3-codecov
+Requires: python3-flake8
+Requires: python3-flake8-debugger
+Requires: python3-pytest
+Requires: python3-pytest-cov
+Requires: python3-pytest-raises
+Requires: python3-bump2version
+Requires: python3-coverage
+Requires: python3-ipython
+Requires: python3-m2r2
+Requires: python3-Sphinx
+Requires: python3-sphinx-rtd-theme
+Requires: python3-tox
+Requires: python3-twine
+Requires: python3-wheel
+Requires: python3-typing-extensions
+Requires: python3-pytest-runner
+Requires: python3-pytest-asyncio
+Requires: python3-black
+Requires: python3-codecov
+Requires: python3-flake8
+Requires: python3-flake8-debugger
+Requires: python3-pytest
+Requires: python3-pytest-cov
+Requires: python3-pytest-raises
+Requires: python3-bump2version
+Requires: python3-coverage
+Requires: python3-ipython
+Requires: python3-m2r2
+Requires: python3-Sphinx
+Requires: python3-sphinx-rtd-theme
+Requires: python3-tox
+Requires: python3-twine
+Requires: python3-wheel
+Requires: python3-pytest-runner
+Requires: python3-pytest-asyncio
+Requires: python3-black
+Requires: python3-codecov
+Requires: python3-flake8
+Requires: python3-flake8-debugger
+Requires: python3-pytest
+Requires: python3-pytest-cov
+Requires: python3-pytest-raises
+
+%description
+
+
+%package -n python3-flux-led
+Summary: A Python library to communicate with the flux_led smart bulbs
+Provides: python-flux-led
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-flux-led
+
+
+%package help
+Summary: Development documents and examples for flux-led
+Provides: python3-flux-led-doc
+%description help
+
+
+%prep
+%autosetup -n flux-led-0.28.37
+
+%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-flux-led -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed Apr 12 2023 Python_Bot <Python_Bot@openeuler.org> - 0.28.37-1
+- Package Spec generated