forked from pool/python-ruamel.yaml
- Needed by google-cloud-sdk, generally useful OBS-URL: https://build.opensuse.org/request/show/453530 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruamel.yaml?expand=0&rev=1
52 lines
1.6 KiB
RPMSpec
52 lines
1.6 KiB
RPMSpec
#
|
|
# spec file for package python-ruamel.yaml
|
|
#
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: python-ruamel.yaml
|
|
Version: 0.12.14
|
|
Release: 0
|
|
Url: https://bitbucket.org/ruamel/yaml
|
|
Summary: Python YAML parser
|
|
License: MIT
|
|
Group: Development/Languages/Python
|
|
Source: ruamel.yaml-%{version}.tar.gz
|
|
Source1: LICENSE
|
|
Requires: python-ruamel.ordereddict
|
|
BuildRequires: python-devel
|
|
BuildRequires: python-ruamel.ordereddict
|
|
Buildrequires: python-setuptools
|
|
|
|
%description
|
|
ruamel.yaml is a YAML parser/emitter that supports roundtrip preservation
|
|
of comments, seq/map flow style, and map key order
|
|
|
|
%prep
|
|
%setup -q -n ruamel.yaml-%{version}
|
|
rm -rf *egg-info
|
|
cp %{SOURCE1} .
|
|
|
|
%build
|
|
python setup.py build
|
|
|
|
%install
|
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot} --single-version-externally-managed
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc LICENSE README.rst
|
|
%{python_sitearch}/*
|