commit 29c7b515d532fd07ef13a955a558e6e0dc4d9a34 Author: CentOS Sources Date: Tue May 17 06:48:35 2022 -0400 import python-ruamel-yaml-clib-0.1.2-8.el9.1 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e1dc9e2 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/ruamel-yaml-clib-code-955989c1f022b95ca1f92bf0abd761ef8aa0b940.zip diff --git a/.python-ruamel-yaml-clib.metadata b/.python-ruamel-yaml-clib.metadata new file mode 100644 index 0000000..f9b9c36 --- /dev/null +++ b/.python-ruamel-yaml-clib.metadata @@ -0,0 +1 @@ +907faea426e46eb3e74517d25bbf522ec5b0ca65 SOURCES/ruamel-yaml-clib-code-955989c1f022b95ca1f92bf0abd761ef8aa0b940.zip diff --git a/SPECS/python-ruamel-yaml-clib.spec b/SPECS/python-ruamel-yaml-clib.spec new file mode 100644 index 0000000..190f5ed --- /dev/null +++ b/SPECS/python-ruamel-yaml-clib.spec @@ -0,0 +1,87 @@ +%global pypi_name ruamel.yaml.clib +%global pname ruamel-yaml-clib + +# This means version 0.1.2: +%global hash 955989c1f022b95ca1f92bf0abd761ef8aa0b940 + +Name: python-%{pname} +Version: 0.1.2 +Release: 8%{?dist}.1 +Summary: C version of reader, parser and emitter for ruamel.yaml derived from libyaml + +License: MIT +URL: https://bitbucket.org/ruamel/yaml.clib +Source0: https://sourceforge.net/code-snapshots/hg/r/ru/ruamel-yaml-clib/code/ruamel-yaml-clib-code-%{hash}.zip + +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 +BuildRequires: python3-Cython + +Requires: python3-setuptools +Requires: python3-ruamel-yaml + +%description -n python3-%{pname} +It is the C based reader/scanner and emitter for ruamel.yaml. + +%prep +%autosetup -n %{pname}-code-%{hash} +# Force regenerating C files from Cython sources +rm -v $(grep -rl '/\* Generated by Cython') + +%build +# cython refuses to cythonize a file in a directory that cannot be a Python module ¯\_(ツ)_/¯ +mkdir ruamel.yaml.clib +mv *.pyx ruamel.yaml.clib +cythonize ruamel.yaml.clib/*.pyx +mv ruamel.yaml.clib/* . +rmdir ruamel.yaml.clib + +%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-* +%{python3_sitearch}/%{pypi_name}-%{version}-py%{python3_version}.egg-info + +%changelog +* Thu Sep 30 2021 Akira TAGOH - 0.1.2-8.1 +- Add CI test. + Resolves: rhbz#2009159 + +* Tue Aug 10 2021 Mohan Boddu - 0.1.2-8 +- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags + Related: rhbz#1991688 + +* Fri Apr 16 2021 Mohan Boddu - 0.1.2-7 +- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937 + +* Wed Jan 27 2021 Fedora Release Engineering - 0.1.2-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Thu Nov 12 2020 Miro Hrončok - 0.1.2-5 +- Force regenerating C files from Cython sources +- Require python3-ruamel-yaml + +* Wed Jul 29 2020 Fedora Release Engineering - 0.1.2-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue May 26 2020 Miro Hrončok - 0.1.2-3 +- Rebuilt for Python 3.9 + +* Thu Jan 30 2020 Fedora Release Engineering - 0.1.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Fri Aug 30 2019 Chandan Kumar - 0.1.2-1 +- Initial package