2016-10-20 13:08:55 +00:00
|
|
|
|
%global pypi_name ruamel.yaml
|
|
|
|
|
%global pname ruamel-yaml
|
2019-08-28 14:34:00 +00:00
|
|
|
|
%global commit ff02b83b8f91
|
2019-08-30 15:26:25 +00:00
|
|
|
|
%global debug_package %{nil}
|
2016-10-20 13:08:55 +00:00
|
|
|
|
|
|
|
|
|
Name: python-%{pname}
|
2019-08-28 14:34:00 +00:00
|
|
|
|
Version: 0.16.5
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: YAML 1.2 loader/dumper package for Python
|
2016-10-20 13:08:55 +00:00
|
|
|
|
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: https://bitbucket.org/ruamel/yaml
|
2016-10-26 20:49:09 +00:00
|
|
|
|
# Use bitbucket sources so we can run the tests
|
|
|
|
|
Source0: https://bitbucket.org/ruamel/yaml/get/%{version}.tar.gz#/%{pname}-%{version}.tar.gz
|
2017-01-31 22:30:07 +00:00
|
|
|
|
# Works with pytest 2.7
|
|
|
|
|
Patch0: python-ruamel-yaml-pytest27.patch
|
2018-06-29 11:30:52 +00:00
|
|
|
|
|
|
|
|
|
# Don't require ruamel.std.pathlib, but use stdlib's pathlib on py3, pathlib2 on py2
|
|
|
|
|
Patch1: python-ruamel-yaml-pathlib.patch
|
2019-08-28 14:34:00 +00:00
|
|
|
|
|
2018-07-10 13:56:25 +00:00
|
|
|
|
BuildRequires: gcc
|
2016-10-20 13:08:55 +00:00
|
|
|
|
BuildRequires: libyaml-devel
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
ruamel.yaml is a YAML 1.2 loader/dumper package for Python.
|
|
|
|
|
It is a derivative of Kirill Simonov’s PyYAML 3.11
|
|
|
|
|
|
2016-10-26 20:49:09 +00:00
|
|
|
|
%package -n python%{python3_pkgversion}-%{pname}
|
2019-08-28 14:34:00 +00:00
|
|
|
|
Summary: YAML 1.2 loader/dumper package for Python
|
2016-10-26 20:49:09 +00:00
|
|
|
|
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-setuptools
|
|
|
|
|
# For tests
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-pytest
|
2016-10-26 22:22:51 +00:00
|
|
|
|
# typing was added in Python 3.5
|
|
|
|
|
%if %{python3_pkgversion} == 34
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-typing
|
|
|
|
|
%endif
|
2016-10-26 20:49:09 +00:00
|
|
|
|
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}}
|
2016-10-20 13:08:55 +00:00
|
|
|
|
|
2016-10-26 20:49:09 +00:00
|
|
|
|
Requires: python%{python3_pkgversion}-setuptools
|
2016-10-26 22:22:51 +00:00
|
|
|
|
%if %{python3_pkgversion} == 34
|
|
|
|
|
Requires: python%{python3_pkgversion}-typing
|
|
|
|
|
%endif
|
2016-10-20 13:08:55 +00:00
|
|
|
|
|
2016-10-26 20:49:09 +00:00
|
|
|
|
%description -n python%{python3_pkgversion}-%{pname}
|
2016-10-20 13:08:55 +00:00
|
|
|
|
ruamel.yaml is a YAML 1.2 loader/dumper package for Python.
|
|
|
|
|
It is a derivative of Kirill Simonov’s PyYAML 3.11
|
|
|
|
|
|
|
|
|
|
%prep
|
2017-01-31 22:30:07 +00:00
|
|
|
|
%autosetup -n %{pname}-%{commit} -p1
|
2016-10-20 13:08:55 +00:00
|
|
|
|
rm -rf %{pypi_name}.egg-info
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%py3_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%{__python3} setup.py install --single-version-externally-managed --skip-build --root $RPM_BUILD_ROOT
|
|
|
|
|
|
2016-10-26 20:49:09 +00:00
|
|
|
|
%check
|
2019-08-30 15:26:25 +00:00
|
|
|
|
PYTHONPATH=$(echo build/lib) py.test-%{python3_version} _test/test_*.py
|
2016-10-20 13:08:55 +00:00
|
|
|
|
|
2016-10-26 20:49:09 +00:00
|
|
|
|
%files -n python%{python3_pkgversion}-%{pname}
|
2016-10-20 13:08:55 +00:00
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc README.rst
|
2019-08-30 15:26:25 +00:00
|
|
|
|
%{python3_sitelib}/ruamel
|
|
|
|
|
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?-*.pth
|
|
|
|
|
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
|
2016-10-20 13:08:55 +00:00
|
|
|
|
|
|
|
|
|
%changelog
|
2019-08-28 14:34:00 +00:00
|
|
|
|
* Tue Aug 27 2019 Chedi Toueiti <chedi.toueiti@gmail.com> - 0.16.5-1
|
|
|
|
|
- Update to 0.16.5
|
|
|
|
|
|
2019-08-19 08:55:54 +00:00
|
|
|
|
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.15.41-6
|
|
|
|
|
- Rebuilt for Python 3.8
|
|
|
|
|
|
2019-07-26 16:07:49 +00:00
|
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.41-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
2019-02-02 09:10:59 +00:00
|
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.41-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
2019-01-14 12:41:40 +00:00
|
|
|
|
* Mon Jan 14 2019 Miro Hrončok <mhroncok@redhat.com> - 0.15.41-3
|
|
|
|
|
- Subpackage python2-ruamel-yaml has been removed
|
|
|
|
|
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
|
|
|
|
|
|
2018-07-14 01:59:26 +00:00
|
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.41-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
2018-06-29 11:30:52 +00:00
|
|
|
|
* Fri Jun 29 2018 Miro Hrončok <mhroncok@redhat.com> - 0.15.41-1
|
|
|
|
|
- Update to 0.15.41
|
|
|
|
|
- Add patch not to require ruamel.std.pathlib
|
|
|
|
|
|
2018-06-19 09:18:27 +00:00
|
|
|
|
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.13.14-4
|
|
|
|
|
- Rebuilt for Python 3.7
|
|
|
|
|
|
2018-02-09 13:33:39 +00:00
|
|
|
|
* Fri Feb 09 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.13.14-3
|
|
|
|
|
- Update Python 2 dependency declarations to new packaging standards
|
|
|
|
|
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
|
|
|
|
|
2018-02-09 10:41:53 +00:00
|
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.14-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
|
2017-08-09 19:06:17 +00:00
|
|
|
|
* Wed Aug 9 2017 Orion Poplawski <orion@nwra.com> - 0.13.14-1
|
|
|
|
|
- Update to 0.13.14
|
|
|
|
|
|
2017-08-03 06:58:20 +00:00
|
|
|
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.13-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
|
|
2017-07-27 11:45:06 +00:00
|
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.13-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
|
2017-02-13 15:45:07 +00:00
|
|
|
|
* Mon Feb 13 2017 Jan Chaloupka <jchaloup@redhat.com> - 0.13.13-3
|
|
|
|
|
- The ruamel.yaml needs at least typing >= 3.5.2.2
|
|
|
|
|
related: #1386563
|
|
|
|
|
|
2017-02-11 10:24:20 +00:00
|
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.13-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
|
2017-01-31 22:44:30 +00:00
|
|
|
|
* Tue Jan 31 2017 Orion Poplawski <orion@cora.nwra.com> - 0.13.13-1
|
|
|
|
|
- Update to 0.13.13
|
|
|
|
|
|
2017-01-31 22:30:07 +00:00
|
|
|
|
* Tue Jan 31 2017 Orion Poplawski <orion@cora.nwra.com> - 0.12.14-7
|
|
|
|
|
- Add patch to support pytest 2.7 in EPEL7
|
|
|
|
|
|
2016-12-19 17:20:38 +00:00
|
|
|
|
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.12.14-6
|
|
|
|
|
- Rebuild for Python 3.6
|
|
|
|
|
|
2016-10-26 22:22:51 +00:00
|
|
|
|
* Wed Oct 26 2016 Orion Poplawski <orion@cora.nwra.com> - 0.12.14-5
|
|
|
|
|
- Require python34-typing on EPEL
|
|
|
|
|
- Ignore python2 test failure due to old pytest on EPEL7
|
|
|
|
|
|
2016-10-26 20:49:09 +00:00
|
|
|
|
* Wed Oct 26 2016 Orion Poplawski <orion@cora.nwra.com> - 0.12.14-4
|
|
|
|
|
- Build python3 package
|
|
|
|
|
- Run tests
|
|
|
|
|
|
2016-10-25 12:02:27 +00:00
|
|
|
|
* Tue Oct 25 2016 Chandan Kumar <chkumar@redhat.com> - 0.12.14-3
|
|
|
|
|
- Disabling python3 as python3-ruamel-ordereddict not available
|
|
|
|
|
|
2016-10-24 05:58:40 +00:00
|
|
|
|
* Mon Oct 24 2016 Chandan Kumar <chkumar@redhat.com> - 0.12.14-2
|
|
|
|
|
- Fixed python2-typing runtime dependency issue
|
|
|
|
|
|
2016-10-20 13:08:55 +00:00
|
|
|
|
* Fri Oct 14 2016 Chandan Kumar <chkumar@redhat.com> - 0.12.14-1
|
|
|
|
|
- Initial package.
|