diff --git a/python-cmd2.changes b/python-cmd2.changes index 184dadb..1600bb3 100644 --- a/python-cmd2.changes +++ b/python-cmd2.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Aug 7 07:58:02 UTC 2017 - tbechtold@suse.com + +- convert to singlespec + ------------------------------------------------------------------- Mon Aug 7 07:40:00 UTC 2017 - tbechtold@suse.com diff --git a/python-cmd2.spec b/python-cmd2.spec index e2463cc..e7d4252 100644 --- a/python-cmd2.spec +++ b/python-cmd2.spec @@ -16,6 +16,7 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-cmd2 Version: 0.7.5 Release: 0 @@ -24,14 +25,17 @@ License: MIT Group: Development/Languages/Python Url: http://packages.python.org/cmd2/ Source: https://files.pythonhosted.org/packages/source/c/cmd2/cmd2-%{version}.tar.gz -BuildRequires: python-devel -BuildRequires: python-setuptools +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: python-rpm-macros Requires: python-pyparsing >= 2.0.1 Requires: python-pyperclip Requires: python-six BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch +%python_subpackages + %description Enhancements for standard library's cmd module. @@ -55,12 +59,12 @@ Drop-in replacement adds several features for command-prompt tools: %setup -q -n cmd2-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install -%files +%files %{python_files} %defattr(-,root,root,-) %doc README.md LICENSE %{python_sitelib}/*