diff options
| author | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2023-02-24 10:45:41 +0000 |
|---|---|---|
| committer | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2023-02-24 10:45:41 +0000 |
| commit | 2d1fbfc85e4b16783ef15e24d476d3fab4cb9aff (patch) | |
| tree | 01cf4439a422230ac7a8550aadf0b0784eaf2977 | |
| parent | c3309ff3ae971f674b7eb06f0759794093d59f55 (diff) | |
automatic import of python3-fastjsonschemaopeneuler20.03
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-fastjsonschema.spec | 71 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 73 insertions, 0 deletions
@@ -0,0 +1 @@ +/fastjsonschema-2.16.2.tar.gz diff --git a/python-fastjsonschema.spec b/python-fastjsonschema.spec new file mode 100644 index 0000000..198a769 --- /dev/null +++ b/python-fastjsonschema.spec @@ -0,0 +1,71 @@ +%global _empty_manifest_terminate_build 0 +Name: python-fastjsonschema +Version: 2.16.2 +Release: 1 +Summary: Fastest Python implementation of JSON schema +License: BSD +URL: https://github.com/horejsek/python-fastjsonschema +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/7a/62/6df03bacda3544b5872d0b30f79c599ab84fc598858c77a77e1587d61ba3/fastjsonschema-2.16.2.tar.gz +BuildArch: noarch + + +%description + + +%package -n python3-fastjsonschema +Summary: Fastest Python implementation of JSON schema +Provides: python-fastjsonschema +BuildRequires: python3-devel +BuildRequires: python3-setuptools +%description -n python3-fastjsonschema + + +%package help +Summary: Development documents and examples for fastjsonschema +Provides: python3-fastjsonschema-doc +%description help + + +%prep +%autosetup -n fastjsonschema-2.16.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-fastjsonschema -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri Feb 24 2023 Python_Bot <Python_Bot@openeuler.org> - 2.16.2-1 +- Package Spec generated @@ -0,0 +1 @@ +d7d76db7518e64b53a13a7a2315a1671 fastjsonschema-2.16.2.tar.gz |
