Provide the package without python prefix itself for py2 as default

OBS-URL: https://build.opensuse.org/package/show/network:messaging:matrix/matrix-synapse?expand=0&rev=6
This commit is contained in:
Oliver Kurz 2017-07-01 19:22:58 +00:00 committed by Git OBS Bridge
parent d66fe0311f
commit c472423472

View File

@ -16,6 +16,7 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define github_user matrix-org
%define short_name synapse
Name: matrix-%{short_name}
@ -65,6 +66,9 @@ Requires: python-msgpack-python >= 0.3.0
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
%ifpython2
Provides: %{name} = %{version}
%endif
%python_subpackages