summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-11 05:05:33 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-11 05:05:33 +0000
commitf5f4e78e1df781874beaf62a2036760ac5af4145 (patch)
tree0ceded4c0ee8e927bc362cd5ffc5150542771649
parentae6ba0c52ebaeb8f1284385aff57dd4d040693c2 (diff)
automatic import of python-ast
-rw-r--r--.gitignore1
-rw-r--r--python-ast.spec84
-rw-r--r--sources1
3 files changed, 86 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..516a952 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/AST-0.0.2.tar.gz
diff --git a/python-ast.spec b/python-ast.spec
new file mode 100644
index 0000000..b863af5
--- /dev/null
+++ b/python-ast.spec
@@ -0,0 +1,84 @@
+%global _empty_manifest_terminate_build 0
+Name: python-AST
+Version: 0.0.2
+Release: 1
+Summary: Conversion between protobuf3 and srcML.
+License: MIT
+URL: https://github.com/yijunyu/needle/
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/4b/fb/2b954d2a38c9a0ef1da6a46737a75b4dbf6f60e5dad0f267a4ec5ece20de/AST-0.0.2.tar.gz
+BuildArch: noarch
+
+
+%description
+# needle
+NeeDLe
+
+
+0.0.1 -- initial version
+
+%package -n python3-AST
+Summary: Conversion between protobuf3 and srcML.
+Provides: python-AST
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-AST
+# needle
+NeeDLe
+
+
+0.0.1 -- initial version
+
+%package help
+Summary: Development documents and examples for AST
+Provides: python3-AST-doc
+%description help
+# needle
+NeeDLe
+
+
+0.0.1 -- initial version
+
+%prep
+%autosetup -n AST-0.0.2
+
+%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-AST -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 0.0.2-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..b920f61
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+663a986f11ec13d9b6d0db2413b33cdf AST-0.0.2.tar.gz