|
Chandan Kumar (raukadah) |
72bcb8 |
%global pypi_name ruamel.yaml.clib
|
|
Chandan Kumar (raukadah) |
72bcb8 |
%global pname ruamel-yaml-clib
|
|
Chandan Kumar (raukadah) |
72bcb8 |
|
|
Miro Hrončok |
4d7ab8 |
# This means version 0.1.2:
|
|
Miro Hrončok |
4d7ab8 |
%global hash 955989c1f022b95ca1f92bf0abd761ef8aa0b940
|
|
Miro Hrončok |
4d7ab8 |
|
|
Chandan Kumar (raukadah) |
72bcb8 |
Name: python-%{pname}
|
|
Chandan Kumar (raukadah) |
72bcb8 |
Version: 0.1.2
|
|
Python Maint |
f2bcae |
Release: 7%{?dist}
|
|
Chandan Kumar (raukadah) |
72bcb8 |
Summary: C version of reader, parser and emitter for ruamel.yaml derived from libyaml
|
|
Chandan Kumar (raukadah) |
72bcb8 |
|
|
Chandan Kumar (raukadah) |
72bcb8 |
License: MIT
|
|
Chandan Kumar (raukadah) |
72bcb8 |
URL: https://bitbucket.org/ruamel/yaml.clib
|
|
Miro Hrončok |
4d7ab8 |
Source0: https://sourceforge.net/code-snapshots/hg/r/ru/ruamel-yaml-clib/code/ruamel-yaml-clib-code-%{hash}.zip
|
|
Chandan Kumar (raukadah) |
72bcb8 |
|
|
Chandan Kumar (raukadah) |
72bcb8 |
BuildRequires: gcc
|
|
Chandan Kumar (raukadah) |
72bcb8 |
BuildRequires: libyaml-devel
|
|
Chandan Kumar (raukadah) |
72bcb8 |
|
|
Chandan Kumar (raukadah) |
72bcb8 |
%description
|
|
Chandan Kumar (raukadah) |
72bcb8 |
It is the C based reader/scanner and emitter for ruamel.yaml.
|
|
Chandan Kumar (raukadah) |
72bcb8 |
|
|
Chandan Kumar (raukadah) |
72bcb8 |
%package -n python3-%{pname}
|
|
Chandan Kumar (raukadah) |
72bcb8 |
Summary: %{summary}
|
|
Chandan Kumar (raukadah) |
72bcb8 |
BuildRequires: python3-devel
|
|
Chandan Kumar (raukadah) |
72bcb8 |
BuildRequires: python3-setuptools
|
|
Miro Hrončok |
4d7ab8 |
BuildRequires: python3-Cython
|
|
Chandan Kumar (raukadah) |
72bcb8 |
|
|
Chandan Kumar (raukadah) |
72bcb8 |
Requires: python3-setuptools
|
|
Miro Hrončok |
ede868 |
Requires: python3-ruamel-yaml
|
|
Chandan Kumar (raukadah) |
72bcb8 |
|
|
Chandan Kumar (raukadah) |
72bcb8 |
%description -n python3-%{pname}
|
|
Chandan Kumar (raukadah) |
72bcb8 |
It is the C based reader/scanner and emitter for ruamel.yaml.
|
|
Chandan Kumar (raukadah) |
72bcb8 |
|
|
Chandan Kumar (raukadah) |
72bcb8 |
%prep
|
|
Miro Hrončok |
4d7ab8 |
%autosetup -n %{pname}-code-%{hash}
|
|
Miro Hrončok |
4d7ab8 |
# Force regenerating C files from Cython sources
|
|
Miro Hrončok |
4d7ab8 |
rm -v $(grep -rl '/\* Generated by Cython')
|
|
Chandan Kumar (raukadah) |
72bcb8 |
|
|
Chandan Kumar (raukadah) |
72bcb8 |
%build
|
|
Miro Hrončok |
4d7ab8 |
# cython refuses to cythonize a file in a directory that cannot be a Python module ¯\_(ツ)_/¯
|
|
Miro Hrončok |
4d7ab8 |
mkdir ruamel.yaml.clib
|
|
Miro Hrončok |
4d7ab8 |
mv *.pyx ruamel.yaml.clib
|
|
Miro Hrončok |
4d7ab8 |
cythonize ruamel.yaml.clib/*.pyx
|
|
Miro Hrončok |
4d7ab8 |
mv ruamel.yaml.clib/* .
|
|
Miro Hrončok |
4d7ab8 |
rmdir ruamel.yaml.clib
|
|
Miro Hrončok |
4d7ab8 |
|
|
Chandan Kumar (raukadah) |
72bcb8 |
%py3_build
|
|
Chandan Kumar (raukadah) |
72bcb8 |
|
|
Chandan Kumar (raukadah) |
72bcb8 |
%install
|
|
Chandan Kumar (raukadah) |
72bcb8 |
%{__python3} setup.py install --single-version-externally-managed --skip-build --root $RPM_BUILD_ROOT
|
|
Chandan Kumar (raukadah) |
72bcb8 |
|
|
Chandan Kumar (raukadah) |
72bcb8 |
%files -n python3-%{pname}
|
|
Chandan Kumar (raukadah) |
72bcb8 |
%license LICENSE
|
|
Chandan Kumar (raukadah) |
72bcb8 |
%doc README.rst
|
|
Chandan Kumar (raukadah) |
72bcb8 |
%{python3_sitearch}/_ruamel_yaml.cpython-*
|
|
Miro Hrončok |
139447 |
%{python3_sitearch}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
|
|
Chandan Kumar (raukadah) |
72bcb8 |
|
|
Chandan Kumar (raukadah) |
72bcb8 |
%changelog
|
|
Python Maint |
f2bcae |
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.1.2-7
|
|
Python Maint |
f2bcae |
- Rebuilt for Python 3.10
|
|
Python Maint |
f2bcae |
|
|
Fedora Release Engineering |
f3f133 |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.2-6
|
|
Fedora Release Engineering |
f3f133 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
Fedora Release Engineering |
f3f133 |
|
|
Miro Hrončok |
4d7ab8 |
* Thu Nov 12 2020 Miro Hrončok <mhroncok@redhat.com> - 0.1.2-5
|
|
Miro Hrončok |
4d7ab8 |
- Force regenerating C files from Cython sources
|
|
Miro Hrončok |
ede868 |
- Require python3-ruamel-yaml
|
|
Miro Hrončok |
4d7ab8 |
|
|
Fedora Release Engineering |
0be324 |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.2-4
|
|
Fedora Release Engineering |
0be324 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
Fedora Release Engineering |
0be324 |
|
|
Miro Hrončok |
d6a5d7 |
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.1.2-3
|
|
Miro Hrončok |
d6a5d7 |
- Rebuilt for Python 3.9
|
|
Miro Hrončok |
d6a5d7 |
|
|
Fedora Release Engineering |
218834 |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.2-2
|
|
Fedora Release Engineering |
218834 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
Fedora Release Engineering |
218834 |
|
|
Chandan Kumar (raukadah) |
72bcb8 |
* Fri Aug 30 2019 Chandan Kumar <raukadah@gmail.com> - 0.1.2-1
|
|
Chandan Kumar (raukadah) |
72bcb8 |
- Initial package
|