diff --git a/openapi-schema-validator-0.1.5.tar.gz b/openapi-schema-validator-0.1.5.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..f4504aef72379282af3e71823e18026b08cfa5ba Binary files /dev/null and b/openapi-schema-validator-0.1.5.tar.gz differ diff --git a/openapi-schema-validator.spec b/openapi-schema-validator.spec new file mode 100644 index 0000000000000000000000000000000000000000..4a841d5c1b29b7f61d14451a9170f1ab45d1f46f --- /dev/null +++ b/openapi-schema-validator.spec @@ -0,0 +1,74 @@ +%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 - 0.1.5-1 +- Package Spec generated diff --git a/openapi-schema-validator.yaml b/openapi-schema-validator.yaml new file mode 100644 index 0000000000000000000000000000000000000000..c4a8205f2547c3964a855fc5a99ad9fe08b15d54 --- /dev/null +++ b/openapi-schema-validator.yaml @@ -0,0 +1,4 @@ +version_control: pypi +src_repo: openapi-schema-validator +tag_prefix: "^v" +separator: "."