%global srcname py-serializable %global _description %{expand: Library for serializing and deserializing Python Objects to and from JSON and XML.} # RHEL9 doesn't have nose, and it won't be added to EPEL9 because it's # abandoned upstream (and deprecated in Fedora). # https://bugzilla.redhat.com/show_bug.cgi?id=2041068 %bcond_with tests Name: python-%{srcname} Version: 2.1.0 Release: 1%{?dist} Summary: Library for serializing and deserializing Python Objects to and from JSON and XML. License: Apache License 2.0 URL: https://github.com/madpah/serializable Source0: %{ur}/archive/refs/tags/v%{version}.tar.gz#/py_serializable-%{version}.tar.gz BuildArch: noarch %description %{_description} %package -n python3-%{srcname} Summary: %{summary} BuildRequires: python3-devel %description -n python3-%{srcname} %{_description} %prep %autosetup -p1 -n py_serializable-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files py_serializable PYTHONPATH="%{buildroot}/%{python3_sitelib}" %check %files -n python3-%{srcname} -f %{pyproject_files} %doc README.md LICENSE %changelog * Tue May 19 2026 Arkady L. Shane - 2.1.0-1 - Initial build