forked from pool/python-ruamel.base
Accepting request 490297 from home:alois:branches:devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/490297 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruamel.base?expand=0&rev=3
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Apr 24 13:16:01 UTC 2017 - aloisio@gmx.com
|
||||||
|
|
||||||
|
- Converted to single-spec
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Oct 11 18:24:27 UTC 2016 - rjschwei@suse.com
|
Tue Oct 11 18:24:27 UTC 2016 - rjschwei@suse.com
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-ruamel.base
|
# spec file for package python-ruamel.base
|
||||||
#
|
#
|
||||||
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -16,20 +16,21 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
Name: python-ruamel.base
|
Name: python-ruamel.base
|
||||||
Version: 1.0.0
|
Version: 1.0.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Url: https://bitbucket.org/ruamel/base
|
|
||||||
Summary: Shared ruamel routines
|
Summary: Shared ruamel routines
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Source: ruamel.base-%{version}.tar.gz
|
Url: https://bitbucket.org/ruamel/base
|
||||||
BuildRequires: python-setuptools
|
Source: https://files.pythonhosted.org/packages/source/r/ruamel.base/ruamel.base-%{version}.tar.gz
|
||||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
BuildRequires: %{python_module setuptools}
|
||||||
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
BuildRequires: fdupes
|
||||||
%else
|
BuildRequires: python-rpm-macros
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%endif
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Shared code for ruamel implementations
|
Shared code for ruamel implementations
|
||||||
@@ -39,12 +40,17 @@ Shared code for ruamel implementations
|
|||||||
rm -rf *.egg-info
|
rm -rf *.egg-info
|
||||||
|
|
||||||
%build
|
%build
|
||||||
python setup.py build
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot} --single-version-externally-managed
|
%python_install --single-version-externally-managed
|
||||||
|
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%files
|
%files %{python_files}
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc LICENSE README.rst
|
%doc LICENSE README.rst
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/ruamel
|
||||||
|
%{python_sitelib}/ruamel.base-%{version}-py%{python_version}-nspkg.pth
|
||||||
|
%{python_sitelib}/ruamel.base-%{version}-py%{python_version}.egg-info
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
Reference in New Issue
Block a user