diff --git a/python-ruamel-yaml.spec b/python-ruamel-yaml.spec index 5039d0ed164a31aebf1f1da55f55d021dda2fbc0..69a7d8ef3ad651f3c01ba06bb4f40d50ddeb3de9 100644 --- a/python-ruamel-yaml.spec +++ b/python-ruamel-yaml.spec @@ -1,10 +1,11 @@ %global _empty_manifest_terminate_build 0 +%global pypi_name ruamel.yaml Name: python-ruamel-yaml Version: 0.18.6 -Release: 1 +Release: 2 Summary: ruamel.yaml is a YAML parser/emitter that supports roundtrip preservation of comments, seq/map flow style, and map key order License: MIT -URL: https://sourceforge.net/p/ruamel-yaml/code/ci/default/tree +URL: https://sourceforge.net/projects/ruamel-yaml Source0: https://files.pythonhosted.org/packages/29/81/4dfc17eb6ebb1aac314a3eb863c1325b907863a1b8b1382cdffcb6ac0ed9/ruamel.yaml-0.18.6.tar.gz BuildArch: noarch Patch0001: 0000-fix-big-endian-issues.patch @@ -14,9 +15,12 @@ ruamel.yaml ruamel.yaml is a YAML 1.2 loader/dumper package for Python. %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 Provides: python-ruamel-yaml = %{version}-%{release} +Provides: python%{python3_pkgversion}dist(ruamel-yaml) = %{version} +Provides: python%{python3_version}dist(ruamel-yaml) = %{version} # Base build requires BuildRequires: python3-devel BuildRequires: python3-setuptools +BuildRequires: python3-setuptools_scm BuildRequires: python3-pytest BuildRequires: python3-pbr BuildRequires: python3-pip @@ -36,11 +40,11 @@ ruamel.yaml ruamel.yaml is a YAML 1.2 loader/dumper package for Python. %autosetup -n ruamel.yaml-%{version} -p1 %build -%py3_build +%pyproject_build %install export RUAMEL_NO_PIP_INSTALL_CHECK=1 -%py3_install +%pyproject_install install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi @@ -48,38 +52,31 @@ 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 . ##Tests are not included in the upstream tarball #%check #PYTHONPATH=$(echo build/lib) py.test-%{python3_version} _test/test_*.py -%files -n python3-ruamel-yaml -f filelist.lst -%dir %{python3_sitelib}/* +%files -n python3-ruamel-yaml +%license LICENSE +%doc CHANGES README.md +%{python3_sitelib}/ruamel/yaml +%{python3_sitelib}/ruamel.yaml-*.dist-info/ %files help %defattr(-,root,root) %doc README.md CHANGES %changelog +* Thu Mar 13 2025 Dongxing Wang - 0.18.6-2 +- Fix python3dist(ruamel-yaml) missing + * Fri Mar 15 2024 jiangxinyu - 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