Blame SPECS/python-ruamel-yaml-clib.spec

7104ad
%global pypi_name ruamel.yaml.clib
7104ad
%global pname ruamel-yaml-clib
7104ad
7104ad
# This means version 0.1.2:
7104ad
%global hash 955989c1f022b95ca1f92bf0abd761ef8aa0b940
7104ad
7104ad
Name:           python-%{pname}
7104ad
Version:        0.1.2
d4a29c
Release:        8%{?dist}.1
7104ad
Summary:        C version of reader, parser and emitter for ruamel.yaml derived from libyaml
7104ad
7104ad
License:        MIT
7104ad
URL:            https://bitbucket.org/ruamel/yaml.clib
7104ad
Source0:        https://sourceforge.net/code-snapshots/hg/r/ru/ruamel-yaml-clib/code/ruamel-yaml-clib-code-%{hash}.zip
7104ad
7104ad
BuildRequires:  gcc
7104ad
BuildRequires:  libyaml-devel
7104ad
7104ad
%description
7104ad
It is the C based reader/scanner and emitter for ruamel.yaml.
7104ad
7104ad
%package -n     python3-%{pname}
7104ad
Summary:        %{summary}
7104ad
BuildRequires:  python3-devel
7104ad
BuildRequires:  python3-setuptools
7104ad
BuildRequires:  python3-Cython
7104ad
7104ad
Requires:       python3-setuptools
7104ad
Requires:       python3-ruamel-yaml
7104ad
7104ad
%description -n python3-%{pname}
7104ad
It is the C based reader/scanner and emitter for ruamel.yaml.
7104ad
7104ad
%prep
7104ad
%autosetup -n %{pname}-code-%{hash}
7104ad
# Force regenerating C files from Cython sources
7104ad
rm -v $(grep -rl '/\* Generated by Cython')
7104ad
7104ad
%build
7104ad
# cython refuses to cythonize a file in a directory that cannot be a Python module ¯\_(ツ)_/¯
7104ad
mkdir ruamel.yaml.clib
7104ad
mv *.pyx ruamel.yaml.clib
7104ad
cythonize ruamel.yaml.clib/*.pyx
7104ad
mv ruamel.yaml.clib/* .
7104ad
rmdir ruamel.yaml.clib
7104ad
7104ad
%py3_build
7104ad
7104ad
%install
7104ad
%{__python3} setup.py install --single-version-externally-managed --skip-build --root $RPM_BUILD_ROOT
7104ad
7104ad
%files -n python3-%{pname}
7104ad
%license LICENSE
7104ad
%doc README.rst
7104ad
%{python3_sitearch}/_ruamel_yaml.cpython-*
7104ad
%{python3_sitearch}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
7104ad
7104ad
%changelog
d4a29c
* Thu Sep 30 2021 Akira TAGOH <tagoh@redhat.com> - 0.1.2-8.1
d4a29c
- Add CI test.
d4a29c
  Resolves: rhbz#2009159
d4a29c
7104ad
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 0.1.2-8
7104ad
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
7104ad
  Related: rhbz#1991688
7104ad
7104ad
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.1.2-7
7104ad
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
7104ad
7104ad
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.2-6
7104ad
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
7104ad
7104ad
* Thu Nov 12 2020 Miro Hrončok <mhroncok@redhat.com> - 0.1.2-5
7104ad
- Force regenerating C files from Cython sources
7104ad
- Require python3-ruamel-yaml
7104ad
7104ad
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.2-4
7104ad
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
7104ad
7104ad
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.1.2-3
7104ad
- Rebuilt for Python 3.9
7104ad
7104ad
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.2-2
7104ad
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
7104ad
7104ad
* Fri Aug 30 2019 Chandan Kumar <raukadah@gmail.com> - 0.1.2-1
7104ad
- Initial package