From 6e1ded82364762962c4c000ef91a32ff1381dc3f Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Fri, 5 May 2023 08:19:55 +0000 Subject: automatic import of python-edflib-python --- python-edflib-python.spec | 91 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 91 insertions(+) create mode 100644 python-edflib-python.spec (limited to 'python-edflib-python.spec') diff --git a/python-edflib-python.spec b/python-edflib-python.spec new file mode 100644 index 0000000..7536917 --- /dev/null +++ b/python-edflib-python.spec @@ -0,0 +1,91 @@ +%global _empty_manifest_terminate_build 0 +Name: python-EDFlib-Python +Version: 1.0.6 +Release: 1 +Summary: Library to read/write EDF+/BDF+ files written in pure Python by the same author as the original EDFlib. +License: BSD License +URL: https://www.teuniz.net/edflib_python/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/39/6f/056ae8a9e779373d8c72dccfeb2e265748fef3cb59c606cb451a19703c4e/EDFlib-Python-1.0.6.tar.gz +BuildArch: noarch + +Requires: python3-numpy + +%description +EDFlib for Python is a programming library to read/write EDF+ (16-bit) and BDF+ (24-bit) files, written in pure Python. +For more info visit: https://www.teuniz.net/edflib_python/ +No merge/pull requests. If you want to report a bug, create an issue. +License: 3-clause BSD license. +Have a look at test_edfreader.py and test_edfwriter.py, they demonstrate how to use the library. +You can find them here: https://gitlab.com/Teuniz/EDFlib-Python/-/tree/master/examples +You can generate documentation in HTML format by using the command: pydoc3 -w ./edfreader.py ./edfwriter.py + +%package -n python3-EDFlib-Python +Summary: Library to read/write EDF+/BDF+ files written in pure Python by the same author as the original EDFlib. +Provides: python-EDFlib-Python +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-EDFlib-Python +EDFlib for Python is a programming library to read/write EDF+ (16-bit) and BDF+ (24-bit) files, written in pure Python. +For more info visit: https://www.teuniz.net/edflib_python/ +No merge/pull requests. If you want to report a bug, create an issue. +License: 3-clause BSD license. +Have a look at test_edfreader.py and test_edfwriter.py, they demonstrate how to use the library. +You can find them here: https://gitlab.com/Teuniz/EDFlib-Python/-/tree/master/examples +You can generate documentation in HTML format by using the command: pydoc3 -w ./edfreader.py ./edfwriter.py + +%package help +Summary: Development documents and examples for EDFlib-Python +Provides: python3-EDFlib-Python-doc +%description help +EDFlib for Python is a programming library to read/write EDF+ (16-bit) and BDF+ (24-bit) files, written in pure Python. +For more info visit: https://www.teuniz.net/edflib_python/ +No merge/pull requests. If you want to report a bug, create an issue. +License: 3-clause BSD license. +Have a look at test_edfreader.py and test_edfwriter.py, they demonstrate how to use the library. +You can find them here: https://gitlab.com/Teuniz/EDFlib-Python/-/tree/master/examples +You can generate documentation in HTML format by using the command: pydoc3 -w ./edfreader.py ./edfwriter.py + +%prep +%autosetup -n EDFlib-Python-1.0.6 + +%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-EDFlib-Python -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri May 05 2023 Python_Bot - 1.0.6-1 +- Package Spec generated -- cgit v1.2.3