- fix build for SLE12 and older

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cmd2?expand=0&rev=49
This commit is contained in:
Dirk Mueller 2019-04-15 06:38:34 +00:00 committed by Git OBS Bridge
parent 532bc8676d
commit 068400a824
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Apr 15 06:38:20 UTC 2019 - Dirk Mueller <dmueller@suse.com>
- fix build for SLE12 and older
-------------------------------------------------------------------
Tue Apr 9 07:34:57 UTC 2019 - Thomas Bechtold <tbechtold@suse.com>

View File

@ -50,7 +50,7 @@ BuildRequires: %{python_module pytest}
BuildRequires: %{python_module wcwidth}
# Required by tests.
BuildRequires: vim
%if 0%{?sle_version} < 150000 && 0%{?is_opensuse}
%if 0%{?suse_version} < 130200
BuildRequires: %{python_module contextlib2}
BuildRequires: %{python_module typing}
%endif
@ -96,6 +96,6 @@ chmod a-x README.md
%files %{python_files}
%license LICENSE
%doc CHANGELOG.md CODEOWNERS README.md
%{python_sitelib}/*
%{python3_sitelib}/*
%changelog