|
|
@ -1,23 +1,30 @@
|
|
|
|
%global pypi_name ruamel.yaml
|
|
|
|
%global pypi_name ruamel.yaml
|
|
|
|
%global pname ruamel-yaml
|
|
|
|
%global pname ruamel-yaml
|
|
|
|
%global commit 44504659794e
|
|
|
|
%global commit af9628b0d0479c35a60efc44b8d6dff9dc95aed2
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-%{pname}
|
|
|
|
Name: python-%{pname}
|
|
|
|
Version: 0.16.6
|
|
|
|
Version: 0.15.100
|
|
|
|
Release: 7%{?dist}.1
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: YAML 1.2 loader/dumper package for Python
|
|
|
|
Summary: YAML 1.2 loader/dumper package for Python
|
|
|
|
|
|
|
|
|
|
|
|
License: MIT
|
|
|
|
License: MIT
|
|
|
|
URL: https://bitbucket.org/ruamel/yaml
|
|
|
|
URL: https://sourceforge.net/projects/ruamel-yaml/
|
|
|
|
|
|
|
|
#Source0: https://files.pythonhosted.org/packages/source/r/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
|
|
|
|
# Use bitbucket sources so we can run the tests
|
|
|
|
# Use bitbucket sources so we can run the tests
|
|
|
|
Source0: https://bitbucket.org/ruamel/yaml/get/%{version}.tar.gz#/%{pname}-%{version}.tar.gz
|
|
|
|
#Source0: https://bitbucket.org/ruamel/yaml/get/%{version}.tar.gz#/%{pname}-%{version}.tar.gz
|
|
|
|
|
|
|
|
# moved to sourceforge
|
|
|
|
|
|
|
|
Source0: https://sourceforge.net/code-snapshots/hg/r/ru/%{pname}/code/%{pname}-code-%{commit}.zip
|
|
|
|
|
|
|
|
Source1: bz-1951852-test.py
|
|
|
|
|
|
|
|
|
|
|
|
# Works with pytest 2.7
|
|
|
|
# Works with pytest 2.7
|
|
|
|
Patch0: python-ruamel-yaml-pytest27.patch
|
|
|
|
Patch0: python-ruamel-yaml-pytest27.patch
|
|
|
|
|
|
|
|
|
|
|
|
# Don't require ruamel.std.pathlib, but use stdlib's pathlib on py3, pathlib2 on py2
|
|
|
|
# Don't require ruamel.std.pathlib, but use stdlib's pathlib on py3, pathlib2 on py2
|
|
|
|
Patch1: python-ruamel-yaml-pathlib.patch
|
|
|
|
Patch1: python-ruamel-yaml-pathlib.patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
|
|
|
BuildRequires: libyaml-devel
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
ruamel.yaml is a YAML 1.2 loader/dumper package for Python.
|
|
|
|
ruamel.yaml is a YAML 1.2 loader/dumper package for Python.
|
|
|
@ -35,7 +42,6 @@ BuildRequires: python%{python3_pkgversion}-typing
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}}
|
|
|
|
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}}
|
|
|
|
|
|
|
|
|
|
|
|
Requires: python%{python3_pkgversion}-ruamel-yaml-clib
|
|
|
|
|
|
|
|
Requires: python%{python3_pkgversion}-setuptools
|
|
|
|
Requires: python%{python3_pkgversion}-setuptools
|
|
|
|
%if %{python3_pkgversion} == 34
|
|
|
|
%if %{python3_pkgversion} == 34
|
|
|
|
Requires: python%{python3_pkgversion}-typing
|
|
|
|
Requires: python%{python3_pkgversion}-typing
|
|
|
@ -46,7 +52,7 @@ ruamel.yaml is a YAML 1.2 loader/dumper package for Python.
|
|
|
|
It is a derivative of Kirill Simonov’s PyYAML 3.11
|
|
|
|
It is a derivative of Kirill Simonov’s PyYAML 3.11
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%autosetup -n %{pname}-%{commit} -p1
|
|
|
|
%autosetup -n %{pname}-code-%{commit} -p1
|
|
|
|
rm -rf %{pypi_name}.egg-info
|
|
|
|
rm -rf %{pypi_name}.egg-info
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
@ -56,59 +62,30 @@ rm -rf %{pypi_name}.egg-info
|
|
|
|
%{__python3} setup.py install --single-version-externally-managed --skip-build --root $RPM_BUILD_ROOT
|
|
|
|
%{__python3} setup.py install --single-version-externally-managed --skip-build --root $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
PYTHONPATH=$(echo build/lib) py.test-%{python3_version} _test/test_*.py
|
|
|
|
PYTHONPATH=$(echo build/lib.*%{python3_version}) py.test-%{python3_version} _test/test_*.py
|
|
|
|
|
|
|
|
PYTHONPATH=$(echo build/lib.*%{python3_version}) %{__python3} %{SOURCE1}
|
|
|
|
|
|
|
|
|
|
|
|
%files -n python%{python3_pkgversion}-%{pname}
|
|
|
|
%files -n python%{python3_pkgversion}-%{pname}
|
|
|
|
%license LICENSE
|
|
|
|
%license LICENSE
|
|
|
|
%doc README.rst
|
|
|
|
%doc README.rst
|
|
|
|
%{python3_sitelib}/ruamel
|
|
|
|
%{python3_sitearch}/ruamel
|
|
|
|
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}-*.pth
|
|
|
|
%{python3_sitearch}/_ruamel_yaml.cpython-*
|
|
|
|
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
|
|
|
|
%{python3_sitearch}/%{pypi_name}-%{version}-py?.?-*.pth
|
|
|
|
|
|
|
|
%{python3_sitearch}/%{pypi_name}-%{version}-py?.?.egg-info
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Thu Sep 30 2021 Akira TAGOH <tagoh@redhat.com> - 0.16.6-7.1
|
|
|
|
* Mon Dec 11 2023 Arkady L. Shane <tigro@msvsphere-os.ru> - 0.15.100-1
|
|
|
|
- Add CI test.
|
|
|
|
- Rebuilt for MSVSphere 8.9
|
|
|
|
Resolves: rhbz#2009152
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 0.16.6-7
|
|
|
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.16.6-6
|
|
|
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.16.6-5
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.16.6-4
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.16.6-3
|
|
|
|
|
|
|
|
- Rebuilt for Python 3.9
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.16.6-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jan 20 2020 Jason Montleon <jmontleo@redhat.com> - 0.16.6-1
|
|
|
|
|
|
|
|
- Update to 0.16.6
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.16.5-3
|
|
|
|
|
|
|
|
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Aug 30 2019 Chandan Kumar <raukadah@gmail.com> - 0.16.5-2
|
|
|
|
|
|
|
|
- Added ruamel-yaml-clib as Requires
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Aug 27 2019 Chedi Toueiti <chedi.toueiti@gmail.com> - 0.16.5-1
|
|
|
|
|
|
|
|
- Update to 0.16.5
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.15.41-6
|
|
|
|
* Tue Apr 20 2021 Rich Megginson <rmeggins@redhat.com> - 0.15.100-1
|
|
|
|
- Rebuilt for Python 3.8
|
|
|
|
- Resolves: rhbz#1951852
|
|
|
|
|
|
|
|
error converting lists with embedded comments
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.41-5
|
|
|
|
* Mon Nov 23 2020 Pavel Cahyna <pcahyna@redhat.com> - 0.15.41-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
- Rebuild after adding to RHEL buildrood and configuring CI gating
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.41-4
|
|
|
|
* Wed Mar 06 2019 Lon Hohberger <lon@redhat.com> - 0.15.41-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
- Rebuild for new architectures
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jan 14 2019 Miro Hrončok <mhroncok@redhat.com> - 0.15.41-3
|
|
|
|
* Mon Jan 14 2019 Miro Hrončok <mhroncok@redhat.com> - 0.15.41-3
|
|
|
|
- Subpackage python2-ruamel-yaml has been removed
|
|
|
|
- Subpackage python2-ruamel-yaml has been removed
|
|
|
|