diff options
Diffstat (limited to 'python-scikit-ued.spec')
-rw-r--r-- | python-scikit-ued.spec | 88 |
1 files changed, 88 insertions, 0 deletions
diff --git a/python-scikit-ued.spec b/python-scikit-ued.spec new file mode 100644 index 0000000..f0fc8e2 --- /dev/null +++ b/python-scikit-ued.spec @@ -0,0 +1,88 @@ +%global _empty_manifest_terminate_build 0 +Name: python-scikit-ued +Version: 2.1.14 +Release: 1 +Summary: Collection of algorithms and functions for ultrafast electron scattering +License: GPLv3 +URL: http://scikit-ued.readthedocs.io +Source0: https://mirrors.aliyun.com/pypi/web/packages/8d/51/c5b63d4d460f6824dd7b8d19503c4acfea6aa74d4638877be8f771207e5f/scikit-ued-2.1.14.tar.gz +BuildArch: noarch + +Requires: python3-crystals +Requires: python3-npstreams +Requires: python3-numpy +Requires: python3-pywavelets +Requires: python3-scikit-image +Requires: python3-scipy +Requires: python3-pyyaml +Requires: python3-matplotlib +Requires: python3-pyqtgraph +Requires: python3-PyQt5 + +%description +[](http://scikit-ued.readthedocs.io) [](https://pypi.org/project/scikit-ued/) [](https://anaconda.org/conda-forge/scikit-ued) [](https://doi.org/10.1186/s40679-018-0060-y) +Collection of algorithms and functions for ultrafast electron diffraction. It aims to be a fully-tested package taking advantage of Python's most recent features. +For examples, see our [tutorials](https://scikit-ued.readthedocs.io/). + +%package -n python3-scikit-ued +Summary: Collection of algorithms and functions for ultrafast electron scattering +Provides: python-scikit-ued +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-scikit-ued +[](http://scikit-ued.readthedocs.io) [](https://pypi.org/project/scikit-ued/) [](https://anaconda.org/conda-forge/scikit-ued) [](https://doi.org/10.1186/s40679-018-0060-y) +Collection of algorithms and functions for ultrafast electron diffraction. It aims to be a fully-tested package taking advantage of Python's most recent features. +For examples, see our [tutorials](https://scikit-ued.readthedocs.io/). + +%package help +Summary: Development documents and examples for scikit-ued +Provides: python3-scikit-ued-doc +%description help +[](http://scikit-ued.readthedocs.io) [](https://pypi.org/project/scikit-ued/) [](https://anaconda.org/conda-forge/scikit-ued) [](https://doi.org/10.1186/s40679-018-0060-y) +Collection of algorithms and functions for ultrafast electron diffraction. It aims to be a fully-tested package taking advantage of Python's most recent features. +For examples, see our [tutorials](https://scikit-ued.readthedocs.io/). + +%prep +%autosetup -n scikit-ued-2.1.14 + +%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-scikit-ued -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 2.1.14-1 +- Package Spec generated |