python-ruamel-yaml/python-ruamel-yaml.spec

101 lines
3.5 KiB
RPMSpec
Raw Permalink Normal View History

2022-06-07 03:35:33 +00:00
%global _empty_manifest_terminate_build 0
Name: python-ruamel-yaml
2024-03-15 14:14:51 +08:00
Version: 0.18.6
2022-05-20 10:17:46 +08:00
Release: 1
2022-06-07 03:35:33 +00:00
Summary: ruamel.yaml is a YAML parser/emitter that supports roundtrip preservation of comments, seq/map flow style, and map key order
2020-03-02 11:14:42 +08:00
License: MIT
2022-06-07 03:35:33 +00:00
URL: https://sourceforge.net/p/ruamel-yaml/code/ci/default/tree
2024-03-15 14:14:51 +08:00
Source0: https://files.pythonhosted.org/packages/29/81/4dfc17eb6ebb1aac314a3eb863c1325b907863a1b8b1382cdffcb6ac0ed9/ruamel.yaml-0.18.6.tar.gz
2022-06-07 03:35:33 +00:00
BuildArch: noarch
2022-05-20 10:17:46 +08:00
Patch0001: 0000-fix-big-endian-issues.patch
2020-03-02 11:14:42 +08:00
%description
2022-06-07 03:35:33 +00:00
ruamel.yaml ruamel.yaml is a YAML 1.2 loader/dumper package for Python.
2020-03-02 11:14:42 +08:00
2022-06-07 03:35:33 +00:00
%package -n python3-ruamel-yaml
Summary: ruamel.yaml is a YAML parser/emitter that supports roundtrip preservation of comments, seq/map flow style, and map key order
2024-03-15 14:14:51 +08:00
Provides: python-ruamel-yaml = %{version}-%{release}
2022-06-07 03:35:33 +00:00
# Base build requires
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pytest
BuildRequires: python3-pbr
BuildRequires: python3-pip
BuildRequires: python3-wheel
2020-03-02 11:14:42 +08:00
BuildRequires: python3-ruamel-yaml-clib
2022-06-07 03:35:33 +00:00
%description -n python3-ruamel-yaml
ruamel.yaml ruamel.yaml is a YAML 1.2 loader/dumper package for Python.
2020-03-02 11:14:42 +08:00
2022-06-07 03:35:33 +00:00
%package help
Summary: ruamel.yaml is a YAML parser/emitter that supports roundtrip preservation of comments, seq/map flow style, and map key order
Provides: python3-ruamel-yaml-doc
%description help
ruamel.yaml ruamel.yaml is a YAML 1.2 loader/dumper package for Python.
2020-03-02 11:14:42 +08:00
%prep
2022-06-07 03:35:33 +00:00
%autosetup -n ruamel.yaml-%{version} -p1
2020-03-02 11:14:42 +08:00
%build
%py3_build
%install
2022-06-07 03:35:33 +00:00
export RUAMEL_NO_PIP_INSTALL_CHECK=1
%py3_install
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
pushd %{buildroot}
if [ -d usr/lib ]; then
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/lib64 ]; then
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/bin ]; then
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/sbin ]; then
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
fi
touch doclist.lst
if [ -d usr/share/man ]; then
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
fi
popd
mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .
2020-03-02 11:14:42 +08:00
2022-05-20 10:17:46 +08:00
##Tests are not included in the upstream tarball
#%check
#PYTHONPATH=$(echo build/lib) py.test-%{python3_version} _test/test_*.py
2020-03-02 11:14:42 +08:00
2022-06-07 03:35:33 +00:00
%files -n python3-ruamel-yaml -f filelist.lst
%dir %{python3_sitelib}/*
2020-03-02 11:14:42 +08:00
%files help
%defattr(-,root,root)
2024-03-15 14:14:51 +08:00
%doc README.md CHANGES
2020-03-02 11:14:42 +08:00
%changelog
2024-03-15 14:14:51 +08:00
* Fri Mar 15 2024 jiangxinyu <jiangxinyu@kylinos.cn> - 0.18.6-1
- Update package to version 0.18.6
- Fix issue with multiple document intermixing YAML 1.2 and YAML 1.1, the VersionedResolver now resets
2023-07-07 08:15:03 +08:00
* Fri Jul 14 2023 chenzixuan <chenzixuan@kylinos.cn> - 0.17.32-1
- Upgrade python3-ruamel-yaml to version 0.17.32
2022-06-07 03:35:33 +00:00
* Sat Jun 04 2022 OpenStack_SIG <openstack@openeuler.org> - 0.17.21-1
- Upgrade python3-ruamel-yaml to version 0.17.21
2022-05-20 10:17:46 +08:00
* Fri May 20 2022 yaoxin <yaoxin30@h-partners.com> - 0.17.20-1
- Update to 0.17.20
*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