diff --git a/python3.spec b/python3.spec index d1eecf0..50ee0d4 100644 --- a/python3.spec +++ b/python3.spec @@ -126,7 +126,7 @@ Summary: Version 3 of the Python programming language aka Python 3000 Name: python3 Version: %{pybasever}.2 -Release: 14%{?dist} +Release: 15%{?dist} License: Python Group: Development/Languages @@ -1328,9 +1328,11 @@ sed \ # Rename the script that differs on different arches to arch specific name -mv %{buildroot}%{_bindir}/python%{LDVERSION_optimized}-{,%{_arch}-}config +mv %{buildroot}%{_bindir}/python%{LDVERSION_optimized}-{,`uname -m`-}config echo -e '#!/bin/sh\nexec `dirname $0`/python%{LDVERSION_optimized}-`uname -m`-config "$@"' > \ %{buildroot}%{_bindir}/python%{LDVERSION_optimized}-config +echo '[ $? -eq 127 ] && echo "Could not find python%{LDVERSION_optimized}-`uname -m`-config. Look around to see available arches." >&2' >> \ + %{buildroot}%{_bindir}/python%{LDVERSION_optimized}-config chmod +x %{buildroot}%{_bindir}/python%{LDVERSION_optimized}-config # ====================================================== @@ -1605,7 +1607,7 @@ rm -fr %{buildroot} %{_bindir}/python3-config %{_bindir}/python%{pybasever}-config %{_bindir}/python%{LDVERSION_optimized}-config -%{_bindir}/python%{LDVERSION_optimized}-%{_arch}-config +%{_bindir}/python%{LDVERSION_optimized}-*-config %{_libdir}/libpython%{LDVERSION_optimized}.so %{_libdir}/pkgconfig/python-%{LDVERSION_optimized}.pc %{_libdir}/pkgconfig/python-%{pybasever}.pc @@ -1771,6 +1773,9 @@ rm -fr %{buildroot} # ====================================================== %changelog +* Fri May 30 2014 Miro Hrončok - 3.3.2-15 +- In config script, use uname -m to write the arch + * Thu May 29 2014 Miro Hrončok - 3.3.2-14 - Forward arguments to the arch specific config script Resolves: rhbz#1102683