summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-05 12:49:08 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-05 12:49:08 +0000
commit9a8d23b22fa7c1e85ab8f3c1052541ae7a589c70 (patch)
tree3601d44f4bf42ce2c979be77988315a6701375a0
parent24edce7da3cf64c963217ae8dc2f4eb38cd6f8eb (diff)
automatic import of python-aiopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-ai.spec72
-rw-r--r--sources1
3 files changed, 74 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..f30f587 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/ai-1.0.1.tar.gz
diff --git a/python-ai.spec b/python-ai.spec
new file mode 100644
index 0000000..282748f
--- /dev/null
+++ b/python-ai.spec
@@ -0,0 +1,72 @@
+%global _empty_manifest_terminate_build 0
+Name: python-ai
+Version: 1.0.1
+Release: 1
+Summary: Ai lib.
+License: MIT
+URL: https://github.com/Decalogue/ai
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/1d/78/859179b90d96f7f17560b1d39911b1f76165f2cc80844c357e41940aa164/ai-1.0.1.tar.gz
+BuildArch: noarch
+
+
+%description
+
+
+%package -n python3-ai
+Summary: Ai lib.
+Provides: python-ai
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-ai
+
+
+%package help
+Summary: Development documents and examples for ai
+Provides: python3-ai-doc
+%description help
+
+
+%prep
+%autosetup -n ai-1.0.1
+
+%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-ai -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 1.0.1-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..60dc654
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+3eead6c14352dac3b94ce116901aa49a ai-1.0.1.tar.gz