2016-10-20 13:08:55 +00:00
|
|
|
|
%global pypi_name ruamel.yaml
|
|
|
|
|
%global pname ruamel-yaml
|
|
|
|
|
|
|
|
|
|
%if 0%{?fedora}
|
2016-10-25 12:02:27 +00:00
|
|
|
|
# Disabling python3 as python3-ruamel-ordereddict is not available
|
|
|
|
|
%global with_python3 0
|
2016-10-20 13:08:55 +00:00
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
Name: python-%{pname}
|
|
|
|
|
Version: 0.12.14
|
2016-10-25 12:02:27 +00:00
|
|
|
|
Release: 3%{?dist}
|
2016-10-20 13:08:55 +00:00
|
|
|
|
Summary: YAML 1.2 loader/dumper package for Python
|
|
|
|
|
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: https://bitbucket.org/ruamel/yaml
|
|
|
|
|
Source0: https://files.pythonhosted.org/packages/source/r/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
BuildRequires: python2-devel
|
|
|
|
|
BuildRequires: python-setuptools
|
|
|
|
|
|
|
|
|
|
BuildRequires: libyaml-devel
|
|
|
|
|
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
ruamel.yaml is a YAML 1.2 loader/dumper package for Python.
|
|
|
|
|
It is a derivative of Kirill Simonov’s PyYAML 3.11
|
|
|
|
|
|
|
|
|
|
%package -n python2-%{pname}
|
|
|
|
|
Summary: YAML 1.2 loader/dumper package for Python
|
|
|
|
|
%{?python_provide:%python_provide python2-%{pypi_name}}
|
|
|
|
|
|
|
|
|
|
Requires: python-ruamel-ordereddict
|
2016-10-24 05:56:21 +00:00
|
|
|
|
Requires: python2-typing
|
2016-10-20 13:08:55 +00:00
|
|
|
|
Requires: python-setuptools
|
|
|
|
|
|
|
|
|
|
%description -n python2-%{pname}
|
|
|
|
|
ruamel.yaml is a YAML 1.2 loader/dumper package for Python.
|
|
|
|
|
It is a derivative of Kirill Simonov’s PyYAML 3.11
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
%package -n python3-%{pname}
|
|
|
|
|
Summary: YAML 1.2 loader/dumper package for Python
|
|
|
|
|
%{?python_provide:%python_provide python3-%{pypi_name}}
|
|
|
|
|
|
|
|
|
|
Requires: python3-ruamel-ordereddict
|
|
|
|
|
Requires: python3-setuptools
|
|
|
|
|
|
|
|
|
|
%description -n python3-%{pname}
|
|
|
|
|
ruamel.yaml is a YAML 1.2 loader/dumper package for Python.
|
|
|
|
|
It is a derivative of Kirill Simonov’s PyYAML 3.11
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{pypi_name}-%{version}
|
|
|
|
|
rm -rf %{pypi_name}.egg-info
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%py2_build
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
%py3_build
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
%{__python3} setup.py install --single-version-externally-managed --skip-build --root $RPM_BUILD_ROOT
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%{__python2} setup.py install --single-version-externally-managed --skip-build --root $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
%files -n python2-%{pname}
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc README.rst
|
|
|
|
|
%{python2_sitearch}/ruamel
|
|
|
|
|
%{python2_sitearch}/_ruamel_yaml.so
|
|
|
|
|
%{python2_sitearch}/%{pypi_name}-%{version}-py?.?-*.pth
|
|
|
|
|
%{python2_sitearch}/%{pypi_name}-%{version}-py?.?.egg-info
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
%files -n python3-%{pname}
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc README.rst
|
|
|
|
|
%{python3_sitearch}/ruamel
|
|
|
|
|
%{python3_sitearch}/_ruamel_yaml.cpython-35m-*
|
|
|
|
|
%{python3_sitearch}/%{pypi_name}-%{version}-py?.?-*.pth
|
|
|
|
|
%{python3_sitearch}/%{pypi_name}-%{version}-py?.?.egg-info
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%changelog
|
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.
|