Compare commits
2 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cdec57db9d |
||
|
|
d39270652a |
2 changed files with 11 additions and 10 deletions
|
|
@ -2,7 +2,7 @@
|
||||||
%bcond_with bootstrap
|
%bcond_with bootstrap
|
||||||
|
|
||||||
Name: python-ruamel-yaml
|
Name: python-ruamel-yaml
|
||||||
Version: 0.18.16
|
Version: 0.19.1
|
||||||
Release: %autorelease
|
Release: %autorelease
|
||||||
Summary: YAML 1.2 loader/dumper package for Python
|
Summary: YAML 1.2 loader/dumper package for Python
|
||||||
|
|
||||||
|
|
@ -28,20 +28,19 @@ BuildRequires: python3-pytest
|
||||||
|
|
||||||
%py_provides python3-ruamel.yaml
|
%py_provides python3-ruamel.yaml
|
||||||
|
|
||||||
|
%if !%{with bootstrap}
|
||||||
|
# ruamel.yaml.clibz is not available in Fedora (and probably never will
|
||||||
|
# be), so require the old clib backend
|
||||||
|
Requires: python3-ruamel-yaml+oldlibyaml = %{version}-%{release}
|
||||||
|
%endif
|
||||||
|
|
||||||
%description -n python3-ruamel-yaml %{_description}
|
%description -n python3-ruamel-yaml %{_description}
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n ruamel.yaml-%{version}
|
%autosetup -n ruamel.yaml-%{version}
|
||||||
# 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
|
%generate_buildrequires
|
||||||
%pyproject_buildrequires
|
%pyproject_buildrequires %{!?with_bootstrap:-x oldlibyaml}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%pyproject_wheel
|
%pyproject_wheel
|
||||||
|
|
@ -63,5 +62,7 @@ k="${k-}${k+ and }not test_dump_cyaml_1_2"
|
||||||
%files -n python3-ruamel-yaml -f %{pyproject_files}
|
%files -n python3-ruamel-yaml -f %{pyproject_files}
|
||||||
%doc README.md
|
%doc README.md
|
||||||
|
|
||||||
|
%pyproject_extras_subpkg -n python3-ruamel-yaml oldlibyaml
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
%autochangelog
|
%autochangelog
|
||||||
|
|
|
||||||
2
sources
2
sources
|
|
@ -1 +1 @@
|
||||||
SHA512 (ruamel.yaml-0.18.16.tar.xz) = 1d4c28c6769167d044cfc506035a0d7e13b533ecbfa2287b00035e9036c400c9cbd86fa96921a7e6a9c9b286f9bf4970637a09d4747c5bf7315b37db353720f6
|
SHA512 (ruamel.yaml-0.19.1.tar.xz) = bf9eb8e40f506d6f3f34aee5f5ec74eb93bfda2b27022f6ad62dfac724b9e0847d61e3159d284bada7dec147992aaf509804f7139818de5bc85aa328bc32601f
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue