%define name PyYAML %define version 6.0.1 %define unmangled_name PyYAML %define unmangled_version 6.0.1 %define release 1 Summary: YAML parser and emitter for Python Name: %{name} Version: %{version} Release: %{release} Source0: %{unmangled_name}-%{unmangled_version}.tar.gz License: MIT Group: Development/Libraries BuildRoot: %{_tmppath}/%{unmangled_name}-release-%{version}-%{release}-buildroot Prefix: %{_prefix} Vendor: Kirill Simonov Url: http://pyyaml.org/wiki/PyYAML BuildRequires: gcc, libyaml-devel, python3-setuptools, python3-devel %description Python-yaml is a complete YAML 1.1 parser and emitter for Python. It can parse all examples from the specification. The parsing algorithm is simple enough to be a reference for YAML parser implementors. A simple extension API is also provided. The package is built using libyaml for improved speed. %package -n python3-pyyaml Summary: YAML parser and emitter for Python %description -n python3-pyyaml Python-yaml is a complete YAML 1.1 parser and emitter for Python. It can parse all examples from the specification. The parsing algorithm is simple enough to be a reference for YAML parser implementors. A simple extension API is also provided. The package is built using libyaml for improved speed. %global debug_package %{nil} %prep %autosetup -n %{unmangled_name}-%{unmangled_version} %build %py3_build %install %py3_install rm -rf %{buildroot}/usr/lib/python*/site-packages/*.egg-info/requires.txt rm -rf %{buildroot}/usr/share/doc/%{name}/ %clean rm -rf %{buildroot} %files -n python3-pyyaml %license LICENSE %doc CHANGES README.md %{_libdir}/python3*/site-packages/_yaml/ %{_libdir}/python3*/site-packages/yaml/ %{_libdir}/python3*/site-packages/PyYAML*.egg-info %changelog * Tue Jul 18 2023 log2timeline development team 6.0.1-1 - Auto-generated