2023-05-03 17:38:56 +00:00
|
|
|
%global commit fdd42e838e4d5199b0277fc21a920a744cdd5c9d
|
2020-11-12 12:21:08 +00:00
|
|
|
|
2023-05-03 13:37:26 +00:00
|
|
|
Name: python-ruamel-yaml-clib
|
2023-05-03 17:38:56 +00:00
|
|
|
Version: 0.2.7
|
2024-12-19 10:39:17 +00:00
|
|
|
Release: 9%{?dist}
|
2019-08-30 14:38:06 +00:00
|
|
|
Summary: C version of reader, parser and emitter for ruamel.yaml derived from libyaml
|
|
|
|
|
2023-05-03 13:28:55 +00:00
|
|
|
# SPDX
|
2019-08-30 14:38:06 +00:00
|
|
|
License: MIT
|
2023-05-03 13:59:18 +00:00
|
|
|
URL: https://sourceforge.net/projects/ruamel-yaml-clib
|
2023-05-03 17:24:56 +00:00
|
|
|
Source0: https://sourceforge.net/code-snapshots/hg/r/ru/ruamel-yaml-clib/code/ruamel-yaml-clib-code-%{commit}.zip
|
|
|
|
# Include license file for bundled libyaml
|
|
|
|
# https://sourceforge.net/p/ruamel-yaml-clib/tickets/16/
|
|
|
|
# This should be fixed upstream in a future ruamel.yaml.clib release >0.2.7
|
|
|
|
Source1: https://github.com/yaml/libyaml/raw/0.1.7/LICENSE#/LICENSE-libyaml
|
2024-02-01 09:07:21 +00:00
|
|
|
Patch1: fix-typecasts-s390x.patch
|
2019-08-30 14:38:06 +00:00
|
|
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
2023-05-03 14:12:08 +00:00
|
|
|
%global _description %{expand:
|
|
|
|
It is the C based reader/scanner and emitter for ruamel.yaml.}
|
|
|
|
|
|
|
|
%description %{_description}
|
2019-08-30 14:38:06 +00:00
|
|
|
|
2023-05-03 13:37:26 +00:00
|
|
|
%package -n python3-ruamel-yaml-clib
|
2019-08-30 14:38:06 +00:00
|
|
|
Summary: %{summary}
|
2023-05-03 14:12:08 +00:00
|
|
|
|
2019-08-30 14:38:06 +00:00
|
|
|
BuildRequires: python3-devel
|
2023-05-03 14:12:08 +00:00
|
|
|
BuildRequires: %{py3_dist Cython}
|
2019-08-30 14:38:06 +00:00
|
|
|
|
2023-05-03 13:45:31 +00:00
|
|
|
# Unfortunately, the circular dependency is intentional; the clib extension
|
|
|
|
# packaged here imports from ruamel.yaml, which in turn uses the extension for
|
|
|
|
# performance.
|
2023-05-03 16:42:09 +00:00
|
|
|
BuildRequires: python3-ruamel-yaml
|
2020-11-12 12:52:07 +00:00
|
|
|
Requires: python3-ruamel-yaml
|
2019-08-30 14:38:06 +00:00
|
|
|
|
2023-05-03 17:24:56 +00:00
|
|
|
# Bundled sources from libyaml are:
|
|
|
|
# - config.h yaml.h yaml_private.h
|
|
|
|
# - api.c dumper.c emitter.c loader.c parser.c reader.c scanner.c writer.c
|
|
|
|
#
|
|
|
|
# Support building with an external/system copy of libyaml?
|
|
|
|
# https://sourceforge.net/p/ruamel-yaml-clib/tickets/15/
|
|
|
|
#
|
|
|
|
# Upstream replied:
|
|
|
|
#
|
|
|
|
# The copy is because there have been improvements where libyaml had not been
|
|
|
|
# maintained for several years. But that is minor reason to do that, as I am
|
|
|
|
# working on an alternative for clib.
|
|
|
|
#
|
|
|
|
# Version number from VERSION in config.h:
|
|
|
|
Provides: bundled(libyaml) = 0.1.7
|
|
|
|
|
2023-05-03 14:12:08 +00:00
|
|
|
%py_provides python3-ruamel.yaml.clib
|
|
|
|
|
|
|
|
%description -n python3-ruamel-yaml-clib %{_description}
|
2019-08-30 14:38:06 +00:00
|
|
|
|
|
|
|
%prep
|
2024-02-01 09:07:21 +00:00
|
|
|
%autosetup -p1 -n ruamel-yaml-clib-code-%{commit}
|
2020-11-12 12:21:08 +00:00
|
|
|
# Force regenerating C files from Cython sources
|
|
|
|
rm -v $(grep -rl '/\* Generated by Cython')
|
2023-05-03 17:24:56 +00:00
|
|
|
cp -p '%{SOURCE1}' .
|
2019-08-30 14:38:06 +00:00
|
|
|
|
2023-05-03 14:12:08 +00:00
|
|
|
%generate_buildrequires
|
|
|
|
# Upstream has a tox.ini, but it is for a build-and-install check, not a test
|
|
|
|
# suite, so we do not use it to generate dependencies (-t).
|
|
|
|
%pyproject_buildrequires
|
|
|
|
|
2019-08-30 14:38:06 +00:00
|
|
|
%build
|
2023-05-03 17:49:11 +00:00
|
|
|
# cython refuses to cythonize a file in a directory that cannot be a Python
|
|
|
|
# module ¯\_(ツ)_/¯
|
|
|
|
#
|
|
|
|
# Top-level structure seems to be incompatible with Cython 0.29.34
|
|
|
|
# ('ruamel-yaml-clib-code._ruamel_yaml' is not a valid module name)
|
|
|
|
# https://sourceforge.net/p/ruamel-yaml-clib/tickets/14/
|
2020-11-12 12:21:08 +00:00
|
|
|
mkdir ruamel.yaml.clib
|
|
|
|
mv *.pyx ruamel.yaml.clib
|
2022-05-12 11:42:03 +00:00
|
|
|
cythonize -3 ruamel.yaml.clib/*.pyx
|
2020-11-12 12:21:08 +00:00
|
|
|
mv ruamel.yaml.clib/* .
|
|
|
|
rmdir ruamel.yaml.clib
|
|
|
|
|
2023-05-03 14:12:08 +00:00
|
|
|
%pyproject_wheel
|
2019-08-30 14:38:06 +00:00
|
|
|
|
|
|
|
%install
|
2023-05-03 14:12:08 +00:00
|
|
|
%pyproject_install
|
|
|
|
%pyproject_save_files _ruamel_yaml
|
2019-08-30 14:38:06 +00:00
|
|
|
|
2023-05-03 16:42:09 +00:00
|
|
|
%check
|
|
|
|
%py3_check_import _ruamel_yaml
|
|
|
|
|
2023-05-03 14:12:08 +00:00
|
|
|
%files -n python3-ruamel-yaml-clib -f %{pyproject_files}
|
|
|
|
# pyproject_files handles LICENSE; verify with “rpm -qL -p …”
|
|
|
|
# Remove the following once we no longer have a separate LICENSE-libyaml:
|
2023-05-03 17:24:56 +00:00
|
|
|
%license LICENSE LICENSE-libyaml
|
2023-05-03 14:12:08 +00:00
|
|
|
|
2019-08-30 14:38:06 +00:00
|
|
|
%doc README.rst
|
|
|
|
|
|
|
|
%changelog
|
2024-10-29 16:08:51 +00:00
|
|
|
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 0.2.7-8
|
|
|
|
- Bump release for October 2024 mass rebuild:
|
|
|
|
Resolves: RHEL-64018
|
|
|
|
|
2024-06-24 16:19:49 +00:00
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 0.2.7-7
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
2024-02-01 09:07:21 +00:00
|
|
|
* Thu Feb 01 2024 Florian Weimer <fweimer@redhat.com> - 0.2.7-6
|
|
|
|
- Update fix-typecasts-s390x.patch for GCC 14 compatibility (#2042422)
|
|
|
|
|
2024-01-26 10:23:02 +00:00
|
|
|
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.7-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
2024-01-22 06:48:41 +00:00
|
|
|
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.7-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
2023-07-21 13:47:58 +00:00
|
|
|
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.7-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
2023-06-14 08:04:14 +00:00
|
|
|
* Wed Jun 14 2023 Python Maint <python-maint@redhat.com> - 0.2.7-2
|
|
|
|
- Rebuilt for Python 3.12
|
|
|
|
|
2023-05-03 17:38:56 +00:00
|
|
|
* Wed May 03 2023 Benjamin A. Beasley <code@musicinmybrain.net> - 0.2.7-1
|
|
|
|
- Update to 0.2.7
|
|
|
|
|
2023-05-03 13:28:55 +00:00
|
|
|
* Wed May 03 2023 Benjamin A. Beasley <code@musicinmybrain.net> - 0.2.6-5
|
|
|
|
- Confirm License is SPDX MIT
|
2023-05-03 13:37:26 +00:00
|
|
|
- Reduce macro indirection, etc.
|
2023-05-03 13:38:41 +00:00
|
|
|
- Drop unused manual runtime dependency on setuptools
|
2023-05-03 13:45:31 +00:00
|
|
|
- Add a note about the circular dependency with ruamel.yaml
|
2023-05-03 13:57:40 +00:00
|
|
|
- Stop numbering sources and patches
|
2023-05-03 13:59:18 +00:00
|
|
|
- Update URL (close RHBZ#1840610)
|
2023-05-03 16:42:09 +00:00
|
|
|
- Add an import-only “smoke test”
|
2023-05-03 17:24:56 +00:00
|
|
|
- Properly handle libyaml bundling
|
2023-05-03 14:12:08 +00:00
|
|
|
- Port to pyproject-rpm-macros (“new Python guidelines”)
|
2023-05-03 17:49:11 +00:00
|
|
|
- Add a link to the upstream issue for the Cython workaround
|
2023-05-03 13:28:55 +00:00
|
|
|
|
2023-01-20 17:06:28 +00:00
|
|
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.6-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
2022-07-22 22:09:34 +00:00
|
|
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.6-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
2022-06-13 14:03:02 +00:00
|
|
|
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.2.6-2
|
|
|
|
- Rebuilt for Python 3.11
|
|
|
|
|
2022-05-12 11:42:03 +00:00
|
|
|
* Tue May 10 2022 Jakub Čajka <jcajka@redhat.com> - 0.2.6-1
|
|
|
|
- Update to 0.2.6
|
|
|
|
- Fix for type demotion issues on s390x
|
|
|
|
- Resolves: BZ#2042422
|
|
|
|
|
2022-01-21 15:21:21 +00:00
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.2-9
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
2021-07-23 09:20:39 +00:00
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.2-8
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
2021-06-04 19:00:18 +00:00
|
|
|
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.1.2-7
|
|
|
|
- Rebuilt for Python 3.10
|
|
|
|
|
2021-01-27 13:15:18 +00:00
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.2-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2020-11-12 12:21:08 +00:00
|
|
|
* Thu Nov 12 2020 Miro Hrončok <mhroncok@redhat.com> - 0.1.2-5
|
|
|
|
- Force regenerating C files from Cython sources
|
2020-11-12 12:52:07 +00:00
|
|
|
- Require python3-ruamel-yaml
|
2020-11-12 12:21:08 +00:00
|
|
|
|
2020-07-29 03:44:39 +00:00
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.2-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-05-26 01:38:20 +00:00
|
|
|
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.1.2-3
|
|
|
|
- Rebuilt for Python 3.9
|
|
|
|
|
2020-01-30 15:08:06 +00:00
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.2-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2019-08-30 14:38:06 +00:00
|
|
|
* Fri Aug 30 2019 Chandan Kumar <raukadah@gmail.com> - 0.1.2-1
|
|
|
|
- Initial package
|