From d2b9971f178c615136a9816f542030fe542c996d Mon Sep 17 00:00:00 2001 From: David Malcolm Date: May 14 2013 19:53:21 +0000 Subject: 2.7.4-5: fix multilib issue in python-tools due to pynche (rhbz#831437) * Tue May 14 2013 David Malcolm - 2.7.4-5 - fix multilib issue in python-tools due to /usr/bin/pynche (source 7; rhbz#831437) --- diff --git a/pynche b/pynche new file mode 100644 index 0000000..368d740 --- /dev/null +++ b/pynche @@ -0,0 +1,2 @@ +#!/bin/bash +exec `python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(plat_specific = True))"`/pynche/pynche diff --git a/python.spec b/python.spec index 4b67c63..d8cad9a 100644 --- a/python.spec +++ b/python.spec @@ -106,7 +106,7 @@ Summary: An interpreted, interactive, object-oriented programming language Name: %{python} # Remember to also rebase python-docs when changing this: Version: 2.7.4 -Release: 4%{?dist} +Release: 5%{?dist} License: Python Group: Development/Languages Requires: %{python}-libs%{?_isa} = %{version}-%{release} @@ -195,6 +195,7 @@ Source5: pyfuntop.stp # __python2, python2_sitelib, python2_sitearch, python2_version Source6: macros.python2 +Source7: pynche # Modules/Setup.dist is ultimately used by the "makesetup" script to construct # the Makefile and config.c @@ -1394,13 +1395,10 @@ mv %{buildroot}/%{_mandir}/man1/python.1 %{buildroot}/%{_mandir}/man1/python%{py mkdir -p ${RPM_BUILD_ROOT}%{site_packages} #pynche -cat > ${RPM_BUILD_ROOT}%{_bindir}/pynche << EOF -#!/bin/bash -exec %{site_packages}/pynche/pynche -EOF +install -p -m755 %{SOURCE7} ${RPM_BUILD_ROOT}%{_bindir}/pynche chmod 755 ${RPM_BUILD_ROOT}%{_bindir}/pynche rm -f Tools/pynche/*.pyw -cp -r Tools/pynche \ +cp -rp Tools/pynche \ ${RPM_BUILD_ROOT}%{site_packages}/ mv Tools/pynche/README Tools/pynche/README.pynche @@ -1967,6 +1965,10 @@ rm -fr %{buildroot} # ====================================================== %changelog +* Tue May 14 2013 David Malcolm - 2.7.4-5 +- fix multilib issue in python-tools due to /usr/bin/pynche (source 7; +rhbz#831437) + * Thu May 02 2013 Bohuslav Kabrda - 2.7.4-4 - Add patch that enables building on ppc64p7.