summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--python-ctapipe.spec128
-rw-r--r--sources1
3 files changed, 130 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..9939b7a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/ctapipe-0.19.2.tar.gz
diff --git a/python-ctapipe.spec b/python-ctapipe.spec
new file mode 100644
index 0000000..98b08df
--- /dev/null
+++ b/python-ctapipe.spec
@@ -0,0 +1,128 @@
+%global _empty_manifest_terminate_build 0
+Name: python-ctapipe
+Version: 0.19.2
+Release: 1
+Summary: CTA Python pipeline experimental version
+License: BSD 3-Clause License
+URL: https://github.com/cta-observatory/ctapipe
+Source0: https://mirrors.aliyun.com/pypi/web/packages/da/ce/b1c03a1a2b1c010265adb855f41ec0140669cfd9955f86ba72218218d0b7/ctapipe-0.19.2.tar.gz
+BuildArch: noarch
+
+Requires: python3-astropy
+Requires: python3-bokeh
+Requires: python3-docutils
+Requires: python3-eventio
+Requires: python3-iminuit
+Requires: python3-joblib
+Requires: python3-matplotlib
+Requires: python3-numba
+Requires: python3-numpy
+Requires: python3-psutil
+Requires: python3-pyyaml
+Requires: python3-requests
+Requires: python3-scikit-learn
+Requires: python3-scipy
+Requires: python3-tables
+Requires: python3-tqdm
+Requires: python3-traitlets
+Requires: python3-zstandard
+Requires: python3-importlib-metadata
+Requires: python3-importlib-resources
+Requires: python3-pytest
+Requires: python3-pandas
+Requires: python3-tomli
+Requires: python3-pytest-astropy-header
+Requires: python3-h5py
+Requires: python3-sphinx
+Requires: python3-jinja2
+Requires: python3-sphinx-rtd-theme
+Requires: python3-sphinx-automodapi
+Requires: python3-nbsphinx
+Requires: python3-numpydoc
+Requires: python3-jupyter
+Requires: python3-notebook
+Requires: python3-graphviz
+Requires: python3-pandas
+Requires: python3-ipython
+Requires: python3-ffmpeg-python
+Requires: python3-setuptools-scm[toml]
+Requires: python3-setuptools-scm[toml]
+Requires: python3-sphinx
+Requires: python3-jinja2
+Requires: python3-sphinx-rtd-theme
+Requires: python3-sphinx-automodapi
+Requires: python3-nbsphinx
+Requires: python3-numpydoc
+Requires: python3-jupyter
+Requires: python3-notebook
+Requires: python3-graphviz
+Requires: python3-pandas
+Requires: python3-ipython
+Requires: python3-ffmpeg-python
+Requires: python3-pytest
+Requires: python3-pandas
+Requires: python3-tomli
+Requires: python3-pytest-astropy-header
+Requires: python3-h5py
+
+%description
+
+
+%package -n python3-ctapipe
+Summary: CTA Python pipeline experimental version
+Provides: python-ctapipe
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-ctapipe
+
+
+%package help
+Summary: Development documents and examples for ctapipe
+Provides: python3-ctapipe-doc
+%description help
+
+
+%prep
+%autosetup -n ctapipe-0.19.2
+
+%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-ctapipe -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Thu Jun 08 2023 Python_Bot <Python_Bot@openeuler.org> - 0.19.2-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..8a10309
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+a3ce232a9a4dd6c00833c6fe0731f89f ctapipe-0.19.2.tar.gz