diff options
Diffstat (limited to 'python-stytra.spec')
-rw-r--r-- | python-stytra.spec | 89 |
1 files changed, 89 insertions, 0 deletions
diff --git a/python-stytra.spec b/python-stytra.spec new file mode 100644 index 0000000..6723af2 --- /dev/null +++ b/python-stytra.spec @@ -0,0 +1,89 @@ +%global _empty_manifest_terminate_build 0 +Name: python-stytra +Version: 0.8.34 +Release: 1 +Summary: A modular package to control stimulation and track behavior experiments. +License: GPLv3+ +URL: https://pypi.org/project/stytra/ +Source0: https://mirrors.aliyun.com/pypi/web/packages/10/48/e9ffd298cc16ec0d29da109d88a1da0326666eecf32290232983ce699fc4/stytra-0.8.34.tar.gz +BuildArch: noarch + +Requires: python3-pyqtgraph +Requires: python3-numpy +Requires: python3-numba +Requires: python3-pandas +Requires: python3-qdarkstyle +Requires: python3-qimage2ndarray +Requires: python3-flammkuchen +Requires: python3-anytree +Requires: python3-pims +Requires: python3-GitPython +Requires: python3-colorspacious +Requires: python3-arrayqueues +Requires: python3-pillow +Requires: python3-scikit-image +Requires: python3-imageio +Requires: python3-imageio-ffmpeg +Requires: python3-lightparam + +%description + + +%package -n python3-stytra +Summary: A modular package to control stimulation and track behavior experiments. +Provides: python-stytra +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-stytra + + +%package help +Summary: Development documents and examples for stytra +Provides: python3-stytra-doc +%description help + + +%prep +%autosetup -n stytra-0.8.34 + +%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-stytra -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 0.8.34-1 +- Package Spec generated |