Explicitly opt-out from Python name-based provides and obsoletes generators
In Koji, python3-rpm-generators are not installed during the build. However, packagers can have them installed locally, in mock or in Copr. This way, we make sure the automatic provides (and obsoletes) do not magically appear only in some environments. Since python3-rpm-macros actually requires python-rpm-macros, the requirement is self-satisfied when the automatic provides are generated.
This commit is contained in:
parent
2ebee9d4cb
commit
99e7d8694c
@ -49,7 +49,7 @@ elseif posix.stat('macros.python-srpm') then
|
|||||||
end
|
end
|
||||||
}
|
}
|
||||||
Version: %{__default_python3_version}
|
Version: %{__default_python3_version}
|
||||||
Release: 15%{?dist}
|
Release: 16%{?dist}
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
@ -58,6 +58,12 @@ BuildArch: noarch
|
|||||||
# For compileall2.py
|
# For compileall2.py
|
||||||
Requires: python-srpm-macros = %{version}-%{release}
|
Requires: python-srpm-macros = %{version}-%{release}
|
||||||
|
|
||||||
|
# The packages are called python(3)-(s)rpm-macros
|
||||||
|
# We never want python3-rpm-macros to provide python-rpm-macros
|
||||||
|
# We opt out from all Python name-based automatic provides and obsoletes
|
||||||
|
%undefine __pythonname_provides
|
||||||
|
%undefine __pythonname_obsoletes
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This package contains the unversioned Python RPM macros, that most
|
This package contains the unversioned Python RPM macros, that most
|
||||||
implementations should rely on.
|
implementations should rely on.
|
||||||
@ -145,6 +151,9 @@ install -m 755 brp-* %{buildroot}%{_rpmconfigdir}/redhat/
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Jan 31 2022 Miro Hrončok <mhroncok@redhat.com> - 3.10-16
|
||||||
|
- Explicitly opt-out from Python name-based provides and obsoletes generators
|
||||||
|
|
||||||
* Tue Dec 21 2021 Tomas Orsava <torsava@redhat.com> - 3.10-15
|
* Tue Dec 21 2021 Tomas Orsava <torsava@redhat.com> - 3.10-15
|
||||||
- Add lua helper functions to make it possible to automatically generate
|
- Add lua helper functions to make it possible to automatically generate
|
||||||
Obsoletes tags
|
Obsoletes tags
|
||||||
|
Loading…
Reference in New Issue
Block a user