diff --git a/python-positional.changes b/python-positional.changes index 5d0e5bc..83284ec 100644 --- a/python-positional.changes +++ b/python-positional.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Dec 1 07:21:09 UTC 2017 - dmueller@suse.com + +- convert to singlespec + ------------------------------------------------------------------- Wed Sep 21 14:09:37 UTC 2016 - dmueller@suse.com diff --git a/python-positional.spec b/python-positional.spec index c73c8fd..f3cd298 100644 --- a/python-positional.spec +++ b/python-positional.spec @@ -1,7 +1,7 @@ # # spec file for package python-positional # -# 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,6 +16,7 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-positional Version: 1.1.1 Release: 0 @@ -23,12 +24,14 @@ Summary: Library to enforce positional or key-word arguments License: Apache-2.0 Group: Development/Languages/Python Url: https://github.com/morganfainberg/positional -Source: https://pypi.io/packages/source/p/positional/positional-%{version}.tar.gz -BuildRequires: python-devel -BuildRequires: python-pbr -BuildRequires: python-setuptools +Source: https://files.pythonhosted.org/packages/source/p/positional/positional-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module pbr} +BuildRequires: %{python_module setuptools} +BuildRequires: python-rpm-macros Requires: python-wrapt BuildArch: noarch +%python_subpackages %description `positional` provides a decorator which enforces only some args may be passed @@ -39,13 +42,12 @@ of the google-api client. %setup -q -n positional-%{version} %build -%{__python} setup.py build +%python_build %install -%{__python} setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install -%files -%defattr(-,root,root,-) +%files %{python_files} %doc LICENSE %doc README.rst %{python_sitelib}/positional