diff --git a/python-jsonschema.spec b/python-jsonschema.spec index 69729f29482ae29fa5d0ebf7847a1d4150db23c7..1f5e64ca9f0e9572ab5b68fac2723faa7477126f 100644 --- a/python-jsonschema.spec +++ b/python-jsonschema.spec @@ -1,9 +1,10 @@ +%define anolis_release .0.1 # Created by pyp2rpm-0.4.2 %global pypi_name jsonschema Name: python-%{pypi_name} Version: 2.6.0 -Release: 4%{?dist} +Release: 4%{anolis_release}%{?dist} Summary: An implementation of JSON Schema validation for Python License: MIT @@ -24,6 +25,13 @@ Patch1: test-sys-executable.patch jsonschema is JSON Schema validator currently based on http://tools.ietf.org/html/draft-zyp-json-schema-03 +%package -n python%{python3_pkgversion}-%{pypi_name}-doc +Summary: Documents for python%{python3_pkgversion}-%{pypi_name} +Requires: python%{python3_pkgversion}-%{pypi_name} = %{?epoch:%{epoch}:}%{version}-%{release} + +%description -n python%{python3_pkgversion}-%{pypi_name}-doc +Doc pages for python%{python3_pkgversion}-%{pypi_name} + %package -n python%{python3_pkgversion}-%{pypi_name} Summary: An implementation of JSON Schema validation for Python %{python3_version} %{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}} @@ -50,13 +58,17 @@ mv %{buildroot}%{_bindir}/jsonschema %{buildroot}%{_bindir}/jsonschema-3 %files -n python%{python3_pkgversion}-%{pypi_name} %license COPYING -%doc README.rst %{_bindir}/jsonschema-3 %{python3_sitelib}/%{pypi_name}/ %{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info +%files -n python%{python3_pkgversion}-%{pypi_name}-doc +%doc README.rst %changelog +* Wed Jul 20 2022 mgb01105731 - 2.6.0-4.0.1 +- Add doc sub package + * Wed May 30 2018 Petr Viktorin - 2.6.0-4 - Drop the Python2 subpackage https://bugzilla.redhat.com/show_bug.cgi?id=1584189