diff options
author | CoprDistGit <infra@openeuler.org> | 2023-04-10 10:35:02 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-04-10 10:35:02 +0000 |
commit | c7951e279be11ab3ac29921b074958c2e5cf446b (patch) | |
tree | 4994b2ea1c52727c985e74e30247afa4a21a79b5 | |
parent | 4703a155fc6989eca6620fb169354d05783fe36f (diff) |
automatic import of python-hologram
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-hologram.spec | 90 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 92 insertions, 0 deletions
@@ -0,0 +1 @@ +/hologram-0.0.16.tar.gz diff --git a/python-hologram.spec b/python-hologram.spec new file mode 100644 index 0000000..ad7fadd --- /dev/null +++ b/python-hologram.spec @@ -0,0 +1,90 @@ +%global _empty_manifest_terminate_build 0 +Name: python-hologram +Version: 0.0.16 +Release: 1 +Summary: JSON schema generation from dataclasses +License: MIT +URL: https://github.com/fishtown-analytics/hologram +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/9f/0c/273e0dfadb033789faac3393cb52fb8dbf367b7f687443d0266f82923e60/hologram-0.0.16.tar.gz +BuildArch: noarch + +Requires: python3-dateutil +Requires: python3-jsonschema +Requires: python3-dataclasses + +%description +# Hologram + +Hologram is a lightweight library to generate Draft 7 compatible JSON Schemas from python 3.7 dataclasses. Python 3.6 is supported through the [dataclasses backport](https://github.com/ericvsmith/dataclasses). It is forked from [dataclasses-jsonschema](https://github.com/s-knibbs/dataclasses-jsonschema) created by [s-knibbs](https://github.com/s-knibbs). + + + + +%package -n python3-hologram +Summary: JSON schema generation from dataclasses +Provides: python-hologram +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-hologram +# Hologram + +Hologram is a lightweight library to generate Draft 7 compatible JSON Schemas from python 3.7 dataclasses. Python 3.6 is supported through the [dataclasses backport](https://github.com/ericvsmith/dataclasses). It is forked from [dataclasses-jsonschema](https://github.com/s-knibbs/dataclasses-jsonschema) created by [s-knibbs](https://github.com/s-knibbs). + + + + +%package help +Summary: Development documents and examples for hologram +Provides: python3-hologram-doc +%description help +# Hologram + +Hologram is a lightweight library to generate Draft 7 compatible JSON Schemas from python 3.7 dataclasses. Python 3.6 is supported through the [dataclasses backport](https://github.com/ericvsmith/dataclasses). It is forked from [dataclasses-jsonschema](https://github.com/s-knibbs/dataclasses-jsonschema) created by [s-knibbs](https://github.com/s-knibbs). + + + + +%prep +%autosetup -n hologram-0.0.16 + +%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-hologram -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.0.16-1 +- Package Spec generated @@ -0,0 +1 @@ +c05dd950008f473b1b703a50bf309e0e hologram-0.0.16.tar.gz |