diff --git a/python-ruamel.base.changes b/python-ruamel.base.changes index 091bfd0..fe1adc9 100644 --- a/python-ruamel.base.changes +++ b/python-ruamel.base.changes @@ -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 diff --git a/python-ruamel.base.spec b/python-ruamel.base.spec index 3ac2233..6aa4f6e 100644 --- a/python-ruamel.base.spec +++ b/python-ruamel.base.spec @@ -1,7 +1,7 @@ # # 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 # 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 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 +Url: https://bitbucket.org/ruamel/base +Source: https://files.pythonhosted.org/packages/source/r/ruamel.base/ruamel.base-%{version}.tar.gz +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch -%endif +%python_subpackages %description Shared code for ruamel implementations @@ -39,12 +40,17 @@ Shared code for ruamel implementations rm -rf *.egg-info %build -python setup.py build +%python_build %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,-) %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