summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-05 08:19:55 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-05 08:19:55 +0000
commit6e1ded82364762962c4c000ef91a32ff1381dc3f (patch)
tree77c3308d079bfa9311f76ae75167bd2cc82f9035
parentcc79c6e9b7a034b5e456a05e46d619b79252a956 (diff)
automatic import of python-edflib-pythonopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-edflib-python.spec91
-rw-r--r--sources1
3 files changed, 93 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..96a4387 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/EDFlib-Python-1.0.6.tar.gz
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 <Python_Bot@openeuler.org> - 1.0.6-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..27e2a07
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+54803fd263b7d97187da9ccfd7d455ff EDFlib-Python-1.0.6.tar.gz