add macros to enable dependency generator
References: https://fedoraproject.org/wiki/Changes/EnablingPythonGenerators
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
(cherry picked from commit ec476c84cc
)
This commit is contained in:
parent
8d3d1dde64
commit
910a7dfd4d
|
@ -71,3 +71,7 @@
|
||||||
print(" not recognized.")
|
print(" not recognized.")
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|
||||||
|
%python_enable_dependency_generator() \
|
||||||
|
%global __python_requires %{_rpmconfigdir}/pythondistdeps.py --requires \
|
||||||
|
%{nil}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
Name: python-rpm-macros
|
Name: python-rpm-macros
|
||||||
Version: 3
|
Version: 3
|
||||||
Release: 23%{?dist}
|
Release: 24%{?dist}
|
||||||
Summary: The unversioned Python RPM macros
|
Summary: The unversioned Python RPM macros
|
||||||
|
|
||||||
License: MIT
|
License: MIT
|
||||||
|
@ -77,8 +77,10 @@ install -m 644 %{SOURCE0} %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} \
|
||||||
%files -n platform-python-rpm-macros
|
%files -n platform-python-rpm-macros
|
||||||
%{rpmmacrodir}/macros.platform-python
|
%{rpmmacrodir}/macros.platform-python
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jan 19 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3-25
|
||||||
|
- Add %%python_enable_dependency_generator
|
||||||
|
|
||||||
* Thu Oct 26 2017 Ville Skyttä <ville.skytta@iki.fi> - 3-23
|
* Thu Oct 26 2017 Ville Skyttä <ville.skytta@iki.fi> - 3-23
|
||||||
- Use -Es/-I to invoke macro scriptlets (#1506355)
|
- Use -Es/-I to invoke macro scriptlets (#1506355)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue