summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-12 02:23:49 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-12 02:23:49 +0000
commited41d6276d626c44b483ccd68130c87ff9459b92 (patch)
tree9b1671db31ec87cf25fea7ae916194e7f3a84b1d
parent964e770fe2c9c31278064ec88acec925c448eab0 (diff)
automatic import of python-unyt
-rw-r--r--.gitignore1
-rw-r--r--python-unyt.spec74
-rw-r--r--sources1
3 files changed, 76 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..1441d22 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/unyt-2.9.5.tar.gz
diff --git a/python-unyt.spec b/python-unyt.spec
new file mode 100644
index 0000000..dafdada
--- /dev/null
+++ b/python-unyt.spec
@@ -0,0 +1,74 @@
+%global _empty_manifest_terminate_build 0
+Name: python-unyt
+Version: 2.9.5
+Release: 1
+Summary: A package for handling numpy arrays with units
+License: BSD license
+URL: https://github.com/yt-project/unyt
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/59/00/d096fca0e4cce3d4d8dc6dc7a12fd628e7440478eb1936968acf00128d09/unyt-2.9.5.tar.gz
+BuildArch: noarch
+
+Requires: python3-numpy
+Requires: python3-sympy
+
+%description
+
+
+%package -n python3-unyt
+Summary: A package for handling numpy arrays with units
+Provides: python-unyt
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-unyt
+
+
+%package help
+Summary: Development documents and examples for unyt
+Provides: python3-unyt-doc
+%description help
+
+
+%prep
+%autosetup -n unyt-2.9.5
+
+%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-unyt -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed Apr 12 2023 Python_Bot <Python_Bot@openeuler.org> - 2.9.5-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..76977c2
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+e913b7e8d6240da7819f1ec0f5d13e92 unyt-2.9.5.tar.gz