summaryrefslogtreecommitdiff
path: root/python-ast.spec
diff options
context:
space:
mode:
Diffstat (limited to 'python-ast.spec')
-rw-r--r--python-ast.spec84
1 files changed, 84 insertions, 0 deletions
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