diff --git a/macros.python b/macros.python index 8b168b5..7c0f058 100644 --- a/macros.python +++ b/macros.python @@ -71,3 +71,7 @@ print(" not recognized.") end } + +%python_enable_dependency_generator() \ +%global __python_requires %{_rpmconfigdir}/pythondistdeps.py --requires \ +%{nil} diff --git a/python-rpm-macros.spec b/python-rpm-macros.spec index ac986fa..27faa9e 100644 --- a/python-rpm-macros.spec +++ b/python-rpm-macros.spec @@ -1,6 +1,6 @@ Name: python-rpm-macros Version: 3 -Release: 20%{?dist} +Release: 21%{?dist} Summary: The unversioned Python RPM macros License: MIT @@ -69,6 +69,9 @@ install -m 644 %{SOURCE0} %{SOURCE1} %{SOURCE2} %{SOURCE3} \ %changelog +* Fri Jan 19 2018 Igor Gnatenko - 3-25 +- Add %%python_enable_dependency_generator + * Fri Mar 03 2017 Michal Cyprian - 3-20 - Revert "Switch %%__python3 to /usr/libexec/system-python" after the Fedora Change https://fedoraproject.org/wiki/Changes/Making_sudo_pip_safe