From a91036bf577123500a0f6855ebf310ad9576858b Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Mon, 29 May 2023 10:22:40 +0000 Subject: automatic import of python-xpcs-viewer --- .gitignore | 1 + python-xpcs-viewer.spec | 80 +++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 82 insertions(+) create mode 100644 python-xpcs-viewer.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..7e75fbd 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/xpcs_viewer-0.258.tar.gz diff --git a/python-xpcs-viewer.spec b/python-xpcs-viewer.spec new file mode 100644 index 0000000..93987d9 --- /dev/null +++ b/python-xpcs-viewer.spec @@ -0,0 +1,80 @@ +%global _empty_manifest_terminate_build 0 +Name: python-xpcs-viewer +Version: 0.258 +Release: 1 +Summary: A python-based interactive visualization tool to view XPCS dataset +License: Argonne National Laboratory License +URL: https://github.com/AdvancedPhotonSource/pyXpcsViewer +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/db/b5/0394cd67d5bd0f2f8ee3529637b7b792119a37fe76a58908f312f0e7f98d/xpcs_viewer-0.258.tar.gz +BuildArch: noarch + +Requires: python3-numpy +Requires: python3-pyqt5 +Requires: python3-scipy +Requires: python3-scikit-learn +Requires: python3-pyqtgraph +Requires: python3-h5py +Requires: python3-matplotlib +Requires: python3-tqdm + +%description + + +%package -n python3-xpcs-viewer +Summary: A python-based interactive visualization tool to view XPCS dataset +Provides: python-xpcs-viewer +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-xpcs-viewer + + +%package help +Summary: Development documents and examples for xpcs-viewer +Provides: python3-xpcs-viewer-doc +%description help + + +%prep +%autosetup -n xpcs-viewer-0.258 + +%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-xpcs-viewer -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon May 29 2023 Python_Bot - 0.258-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..a888bba --- /dev/null +++ b/sources @@ -0,0 +1 @@ +d3b684ef2ac8fc4f877b03ce8c4d28a5 xpcs_viewer-0.258.tar.gz -- cgit v1.2.3