diff options
author | CoprDistGit <infra@openeuler.org> | 2023-04-10 10:26:32 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-04-10 10:26:32 +0000 |
commit | d6e97b5d80ad37a8765b602006dcf86544381140 (patch) | |
tree | ddfa104c6359b44821abdd58229b6d6116f5f599 | |
parent | f2c4bc8559857d02bb8b021c231ba8ef5ac4939c (diff) |
automatic import of python-jschema-to-python
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-jschema-to-python.spec | 75 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 77 insertions, 0 deletions
@@ -0,0 +1 @@ +/jschema_to_python-1.2.3.tar.gz diff --git a/python-jschema-to-python.spec b/python-jschema-to-python.spec new file mode 100644 index 0000000..e313f2b --- /dev/null +++ b/python-jschema-to-python.spec @@ -0,0 +1,75 @@ +%global _empty_manifest_terminate_build 0 +Name: python-jschema-to-python +Version: 1.2.3 +Release: 1 +Summary: Generate source code for Python classes from a JSON schema. +License: MIT +URL: https://github.com/microsoft/jschema-to-python +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/1d/7f/5ae3d97ddd86ec33323231d68453afd504041efcfd4f4dde993196606849/jschema_to_python-1.2.3.tar.gz +BuildArch: noarch + +Requires: python3-attrs +Requires: python3-jsonpickle +Requires: python3-pbr + +%description +Generate Python classes from a JSON schema. + +%package -n python3-jschema-to-python +Summary: Generate source code for Python classes from a JSON schema. +Provides: python-jschema-to-python +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-jschema-to-python +Generate Python classes from a JSON schema. + +%package help +Summary: Development documents and examples for jschema-to-python +Provides: python3-jschema-to-python-doc +%description help +Generate Python classes from a JSON schema. + +%prep +%autosetup -n jschema-to-python-1.2.3 + +%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-jschema-to-python -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 1.2.3-1 +- Package Spec generated @@ -0,0 +1 @@ +6f9e312084eafe0f33fcb0cf768ab25e jschema_to_python-1.2.3.tar.gz |