2020-03-02 11:14:42 +08:00
|
|
|
|
%global pypi_name ruamel.yaml
|
|
|
|
|
|
%global pname ruamel-yaml
|
|
|
|
|
|
%global commit ff02b83b8f91
|
|
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-%{pname}
|
|
|
|
|
|
Version: 0.16.5
|
2022-03-29 19:57:04 +08:00
|
|
|
|
Release: 2
|
2020-03-02 11:14:42 +08:00
|
|
|
|
Summary: YAML 1.2 loader/dumper package for Python
|
|
|
|
|
|
License: MIT
|
|
|
|
|
|
URL: https://bitbucket.org/ruamel/yaml
|
|
|
|
|
|
Source0: https://bitbucket.org/ruamel/yaml/get/%{version}.tar.gz#/%{pname}-%{version}.tar.gz
|
|
|
|
|
|
|
2022-03-29 19:57:04 +08:00
|
|
|
|
Patch0001: python-ruamel-yaml-pathlib.patch
|
|
|
|
|
|
Patch0002: Fix-testcase-error-due-to-distutils-package-is-deprecated.patch
|
2020-03-02 11:14:42 +08:00
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
|
ruamel.yaml is a YAML 1.2 loader/dumper package for Python.
|
|
|
|
|
|
It is a derivative of Kirill Simonov’s PyYAML 3.11
|
|
|
|
|
|
|
|
|
|
|
|
%package -n python3-%{pname}
|
|
|
|
|
|
Summary: YAML 1.2 loader/dumper package for Python
|
|
|
|
|
|
BuildRequires: python3-devel, python3-setuptools, python3-pytest
|
|
|
|
|
|
BuildRequires: python3-ruamel-yaml-clib
|
|
|
|
|
|
%{?python_provide:%python_provide python3-%{pypi_name}}
|
|
|
|
|
|
Requires: python3-ruamel-yaml-clib, python3-setuptools
|
|
|
|
|
|
|
|
|
|
|
|
%description -n python3-%{pname}
|
|
|
|
|
|
ruamel.yaml is a YAML 1.2 loader/dumper package for Python.
|
|
|
|
|
|
It is a derivative of Kirill Simonov’s PyYAML 3.11
|
|
|
|
|
|
|
|
|
|
|
|
%package_help
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
|
%autosetup -n %{pname}-%{commit} -p1
|
|
|
|
|
|
rm -rf %{pypi_name}.egg-info
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
%py3_build
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
|
%{__python3} setup.py install --single-version-externally-managed --skip-build --root $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
|
PYTHONPATH=$(echo build/lib) py.test-%{python3_version} _test/test_*.py
|
|
|
|
|
|
|
|
|
|
|
|
%files -n python3-%{pname}
|
|
|
|
|
|
%license LICENSE
|
|
|
|
|
|
%{python3_sitelib}/ruamel
|
2022-03-29 19:57:04 +08:00
|
|
|
|
%{python3_sitelib}/%{pypi_name}-%{version}-py*.pth
|
|
|
|
|
|
%{python3_sitelib}/%{pypi_name}-%{version}-py*.egg-info
|
2020-03-02 11:14:42 +08:00
|
|
|
|
|
|
|
|
|
|
%files help
|
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
|
%doc README.rst
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2022-03-29 19:57:04 +08:00
|
|
|
|
*Tue Mar 29 2022 xu_ping <xuping33@huawei.com> - 0.16.5-2
|
|
|
|
|
|
- Fix testcase test_anchor and test_deprecation error
|
|
|
|
|
|
|
2020-03-02 11:14:42 +08:00
|
|
|
|
* Mon Mar 2 2020 openEuler Buildteam <buildteam@openeuler.org> - 0.16.5-1
|
|
|
|
|
|
- Package init
|