diff --git a/fastjsonschema-2.16.1.tar.gz b/fastjsonschema-2.16.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..9cd5b2563d3671e828a6f633d7c1c7e3a3677630 Binary files /dev/null and b/fastjsonschema-2.16.1.tar.gz differ diff --git a/python-fastjsonschema.spec b/python-fastjsonschema.spec new file mode 100644 index 0000000000000000000000000000000000000000..e14fe6640b0c7ed4076732349b6dc310fb5fd1d2 --- /dev/null +++ b/python-fastjsonschema.spec @@ -0,0 +1,78 @@ +%global _empty_manifest_terminate_build 0 +Name: python-fastjsonschema +Version: 2.16.1 +Release: 1 +Summary: Fastest Python implementation of JSON schema +License: BSD +URL: https://github.com/horejsek/python-fastjsonschema +Source0: https://files.pythonhosted.org/packages/2f/ca/b8cd48dde1f4f1811c7ffd49253af87c1cb6523d2aaa5402a83d9fecc197/fastjsonschema-2.16.1.tar.gz +BuildArch: noarch +%description + fastjsonschema implements validation of JSON documents by JSON schema. + +%package -n python3-fastjsonschema +Summary: Fastest Python implementation of JSON schema +Provides: python-fastjsonschema +# Base build requires +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pbr +BuildRequires: python3-pip +BuildRequires: python3-wheel +%description + fastjsonschema implements validation of JSON documents by JSON schema. + +%package help +Summary: Fastest Python implementation of JSON schema +Provides: python3-fastjsonschema-doc +%description + fastjsonschema implements validation of JSON documents by JSON schema. + +%prep +%autosetup -n fastjsonschema-%{version} + +%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 . + +%check +%{__python3} setup.py test + +%files -n python3-fastjsonschema -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Aug 02 2022 OpenStack_SIG - 2.16.1-1 +- Init package python3-fastjsonschema of version 2.16.1 +