%global srcname marshmallow-oneofschema %global srcnamenu marshmallow_oneofschema Name: python-%{srcname} Version: 3.2.0 Release: 1%{?dist} Summary: An extension to marshmallow to support schema (de)multiplexing License: MIT URL: http://marshmallow.readthedocs.org/en/latest/ Source: https://github.com/marshmallow-code/marshmallow-oneofschema/archive/%{version}/marshmallow-oneofschema-%{version}.tar.gz BuildArch: noarch BuildRequires: %{py3_dist pytest} %global _description %{expand: This library adds a special kind of schema that actually multiplexes other schemas based on object type. When serializing values, it uses get_obj_type() method to get object type name. Then it uses type_schemas name-to-Schema mapping to get schema for that particular object type, serializes object using that schema and adds an extra field with name of object type. Deserialization is reverse.} %description %_description %package -n python3-%{srcname} Summary: %{summary} %description -n python3-%{srcname} %_description %prep %autosetup -n %{srcname}-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l %{srcnamenu} %files -n python3-%{srcname} -f %{pyproject_files} %doc CHANGELOG.rst %doc README.rst %license LICENSE %check %pytest %changelog * Tue Apr 21 2026 Andrii Verbytskyi - 3.2.0-1 - First version of 3.2.0 for Fedora