14
0

Accepting request 493098 from devel:languages:python

1

OBS-URL: https://build.opensuse.org/request/show/493098
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-prompt_toolkit?expand=0&rev=2
This commit is contained in:
2017-05-17 15:14:44 +00:00
committed by Git OBS Bridge
2 changed files with 28 additions and 9 deletions

View File

@@ -1,3 +1,13 @@
-------------------------------------------------------------------
Fri May 5 21:56:34 UTC 2017 - toddrme2178@gmail.com
- Fix Provides/Obsoletes
-------------------------------------------------------------------
Mon Apr 24 20:40:09 UTC 2017 - toddrme2178@gmail.com
- Implement single-spec version.
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Apr 3 14:32:58 UTC 2017 - toddrme2178@gmail.com Mon Apr 3 14:32:58 UTC 2017 - toddrme2178@gmail.com

View File

@@ -16,6 +16,8 @@
# #
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define oldpython python
Name: python-prompt_toolkit Name: python-prompt_toolkit
Version: 1.0.14 Version: 1.0.14
Release: 0 Release: 0
@@ -24,17 +26,23 @@ License: BSD-3-Clause
Group: Development/Languages/Python Group: Development/Languages/Python
Url: https://github.com/jonathanslenders/python-prompt-toolkit Url: https://github.com/jonathanslenders/python-prompt-toolkit
Source: https://files.pythonhosted.org/packages/source/p/prompt_toolkit/prompt_toolkit-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/p/prompt_toolkit/prompt_toolkit-%{version}.tar.gz
BuildRequires: python-Pygments BuildRequires: fdupes
BuildRequires: python-devel BuildRequires: python-rpm-macros
BuildRequires: python-six >= 1.9.0 BuildRequires: %{python_module devel}
BuildRequires: python-wcwidth BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module Pygments}
BuildRequires: %{python_module six >= 1.9.0}
BuildRequires: %{python_module wcwidth}
Requires: python-Pygments Requires: python-Pygments
Requires: python-six >= 1.9.0 Requires: python-six >= 1.9.0
Requires: python-wcwidth Requires: python-wcwidth
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch BuildArch: noarch
Provides: python-python-prompt-toolkit = %{version} %ifpython2
Obsoletes: python-python-prompt-toolkit < %{version} Obsoletes: %{oldpython}-python-prompt-toolkit < %{version}
Provides: %{oldpython}-python-prompt-toolkit = %{version}
%endif
%python_subpackages
%description %description
Prompt toolkit is a Library for building powerful interactive command Prompt toolkit is a Library for building powerful interactive command
@@ -44,12 +52,13 @@ lines in Python.
%setup -q -n prompt_toolkit-%{version} %setup -q -n prompt_toolkit-%{version}
%build %build
python setup.py build %python_build
%install %install
python setup.py install --prefix=%{_prefix} --root=%{buildroot} %python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files %files %{python_files}
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc README.rst CHANGELOG %doc README.rst CHANGELOG
%{python_sitelib}/* %{python_sitelib}/*