Name: python-gelidum Version: 0.5.3 Release: 1%{?dist} Summary: Freeze your objects in python. License: MIT URL: https://github.com/diegojromerolopez/gelidum Source0: %{url}/archive/v%{version}/gelidum-%{version}.tar.gz Patch0: %{url}/pull/17.patch BuildArch: noarch BuildRequires: python3-devel %global _description %{expand: Inspired by the method freeze found in other languages like Javascript, this package tries to make immutable objects to make it easier avoiding accidental modifications in your code.} %description %_description %package -n python3-gelidum Summary: %{summary} %description -n python3-gelidum %_description %prep %autosetup -p1 -n gelidum-%{version} %generate_buildrequires # The build/test/runtime BuildRequires are generated from upstream metadata %pyproject_buildrequires %build # The macro supports setup.py-based and pyproject.toml-based build %pyproject_wheel %install # The macro supports setup.py-based and pyproject.toml-based build %pyproject_install rm ${RPM_BUILD_ROOT}/usr/version.txt rm ${RPM_BUILD_ROOT}/usr/requirements.txt # Library and metadata files can be saved automatically %pyproject_save_files gelidum %check # %%tox # for projects without tox, %%pytest is preferred python3 -m unittest discover -s ./gelidum/tests # For python3-pello, %%{pyproject_files} handles code files, but # executables, documentation and license must be listed in the spec file: %files -n python3-gelidum -f %{pyproject_files} %doc README.md %license LICENSE