Filter out automatic /usr/bin/python3.X requirement...
...recommend the main package from libs instead. Resolves https://bugzilla.redhat.com/show_bug.cgi?id=1547131
This commit is contained in:
parent
ffaa0f3078
commit
3f778c43e3
21
python3.spec
21
python3.spec
@ -14,7 +14,7 @@ URL: https://www.python.org/
|
|||||||
# WARNING When rebasing to a new Python version,
|
# WARNING When rebasing to a new Python version,
|
||||||
# remember to update the python3-docs package as well
|
# remember to update the python3-docs package as well
|
||||||
Version: %{pybasever}.4
|
Version: %{pybasever}.4
|
||||||
Release: 14%{?dist}
|
Release: 15%{?dist}
|
||||||
License: Python
|
License: Python
|
||||||
|
|
||||||
|
|
||||||
@ -436,6 +436,14 @@ Requires: python3-setuptools
|
|||||||
Requires: python3-pip
|
Requires: python3-pip
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
# This prevents ALL subpackages built from this spec to require
|
||||||
|
# /usr/bin/python3*. Granularity per subpackage is impossible.
|
||||||
|
# It's intended for the libs package not to drag in the interpreter, see
|
||||||
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1547131
|
||||||
|
# All others require %%{name} anyway.
|
||||||
|
%global __requires_exclude ^/usr/bin/python3
|
||||||
|
|
||||||
|
|
||||||
# The description used both for the SRPM and the main `python3` subpackage:
|
# The description used both for the SRPM and the main `python3` subpackage:
|
||||||
%description
|
%description
|
||||||
Python is an accessible, high-level, dynamically typed, interpreted programming
|
Python is an accessible, high-level, dynamically typed, interpreted programming
|
||||||
@ -474,6 +482,12 @@ Requires: glibc%{?_isa} >= 2.24.90-26
|
|||||||
Requires: gdbm%{?_isa} >= 1:1.13
|
Requires: gdbm%{?_isa} >= 1:1.13
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
# There are files in the standard library that have python shebang.
|
||||||
|
# We've filtered the automatic requirement out so libs are installable without
|
||||||
|
# the main package. This however makes it pulled in by default.
|
||||||
|
# See https://bugzilla.redhat.com/show_bug.cgi?id=1547131
|
||||||
|
Recommends: %{name}%{?_isa} = %{version}-%{release}
|
||||||
|
|
||||||
# For backward compatibility only, remove in F29:
|
# For backward compatibility only, remove in F29:
|
||||||
Provides: system-python-libs = %{version}-%{release}
|
Provides: system-python-libs = %{version}-%{release}
|
||||||
Provides: system-python-libs%{?_isa} = %{version}-%{release}
|
Provides: system-python-libs%{?_isa} = %{version}-%{release}
|
||||||
@ -1491,6 +1505,11 @@ CheckPython optimized
|
|||||||
# ======================================================
|
# ======================================================
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Feb 21 2018 Miro Hrončok <mhroncok@redhat.com> - 3.6.4-15
|
||||||
|
- Filter out automatic /usr/bin/python3.X requirement,
|
||||||
|
recommend the main package from libs instead
|
||||||
|
Resolves: rhbz#1547131
|
||||||
|
|
||||||
* Thu Feb 15 2018 Iryna Shcherbina <ishcherb@redhat.com> - 3.6.4-14
|
* Thu Feb 15 2018 Iryna Shcherbina <ishcherb@redhat.com> - 3.6.4-14
|
||||||
- Remove the python3-tools package (#rhbz 1312030)
|
- Remove the python3-tools package (#rhbz 1312030)
|
||||||
- Move /usr/bin/2to3 to python3-devel
|
- Move /usr/bin/2to3 to python3-devel
|
||||||
|
Loading…
Reference in New Issue
Block a user