SHA256
1
0
forked from pool/python38

- Add provides python3-bla on all the subpkgs in case we are

primary provider of the functionality

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python38?expand=0&rev=11
This commit is contained in:
Tomáš Chvátal 2020-07-10 10:08:24 +00:00 committed by Git OBS Bridge
parent f935fec56c
commit ecb58de0d6
2 changed files with 40 additions and 19 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Jul 10 10:07:50 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
- Add provides python3-bla on all the subpkgs in case we are
primary provider of the functionality
-------------------------------------------------------------------
Fri Jul 10 10:02:01 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>

View File

@ -1,5 +1,5 @@
#
# spec file for package python3
# spec file for package python38
#
# Copyright (c) 2020 SUSE LLC
#
@ -202,6 +202,9 @@ Recommends: %{python_pkg_name}-curses
Recommends: %{python_pkg_name}-dbm
Recommends: %{python_pkg_name}-pip
Provides: python = %{python_version}
%if %{primary_interpreter}
Provides: python3 = %{python-version}
%endif
%if 0%{?suse_version} >= 1500
BuildRequires: libnsl-devel
BuildRequires: libtirpc-devel
@ -225,6 +228,9 @@ development environment (python3-idle).
%package -n %{python_pkg_name}-tk
Summary: TkInter, a Python Tk Interface
Requires: %{python_pkg_name} = %{version}
%if %{primary_interpreter}
Provides: python3-tk = %{version}
%endif
%description -n %{python_pkg_name}-tk
Python interface to Tk. Tk is the GUI toolkit that comes with Tcl.
@ -232,6 +238,9 @@ Python interface to Tk. Tk is the GUI toolkit that comes with Tcl.
%package -n %{python_pkg_name}-curses
Summary: Python Interface to the (N)Curses Library
Requires: %{python_pkg_name} = %{version}
%if %{primary_interpreter}
Provides: python3-curses
%endif
%description -n %{python_pkg_name}-curses
An easy to use interface to the (n)curses CUI library. CUI stands for
@ -240,6 +249,9 @@ Console User Interface.
%package -n %{python_pkg_name}-dbm
Summary: Python Interface to the GDBM Library
Requires: %{python_pkg_name} = %{version}
%if %{primary_interpreter}
Provides: python3-dbm
%endif
%description -n %{python_pkg_name}-dbm
An easy to use interface for Unix DBM databases, and more specifically,
@ -249,6 +261,9 @@ the GNU implementation GDBM.
Summary: An Integrated Development Environment for Python
Requires: %{python_pkg_name} = %{version}
Requires: %{python_pkg_name}-tk
%if %{primary_interpreter}
Provides: python3-idle = %{version}
%endif
%description -n %{python_pkg_name}-idle
IDLE is a Tkinter based integrated development environment for Python.
@ -285,31 +300,24 @@ Obsoletes: python3 < 3.2
# no Provides, because python3 is obviously provided by package python3
# python 3.4 provides asyncio
Provides: %{python_pkg_name}-asyncio = %{version}
%if %{primary_interpreter}
Provides: python3-asyncio = %{version}
Obsoletes: python3-asyncio < %{version}
%endif
# python 3.6 provides typing
Provides: %{python_pkg_name}-typing = %{version}
%if %{primary_interpreter}
Provides: python3-typing = %{version}
Obsoletes: python3-typing < %{version}
%endif
# python3-xml was merged into python3, now moved into -base
Provides: %{python_pkg_name}-xml = %{version}
%if %{primary_interpreter}
Provides: python3-xml = %{version}
Obsoletes: python3-xml < %{version}
%endif
# python-importlib-metadata was specifical project which was merged into 3.8
Provides: %{python_pkg_name}-importlib-metadata = %{version}
%if %{primary_interpreter}
Provides: python3-importlib-metadata = %{version}
Obsoletes: python3-importlib-metadata < %{version}
%endif
# python-importlib_resources is a backport of 3.7 behaviour into older pythons
Provides: %{python_pkg_name}-importlib_resources = %{version}
%if %{primary_interpreter}
Provides: python3-base = %{version}
Provides: python3-asyncio = %{version}
Obsoletes: python3-asyncio < %{version}
Provides: python3-typing = %{version}
Obsoletes: python3-typing < %{version}
Provides: python3-xml = %{version}
Obsoletes: python3-xml < %{version}
Provides: python3-importlib-metadata = %{version}
Obsoletes: python3-importlib-metadata < %{version}
Provides: python3-importlib_resources = %{version}
Obsoletes: python3-importlib_resources < %{version}
%endif
@ -328,14 +336,15 @@ database and UI toolkits support.
%package -n %{python_pkg_name}-tools
Summary: Python Utility and Demonstration Scripts
Requires: %{python_pkg_name}-base = %{version}
Provides: %{python_pkg_name}-demo = %{version}
Provides: %{python_pkg_name}-2to3 = %{version}
%if %{primary_interpreter}
Provides: pytohn3-tools = %{version}
Provides: python3-demo = %{version}
Provides: python3-2to3 = %{version}
Obsoletes: python3-demo < %{version}
Obsoletes: python3-2to3 < %{version}
%endif
Provides: %{python_pkg_name}-demo = %{version}
Provides: %{python_pkg_name}-2to3 = %{version}
%description -n %{python_pkg_name}-tools
A number of scripts that are useful for building, testing or extending Python,
@ -344,6 +353,9 @@ and a set of demonstration programs.
%package -n %{python_pkg_name}-devel
Summary: Include Files and Libraries Mandatory for Building Python Modules
Requires: %{python_pkg_name}-base = %{version}
%if %{primary_interpreter}
Provides: python3-devel = %{version}
%endif
%description -n %{python_pkg_name}-devel
The Python programming language's interpreter can be extended with
@ -360,6 +372,9 @@ package up to version 2.2.2.
Summary: Unit tests for Python and its standard library
Requires: %{python_pkg_name} = %{version}
Requires: %{python_pkg_name}-tk = %{version}
%if %{primary_interpreter}
Provides: pytohn3-testsuite = %{version}
%endif
%description -n %{python_pkg_name}-testsuite
Unit tests that are useful for verifying integrity and functionality