%global pypi_name pyaml Name: python-%{pypi_name} Version: 21.10.1 Release: 1 Summary: PyYAML-based python module to produce pretty and readable YAML-serialized data License: WTFPL URL: https://github.com/clearlinux-pkgs/pyaml Source0: https://files.pythonhosted.org/packages/b6/f0/dbb524509ce28f5cfd4e1d9e3ef955f51186cfd1b8297f6e158778c4a8ef/%{pypi_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel Requires: python3-PyYAML %global _description \ Python module to produce formatted YAML-serialized data %description %{_description} %package -n python3-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} %description -n python3-%{pypi_name} %{_description} %prep %autosetup -n %{pypi_name}-%{version} -p1 %build %py3_build %install %py3_install %check %files -n python3-%{pypi_name} %license COPYING %doc README.rst %{python3_sitelib}/* %changelog * Thu Jul 7 2022 yaoxin - 21.10.1-1 - Update to 21.10.1 * Thu Nov 7 2019 caomeng - 19.4.1-1 - Init package