%global pypi_name pyaml Name: python-%{pypi_name} Version: 19.4.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/bf/0c/bf62f049446da78498eb607bc8cbb0604cf1e8d618f2f733e538dcb6e0bc/%{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} %build %py3_build %install %py3_install %check %files -n python3-%{pypi_name} %license COPYING %doc README.rst %{python3_sitelib}/* %changelog * Thu Nov 7 2019 caomeng - 19.4.1-1 - Init package