summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-18 05:11:42 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-18 05:11:42 +0000
commitd121a57a035f86558367eac710f7a749afce9f3b (patch)
tree6a16de33af62f74b7e6a2abc44e17a4023d153a0
parent9fdf2476859ac9958ed0e667d5d159b02ea8eced (diff)
automatic import of python-project-generator
-rw-r--r--.gitignore1
-rw-r--r--python-project-generator.spec91
-rw-r--r--sources1
3 files changed, 93 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..bacd7bb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/project_generator-0.12.0.tar.gz
diff --git a/python-project-generator.spec b/python-project-generator.spec
new file mode 100644
index 0000000..25fa3ed
--- /dev/null
+++ b/python-project-generator.spec
@@ -0,0 +1,91 @@
+%global _empty_manifest_terminate_build 0
+Name: python-project-generator
+Version: 0.12.0
+Release: 1
+Summary: Project generators for various embedded tools (IDE). IAR, uVision, Makefile and many more in the roadmap!
+License: Apache 2.0
+URL: https://github.com/project-generator/project_generator
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/f4/47/fd0cac2fff5d6a13952c6d88bb34d41572395841477f48e15db28e33b470/project_generator-0.12.0.tar.gz
+BuildArch: noarch
+
+Requires: python3-pyyaml
+Requires: python3-Jinja2
+Requires: python3-xmltodict
+Requires: python3-project-generator-definitions
+
+%description
+* Python 2.7.x/3.x
+ * [pyYAML](https://github.com/yaml/pyyaml)
+ * [Setuptools](https://pypi.python.org/pypi/distribute)
+ * [Jinja2](https://pypi.python.org/pypi/Jinja2)
+ * [xmltodict](https://pypi.python.org/pypi/xmltodict)
+ * [project generator definitions](https://pypi.python.org/pypi/project_generator_definitions)
+
+%package -n python3-project-generator
+Summary: Project generators for various embedded tools (IDE). IAR, uVision, Makefile and many more in the roadmap!
+Provides: python-project-generator
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-project-generator
+* Python 2.7.x/3.x
+ * [pyYAML](https://github.com/yaml/pyyaml)
+ * [Setuptools](https://pypi.python.org/pypi/distribute)
+ * [Jinja2](https://pypi.python.org/pypi/Jinja2)
+ * [xmltodict](https://pypi.python.org/pypi/xmltodict)
+ * [project generator definitions](https://pypi.python.org/pypi/project_generator_definitions)
+
+%package help
+Summary: Development documents and examples for project-generator
+Provides: python3-project-generator-doc
+%description help
+* Python 2.7.x/3.x
+ * [pyYAML](https://github.com/yaml/pyyaml)
+ * [Setuptools](https://pypi.python.org/pypi/distribute)
+ * [Jinja2](https://pypi.python.org/pypi/Jinja2)
+ * [xmltodict](https://pypi.python.org/pypi/xmltodict)
+ * [project generator definitions](https://pypi.python.org/pypi/project_generator_definitions)
+
+%prep
+%autosetup -n project-generator-0.12.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-project-generator -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Thu May 18 2023 Python_Bot <Python_Bot@openeuler.org> - 0.12.0-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..f2276d3
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+9566ecda70bf253fcf6dd0574810202c project_generator-0.12.0.tar.gz