Move srpm macros to macros.0python-srpm to be defined before other macros

This commit is contained in:
Orion Poplawski 2016-01-14 20:40:15 -07:00
parent 2553290f93
commit 1a6f8f12f8
2 changed files with 6 additions and 11 deletions

View File

@ -1,8 +0,0 @@
# python3_pkgversion specifies the version of Python 3 in the distro. It can be
# a specific version (e.g. 34 in Fedora EPEL7)
%python3_pkgversion 3
# Set to /bin/true to avoid %ifdefs and %{? in specfiles
%__python3_other /bin/true
%py3_other_build /bin/true
%py3_other_install /bin/true

View File

@ -1,11 +1,11 @@
Name: python-rpm-macros
Version: 3
Release: 5%{?dist}
Release: 6%{?dist}
Summary: The unversioned Python RPM macros
License: MIT
Source0: macros.python
Source1: macros.python-srpm
Source1: macros.0python-srpm
Source2: macros.python2
Source3: macros.python3
@ -57,7 +57,7 @@ install -m 644 %{SOURCE0} %{SOURCE1} %{SOURCE2} %{SOURCE3} \
%{_rpmconfigdir}/macros.d/macros.python
%files -n python-srpm-macros
%{_rpmconfigdir}/macros.d/macros.python-srpm
%{_rpmconfigdir}/macros.d/macros.0python-srpm
%files -n python2-rpm-macros
%{_rpmconfigdir}/macros.d/macros.python2
@ -67,6 +67,9 @@ install -m 644 %{SOURCE0} %{SOURCE1} %{SOURCE2} %{SOURCE3} \
%changelog
* Thu Jan 14 2016 Orion Poplawski <orion@cora.nwra.com> 3-6
- Move srpm macros to macros.0python-srpm to be defined before other macros
* Thu Jan 14 2016 Orion Poplawski <orion@cora.nwra.com> 3-5
- Handle noarch python sub-packages (bug #1290900)