python-ruamel-yaml-clib/python-ruamel-yaml-clib.spec
cherry530 6a5d222dd8 Fix need Lvalue for increment and decrement operand
Signed-off-by: cherry530 <xuping33@huawei.com>
2022-03-28 10:21:01 +08:00

53 lines
1.4 KiB
RPMSpec

%global pypi_name ruamel.yaml.clib
%global pname ruamel-yaml-clib
Name: python-%{pname}
Version: 0.1.2
Release: 2
Summary: C version of reader, parser and emitter for ruamel.yaml derived from libyaml
License: MIT
URL: https://bitbucket.org/ruamel/yaml.clib
Source0: %{pypi_source}
#https://github.com/ruamel/yaml.clib/commit/4777d4333f17c16f40
Patch0: Fix-Need-lvalue-for-increment-and-decrement-operand.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
%description -n python3-%{pname}
It is the C based reader/scanner and emitter for ruamel.yaml.
%package_help
%prep
%autosetup -n %{pypi_name}-%{version} -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*.egg-info
%files help
%defattr(-,root,root)
%doc README.rst
%changelog
* Mon Mar 28 2022 xu_ping <xuping33@huawei.com> - 0.1.2-2
- Fix need Lvalue for increment and decrement operand
* Mon Mar 2 2020 openEuler Buildteam <buildteam@openeuler.org> - 0.1.2-1
- Package init