75 lines
2.3 KiB
RPMSpec
75 lines
2.3 KiB
RPMSpec
|
|
%global _empty_manifest_terminate_build 0
|
||
|
|
Name: openapi-schema-validator
|
||
|
|
Version: 0.1.5
|
||
|
|
Release: 1
|
||
|
|
Summary: OpenAPI schema validation for Python
|
||
|
|
License: BSD
|
||
|
|
URL: https://github.com/p1c2u/openapi-schema-validator
|
||
|
|
Source0: https://files.pythonhosted.org/packages/8c/44/0065b0e102810356c54e01d8bd56542d5d02acd27060d81b2e372fd0888c/openapi-schema-validator-0.1.5.tar.gz
|
||
|
|
BuildArch: noarch
|
||
|
|
|
||
|
|
BuildRequires: python3-devel python3-setuptools python3-isodate python3-jsonschema
|
||
|
|
BuildRequires: python3-strict-rfc3339 python3-rfc3339-validator
|
||
|
|
|
||
|
|
%description
|
||
|
|
Openapi-schema-validator is a Python library that validates schema against the OpenAPI
|
||
|
|
Schema Specification v3.0 which is an extended subset of the JSON Schema Specification
|
||
|
|
Wright Draft 00.
|
||
|
|
|
||
|
|
%package -n python3-openapi-schema-validator
|
||
|
|
Summary: OpenAPI schema validation for Python
|
||
|
|
Provides: python-openapi-schema-validator
|
||
|
|
%description -n python3-openapi-schema-validator
|
||
|
|
OpenAPI schema validation for Python
|
||
|
|
|
||
|
|
%package help
|
||
|
|
Summary: Development documents and examples for openapi-schema-validator
|
||
|
|
Provides: python3-openapi-schema-validator-doc
|
||
|
|
%description help
|
||
|
|
Development documents and examples for openapi-schema-validator
|
||
|
|
|
||
|
|
|
||
|
|
%prep
|
||
|
|
%autosetup -n openapi-schema-validator-0.1.5
|
||
|
|
|
||
|
|
%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-openapi-schema-validator -f filelist.lst
|
||
|
|
%dir %{python3_sitelib}/*
|
||
|
|
|
||
|
|
%files help -f doclist.lst
|
||
|
|
%{_docdir}/*
|
||
|
|
|
||
|
|
%changelog
|
||
|
|
* Tue Aug 31 2021 Python_Bot <Python_Bot@openeuler.org> - 0.1.5-1
|
||
|
|
- Package Spec generated
|