%global _docdir_fmt python-marshmallow Name: python-marshmallow Version: 3.5.1 Release: 4 Summary: Python library for converting complex datatypes to and from primitive types License: MIT URL: http://marshmallow.readthedocs.org/ Source0: https://github.com/marshmallow-code/marshmallow/archive/%{version}/marshmallow-%{version}.tar.gz Patch0000: ordered_set.patch Patch0001: versionwarning-disable.patch BuildArch: noarch %description arshmallow is a framework-agnostic library for converting complex datatypes, such as objects, to and from primitive Python datatypes. %package help Summary: Documentation for python-marshmallow Provides: python3-marshmallow-doc = %{version} Obsoletes: python3-marshmallow-doc < 2.8.0-1 BuildRequires: python3-sphinx %description help Documentation for python-marshmallow. %package -n python3-marshmallow Summary: %{summary} %{?python_provide:%python_provide python3-marshmallow} BuildRequires: python3-devel python3-setuptools python3-pytest python3-pytz BuildRequires: python3-ordered-set python3-dateutil python3-simplejson Requires: python3-ordered-set Recommends: python3-dateutil python3-simplejson %description -n python3-marshmallow Python 3 version. %prep %autosetup -n marshmallow-%{version} -p1 rm -f ./marshmallow/orderedset.py sed -i -e "/sphinx_issues/d" docs/conf.py sed -i -e "/donate_url/d" docs/conf.py %build %{?with_python3:%py3_build} sphinx-build -b html docs html %install %{?with_python3:%py3_install} rm -rf html/{.buildinfo,.doctrees} %check %{?with_pythoN3:py.test-%{python3_version} -v} %files help %license LICENSE %doc html examples %files -n python3-marshmallow %license LICENSE %doc CHANGELOG.rst README.rst %{python3_sitelib}/marshmallow/ %{python3_sitelib}/marshmallow-*.egg-info/ %changelog * Mon Jun 22 2020 huanghaitao - 3.5.1-4 - package init