2019-08-30 14:38:06 +00:00
|
|
|
%global pypi_name ruamel.yaml.clib
|
|
|
|
%global pname ruamel-yaml-clib
|
2022-05-12 11:42:03 +00:00
|
|
|
%global hash 85e484db2b7c37107e4edd2ae6fc380877bbc08e
|
2020-11-12 12:21:08 +00:00
|
|
|
|
2019-08-30 14:38:06 +00:00
|
|
|
Name: python-%{pname}
|
2022-05-12 11:42:03 +00:00
|
|
|
Version: 0.2.6
|
2023-05-03 13:28:55 +00:00
|
|
|
Release: 5%{?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
|
|
|
|
URL: https://bitbucket.org/ruamel/yaml.clib
|
2020-11-12 12:21:08 +00:00
|
|
|
Source0: https://sourceforge.net/code-snapshots/hg/r/ru/ruamel-yaml-clib/code/ruamel-yaml-clib-code-%{hash}.zip
|
2022-05-12 11:42:03 +00:00
|
|
|
Patch0: fix-typecasts-s390x.patch
|
2019-08-30 14:38:06 +00:00
|
|
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: libyaml-devel
|
|
|
|
|
|
|
|
%description
|
|
|
|
It is the C based reader/scanner and emitter for ruamel.yaml.
|
|
|
|
|
|
|
|
%package -n python3-%{pname}
|
|
|
|
Summary: %{summary}
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-setuptools
|
2020-11-12 12:21:08 +00:00
|
|
|
BuildRequires: python3-Cython
|
2019-08-30 14:38:06 +00:00
|
|
|
|
|
|
|
Requires: python3-setuptools
|
2020-11-12 12:52:07 +00:00
|
|
|
Requires: python3-ruamel-yaml
|
2019-08-30 14:38:06 +00:00
|
|
|
|
|
|
|
%description -n python3-%{pname}
|
|
|
|
It is the C based reader/scanner and emitter for ruamel.yaml.
|
|
|
|
|
|
|
|
%prep
|
2020-11-12 12:21:08 +00:00
|
|
|
%autosetup -n %{pname}-code-%{hash}
|
|
|
|
# Force regenerating C files from Cython sources
|
|
|
|
rm -v $(grep -rl '/\* Generated by Cython')
|
2019-08-30 14:38:06 +00:00
|
|
|
|
|
|
|
%build
|
2020-11-12 12:21:08 +00:00
|
|
|
# cython refuses to cythonize a file in a directory that cannot be a Python module ¯\_(ツ)_/¯
|
|
|
|
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
|
|
|
|
|
2019-08-30 14:38:06 +00:00
|
|
|
%py3_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%{__python3} setup.py install --single-version-externally-managed --skip-build --root $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files -n python3-%{pname}
|
|
|
|
%license LICENSE
|
|
|
|
%doc README.rst
|
|
|
|
%{python3_sitearch}/_ruamel_yaml.cpython-*
|
2020-07-13 19:04:39 +00:00
|
|
|
%{python3_sitearch}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
|
2019-08-30 14:38:06 +00:00
|
|
|
|
|
|
|
%changelog
|
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-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
|