|
|
|
@ -1,81 +1,158 @@
|
|
|
|
|
%global pypi_name ruamel.yaml
|
|
|
|
|
%global pname ruamel-yaml
|
|
|
|
|
%global commit 44504659794e
|
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
|
|
|
|
|
Name: python-%{pname}
|
|
|
|
|
Version: 0.16.6
|
|
|
|
|
Release: 7%{?dist}.1
|
|
|
|
|
# Breaks the circular dependency with ruamel.yaml.clib.
|
|
|
|
|
%bcond_with bootstrap
|
|
|
|
|
|
|
|
|
|
%global commit eb3ecf31085135283908fc8449befebbc1fff4b3
|
|
|
|
|
|
|
|
|
|
Name: python-ruamel-yaml
|
|
|
|
|
Version: 0.18.5
|
|
|
|
|
Release: 4%{?dist}
|
|
|
|
|
Summary: YAML 1.2 loader/dumper package for Python
|
|
|
|
|
|
|
|
|
|
# SPDX
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: https://bitbucket.org/ruamel/yaml
|
|
|
|
|
# Use bitbucket sources so we can run the tests
|
|
|
|
|
Source0: https://bitbucket.org/ruamel/yaml/get/%{version}.tar.gz#/%{pname}-%{version}.tar.gz
|
|
|
|
|
# Works with pytest 2.7
|
|
|
|
|
Patch0: python-ruamel-yaml-pytest27.patch
|
|
|
|
|
URL: https://sourceforge.net/projects/ruamel-yaml
|
|
|
|
|
# The PyPI sdist does not contain tests, so we use a snapshot from SourceForge
|
|
|
|
|
Source: https://sourceforge.net/code-snapshots/hg/r/ru/ruamel-yaml/code/ruamel-yaml-code-%{commit}.zip
|
|
|
|
|
|
|
|
|
|
# Don't require ruamel.std.pathlib, but use stdlib's pathlib on py3, pathlib2 on py2
|
|
|
|
|
Patch1: python-ruamel-yaml-pathlib.patch
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%global _description %{expand:
|
|
|
|
|
ruamel.yaml is a YAML parser/emitter that supports roundtrip preservation of
|
|
|
|
|
comments, seq/map flow style, and map key order.}
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
ruamel.yaml is a YAML 1.2 loader/dumper package for Python.
|
|
|
|
|
It is a derivative of Kirill Simonov’s PyYAML 3.11
|
|
|
|
|
%description %{_description}
|
|
|
|
|
|
|
|
|
|
%package -n python%{python3_pkgversion}-%{pname}
|
|
|
|
|
%package -n python3-ruamel-yaml
|
|
|
|
|
Summary: YAML 1.2 loader/dumper package for Python
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-setuptools
|
|
|
|
|
# For tests
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-pytest
|
|
|
|
|
# typing was added in Python 3.5
|
|
|
|
|
%if %{python3_pkgversion} == 34
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-typing
|
|
|
|
|
%endif
|
|
|
|
|
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}}
|
|
|
|
|
|
|
|
|
|
Requires: python%{python3_pkgversion}-ruamel-yaml-clib
|
|
|
|
|
Requires: python%{python3_pkgversion}-setuptools
|
|
|
|
|
%if %{python3_pkgversion} == 34
|
|
|
|
|
Requires: python%{python3_pkgversion}-typing
|
|
|
|
|
%endif
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: python3-pytest
|
|
|
|
|
|
|
|
|
|
%description -n python%{python3_pkgversion}-%{pname}
|
|
|
|
|
ruamel.yaml is a YAML 1.2 loader/dumper package for Python.
|
|
|
|
|
It is a derivative of Kirill Simonov’s PyYAML 3.11
|
|
|
|
|
%py_provides python3-ruamel.yaml
|
|
|
|
|
|
|
|
|
|
%description -n python3-ruamel-yaml %{_description}
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{pname}-%{commit} -p1
|
|
|
|
|
rm -rf %{pypi_name}.egg-info
|
|
|
|
|
%autosetup -n ruamel-yaml-code-%{commit}
|
|
|
|
|
# Upstream upper-bounds the Python interpeter versions with which the C
|
|
|
|
|
# implementation (ruamel.yaml.clib dependency) may be used. Patch this out.
|
|
|
|
|
sed -r -i 's/( and python_version<"[^"]+")(.*ruamel\.yaml\.clib)/\2/' \
|
|
|
|
|
__init__.py
|
|
|
|
|
%if %{with bootstrap}
|
|
|
|
|
sed -r -i 's/^([[:blank:]]*)(.*ruamel\.yaml\.clib)/\1# \2/' __init__.py
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
|
%pyproject_buildrequires
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%py3_build
|
|
|
|
|
%pyproject_wheel
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%{__python3} setup.py install --single-version-externally-managed --skip-build --root $RPM_BUILD_ROOT
|
|
|
|
|
%pyproject_install
|
|
|
|
|
# RFE: Add option for namespace packages to %%pyproject_save_files
|
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1935266
|
|
|
|
|
%pyproject_save_files ruamel
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
PYTHONPATH=$(echo build/lib) py.test-%{python3_version} _test/test_*.py
|
|
|
|
|
%if %{with bootstrap}
|
|
|
|
|
k="${k-}${k+ and }not test_load_cyaml"
|
|
|
|
|
k="${k-}${k+ and }not test_load_cyaml_1_2"
|
|
|
|
|
k="${k-}${k+ and }not test_dump_cyaml_1_2"
|
|
|
|
|
%endif
|
|
|
|
|
%pytest -k "${k-}" _test/test_*.py
|
|
|
|
|
|
|
|
|
|
%files -n python%{python3_pkgversion}-%{pname}
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc README.rst
|
|
|
|
|
%{python3_sitelib}/ruamel
|
|
|
|
|
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}-*.pth
|
|
|
|
|
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
|
|
|
|
|
%files -n python3-ruamel-yaml -f %{pyproject_files}
|
|
|
|
|
# pyproject_files handles LICENSE; verify with “rpm -qL -p …”
|
|
|
|
|
%doc README.md
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Thu Sep 30 2021 Akira TAGOH <tagoh@redhat.com> - 0.16.6-7.1
|
|
|
|
|
- Add CI test.
|
|
|
|
|
Resolves: rhbz#2009152
|
|
|
|
|
* Tue Nov 26 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 0.18.5-4
|
|
|
|
|
- Rebuilt for MSVSphere 10
|
|
|
|
|
|
|
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 0.18.5-4
|
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.18.5-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.18.5-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Nov 12 2023 Parag Nemade <pnemade AT redhat DOT com> - 0.18.5-1
|
|
|
|
|
- Update to 0.18.5
|
|
|
|
|
|
|
|
|
|
* Thu Oct 26 2023 Joel Capitao <jcapitao@redhat.com> - 0.18.2-1
|
|
|
|
|
- Update to 0.18.2 (close RHBZ#2245968)
|
|
|
|
|
|
|
|
|
|
* Tue Oct 24 2023 Joel Capitao <jcapitao@redhat.com> - 0.18.1-1
|
|
|
|
|
- Update to 0.18.1 (close RHBZ#2241174)
|
|
|
|
|
|
|
|
|
|
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.17.32-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jun 22 2023 Python Maint <python-maint@redhat.com> - 0.17.32-2
|
|
|
|
|
- Rebuilt for Python 3.12
|
|
|
|
|
|
|
|
|
|
* Mon Jun 19 2023 Joel Capitao <jcapitao@redhat.com> - 0.17.32-1
|
|
|
|
|
- Update to 0.17.32 (close RHBZ#2210057)
|
|
|
|
|
|
|
|
|
|
* Wed Jun 14 2023 Python Maint <python-maint@redhat.com> - 0.17.26-4
|
|
|
|
|
- Rebuilt for Python 3.12
|
|
|
|
|
|
|
|
|
|
* Wed Jun 14 2023 Python Maint <python-maint@redhat.com> - 0.17.26-3
|
|
|
|
|
- Bootstrap for Python 3.12
|
|
|
|
|
|
|
|
|
|
* Wed May 24 2023 Yaakov Selkowitz <yselkowi@redhat.com> - 0.17.26-2
|
|
|
|
|
- Avoid tox dependency
|
|
|
|
|
|
|
|
|
|
* Tue May 09 2023 Fedora Release Monitoring <release-monitoring@fedoraproject.org> - 0.17.26-1
|
|
|
|
|
- Update to 0.17.26 (close RHBZ#2196655)
|
|
|
|
|
|
|
|
|
|
* Sun May 07 2023 Benjamin A. Beasley <code@musicinmybrain.net> - 0.17.24-1
|
|
|
|
|
- Update to 0.17.24 (close RHBZ#2193478)
|
|
|
|
|
|
|
|
|
|
* Thu May 04 2023 Benjamin A. Beasley <code@musicinmybrain.net> - 0.17.22-2
|
|
|
|
|
- Confirm License is SPDX MIT
|
|
|
|
|
- Reduce macro indirection and drop ancient constructs and conditionals
|
|
|
|
|
- Update description from upstream
|
|
|
|
|
- Make the package noarch (python-ruamel-yaml-clib contains the compiled code)
|
|
|
|
|
- Fix upper-bounded Python interpreter version for ruamel.yaml.clib dependency
|
|
|
|
|
- Drop unused manual runtime dependency on setuptools
|
|
|
|
|
- Port to pyproject-rpm-macros (“new Python guidelines”)
|
|
|
|
|
- Stop numbering the source archive
|
|
|
|
|
- Add a bootstrap conditional to break the circular dependency with
|
|
|
|
|
ruamel.yaml.clib
|
|
|
|
|
- Fix an obsolete comment referring to bitbucket
|
|
|
|
|
|
|
|
|
|
* Wed May 03 2023 Maxwell G <maxwell@gtmx.me> - 0.17.22-1
|
|
|
|
|
- Update to 0.17.22. Fixes rhbz#2192464.
|
|
|
|
|
|
|
|
|
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.17.21-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.17.21-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.17.21-2
|
|
|
|
|
- Rebuilt for Python 3.11
|
|
|
|
|
|
|
|
|
|
* Tue May 10 2022 Jakub Čajka <jcajka@redhat.com> - 0.17.21-1
|
|
|
|
|
- Update to 0.17.21
|
|
|
|
|
- Related: BZ#2042422
|
|
|
|
|
|
|
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.16.6-9
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.16.6-8
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* 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 Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.16.6-7
|
|
|
|
|
- Rebuilt for Python 3.10
|
|
|
|
|
|
|
|
|
|
* 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
|
|
|
|
|
* Mon Feb 22 2021 Joel Capitao <jcapitao@redhat.com> - 0.16.6-6
|
|
|
|
|
- Change upstream URL
|
|
|
|
|
- Remove obsolete patch
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.16.6-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|