Blame SPECS/python-ruamel-yaml.spec

aca4bc
%global pypi_name ruamel.yaml
aca4bc
%global pname ruamel-yaml
2796e0
%global commit af9628b0d0479c35a60efc44b8d6dff9dc95aed2
aca4bc
aca4bc
aca4bc
Name:           python-%{pname}
2796e0
Version:        0.15.100
2796e0
Release:        1%{?dist}
aca4bc
Summary:        YAML 1.2 loader/dumper package for Python 
aca4bc
aca4bc
License:        MIT
2796e0
URL:            https://sourceforge.net/projects/ruamel-yaml/
aca4bc
#Source0:        https://files.pythonhosted.org/packages/source/r/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
aca4bc
# Use bitbucket sources so we can run the tests
2796e0
#Source0:        https://bitbucket.org/ruamel/yaml/get/%{version}.tar.gz#/%{pname}-%{version}.tar.gz
2796e0
# moved to sourceforge
2796e0
Source0:        https://sourceforge.net/code-snapshots/hg/r/ru/%{pname}/code/%{pname}-code-%{commit}.zip
2796e0
Source1:        bz-1951852-test.py
2796e0
aca4bc
# Works with pytest 2.7
aca4bc
Patch0:         python-ruamel-yaml-pytest27.patch
aca4bc
aca4bc
# Don't require ruamel.std.pathlib, but use stdlib's pathlib on py3, pathlib2 on py2
aca4bc
Patch1:         python-ruamel-yaml-pathlib.patch
aca4bc
 
aca4bc
BuildRequires:  gcc
aca4bc
BuildRequires:  libyaml-devel
aca4bc
aca4bc
%description
aca4bc
ruamel.yaml is a YAML 1.2 loader/dumper package for Python.
aca4bc
It is a derivative of Kirill Simonov’s PyYAML 3.11
aca4bc
aca4bc
%package -n     python%{python3_pkgversion}-%{pname}
aca4bc
Summary:        YAML 1.2 loader/dumper package for Python 
aca4bc
BuildRequires:  python%{python3_pkgversion}-devel
aca4bc
BuildRequires:  python%{python3_pkgversion}-setuptools
aca4bc
# For tests
aca4bc
BuildRequires:  python%{python3_pkgversion}-pytest
aca4bc
# typing was added in Python 3.5
aca4bc
%if %{python3_pkgversion} == 34
aca4bc
BuildRequires:  python%{python3_pkgversion}-typing
aca4bc
%endif
aca4bc
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}}
aca4bc
aca4bc
Requires:       python%{python3_pkgversion}-setuptools
aca4bc
%if %{python3_pkgversion} == 34
aca4bc
Requires:       python%{python3_pkgversion}-typing
aca4bc
%endif
aca4bc
aca4bc
%description -n python%{python3_pkgversion}-%{pname}
aca4bc
ruamel.yaml is a YAML 1.2 loader/dumper package for Python.
aca4bc
It is a derivative of Kirill Simonov’s PyYAML 3.11
aca4bc
aca4bc
%prep
2796e0
%autosetup -n %{pname}-code-%{commit} -p1
aca4bc
rm -rf %{pypi_name}.egg-info
aca4bc
aca4bc
%build
aca4bc
%py3_build
aca4bc
aca4bc
%install
aca4bc
%{__python3} setup.py install --single-version-externally-managed --skip-build --root $RPM_BUILD_ROOT
aca4bc
aca4bc
%check
aca4bc
PYTHONPATH=$(echo build/lib.*%{python3_version}) py.test-%{python3_version} _test/test_*.py
2796e0
PYTHONPATH=$(echo build/lib.*%{python3_version}) %{__python3} %{SOURCE1}
aca4bc
aca4bc
%files -n python%{python3_pkgversion}-%{pname}
aca4bc
%license LICENSE
aca4bc
%doc README.rst
aca4bc
%{python3_sitearch}/ruamel
aca4bc
%{python3_sitearch}/_ruamel_yaml.cpython-*
aca4bc
%{python3_sitearch}/%{pypi_name}-%{version}-py?.?-*.pth
aca4bc
%{python3_sitearch}/%{pypi_name}-%{version}-py?.?.egg-info
aca4bc
aca4bc
%changelog
2796e0
* Tue Apr 20 2021 Rich Megginson <rmeggins@redhat.com> - 0.15.100-1
2796e0
- Resolves: rhbz#1951852
2796e0
  error converting lists with embedded comments
2796e0
aca4bc
* Mon Nov 23 2020 Pavel Cahyna <pcahyna@redhat.com> - 0.15.41-5
aca4bc
- Rebuild after adding to RHEL buildrood and configuring CI gating
aca4bc
aca4bc
* Wed Mar 06 2019 Lon Hohberger <lon@redhat.com> - 0.15.41-4
aca4bc
- Rebuild for new architectures
aca4bc
aca4bc
* Mon Jan 14 2019 Miro Hrončok <mhroncok@redhat.com> - 0.15.41-3
aca4bc
- Subpackage python2-ruamel-yaml has been removed
aca4bc
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
aca4bc
aca4bc
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.41-2
aca4bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
aca4bc
aca4bc
* Fri Jun 29 2018 Miro Hrončok <mhroncok@redhat.com> - 0.15.41-1
aca4bc
- Update to 0.15.41
aca4bc
- Add patch not to require ruamel.std.pathlib
aca4bc
aca4bc
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.13.14-4
aca4bc
- Rebuilt for Python 3.7
aca4bc
aca4bc
* Fri Feb 09 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.13.14-3
aca4bc
- Update Python 2 dependency declarations to new packaging standards
aca4bc
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
aca4bc
aca4bc
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.14-2
aca4bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
aca4bc
aca4bc
* Wed Aug 9 2017 Orion Poplawski <orion@nwra.com> - 0.13.14-1
aca4bc
- Update to 0.13.14
aca4bc
aca4bc
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.13-5
aca4bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
aca4bc
aca4bc
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.13-4
aca4bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
aca4bc
aca4bc
* Mon Feb 13 2017 Jan Chaloupka <jchaloup@redhat.com> - 0.13.13-3
aca4bc
- The ruamel.yaml needs at least typing >= 3.5.2.2
aca4bc
  related: #1386563
aca4bc
aca4bc
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.13-2
aca4bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
aca4bc
aca4bc
* Tue Jan 31 2017 Orion Poplawski <orion@cora.nwra.com> - 0.13.13-1
aca4bc
- Update to 0.13.13
aca4bc
aca4bc
* Tue Jan 31 2017 Orion Poplawski <orion@cora.nwra.com> - 0.12.14-7
aca4bc
- Add patch to support pytest 2.7 in EPEL7
aca4bc
aca4bc
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.12.14-6
aca4bc
- Rebuild for Python 3.6
aca4bc
aca4bc
* Wed Oct 26 2016 Orion Poplawski <orion@cora.nwra.com> - 0.12.14-5
aca4bc
- Require python34-typing on EPEL
aca4bc
- Ignore python2 test failure due to old pytest on EPEL7
aca4bc
aca4bc
* Wed Oct 26 2016 Orion Poplawski <orion@cora.nwra.com> - 0.12.14-4
aca4bc
- Build python3 package
aca4bc
- Run tests
aca4bc
aca4bc
* Tue Oct 25 2016 Chandan Kumar <chkumar@redhat.com> - 0.12.14-3
aca4bc
- Disabling python3 as python3-ruamel-ordereddict not available
aca4bc
aca4bc
* Mon Oct 24 2016 Chandan Kumar <chkumar@redhat.com> - 0.12.14-2
aca4bc
- Fixed python2-typing runtime dependency issue
aca4bc
aca4bc
* Fri Oct 14 2016 Chandan Kumar <chkumar@redhat.com> - 0.12.14-1
aca4bc
- Initial package.