summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-10 04:46:04 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-10 04:46:04 +0000
commit5978f1fe5a4bb1e56ba12220f3a0649e51285960 (patch)
treea4a4f2d1f54b83d430fb442dc35bacc4b451ea87
parente841f5509b0eda02ffdf6147823b5abe7045bf4a (diff)
automatic import of python-mt2openeuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-mt2.spec75
-rw-r--r--sources1
3 files changed, 77 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..58e81af 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/mt2-1.2.0.tar.gz
diff --git a/python-mt2.spec b/python-mt2.spec
new file mode 100644
index 0000000..c01b074
--- /dev/null
+++ b/python-mt2.spec
@@ -0,0 +1,75 @@
+%global _empty_manifest_terminate_build 0
+Name: python-mt2
+Version: 1.2.0
+Release: 1
+Summary: Stransverse mass computation as a numpy ufunc.
+License: MIT license
+URL: https://github.com/tpgillam/mt2
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/80/f0/c8709bf1146cfd084296d5a55b47c6f57d7debc48cb6d54488084a78b8c2/mt2-1.2.0.tar.gz
+
+Requires: python3-numpy
+
+%description
+
+
+%package -n python3-mt2
+Summary: Stransverse mass computation as a numpy ufunc.
+Provides: python-mt2
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+BuildRequires: python3-cffi
+BuildRequires: gcc
+BuildRequires: gdb
+%description -n python3-mt2
+
+
+%package help
+Summary: Development documents and examples for mt2
+Provides: python3-mt2-doc
+%description help
+
+
+%prep
+%autosetup -n mt2-1.2.0
+
+%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-mt2 -f filelist.lst
+%dir %{python3_sitearch}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 1.2.0-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..cf2fed0
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+58ae2eb21bd33f7bb0464e868eeeb0a9 mt2-1.2.0.tar.gz