forked from pool/python-ruamel.base
- Needed by google-cloud-sdk, generally useful OBS-URL: https://build.opensuse.org/request/show/453528 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruamel.base?expand=0&rev=1
51 lines
1.6 KiB
RPMSpec
51 lines
1.6 KiB
RPMSpec
#
|
|
# spec file for package python-ruamel.base
|
|
#
|
|
# 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.base
|
|
Version: 1.0.0
|
|
Release: 0
|
|
Url: https://bitbucket.org/ruamel/base
|
|
Summary: Shared ruamel routines
|
|
License: MIT
|
|
Group: Development/Languages/Python
|
|
Source: ruamel.base-%{version}.tar.gz
|
|
BuildRequires: python-setuptools
|
|
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
|
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
%else
|
|
BuildArch: noarch
|
|
%endif
|
|
|
|
%description
|
|
Shared code for ruamel implementations
|
|
|
|
%prep
|
|
%setup -q -n ruamel.base-%{version}
|
|
rm -rf *.egg-info
|
|
|
|
%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_sitelib}/*
|