%global pypi_name ruamel.yaml.clib %global pname ruamel-yaml-clib %global hash 85e484db2b7c37107e4edd2ae6fc380877bbc08e Name: python-%{pname} Version: 0.2.6 Release: 1 Summary: C version of reader, parser and emitter for ruamel.yaml derived from libyaml License: MIT URL: https://bitbucket.org/ruamel/yaml.clib Source0: https://sourceforge.net/code-snapshots/hg/r/ru/ruamel-yaml-clib/code/ruamel-yaml-clib-code-%{hash}.zip Patch0: fix-typecasts-s390x.patch BuildRequires: gcc libyaml-devel python3-devel python3-setuptools %description It is the C based reader/scanner and emitter for ruamel.yaml. %package -n python3-%{pname} Summary: %{summary} Requires: python3-setuptools python3-ruamel-yaml %description -n python3-%{pname} It is the C based reader/scanner and emitter for ruamel.yaml. %package_help %prep %autosetup -n %{pname}-code-%{hash} -p1 %build %py3_build %install %{__python3} setup.py install --single-version-externally-managed --skip-build --root $RPM_BUILD_ROOT %files -n python3-%{pname} %license LICENSE %{python3_sitearch}/_ruamel_yaml.cpython-* %{python3_sitearch}/%{pypi_name}-%{version}-py%{python3_version}.egg-info %files help %defattr(-,root,root) %doc README.rst %changelog * Tue Oct 25 2022 xu_ping - 0.2.6-1 - Update to 0.2.6 * Mon Mar 2 2020 openEuler Buildteam - 0.1.2-1 - Package init