[Python-checkins] python/dist/src/Misc/RPM python-2.3.spec, 1.2.12.14, 1.2.12.15

jafo at users.sourceforge.net jafo at users.sourceforge.net
Wed Jan 5 05:59:32 CET 2005


Update of /cvsroot/python/python/dist/src/Misc/RPM
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11543/Misc/RPM

Modified Files:
      Tag: release23-maint
	python-2.3.spec 
Log Message:
Merging the current development changes for the idle wrapper.


Index: python-2.3.spec
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/RPM/Attic/python-2.3.spec,v
retrieving revision 1.2.12.14
retrieving revision 1.2.12.15
diff -u -d -r1.2.12.14 -r1.2.12.15
--- python-2.3.spec	26 Jul 2004 14:32:11 -0000	1.2.12.14
+++ python-2.3.spec	5 Jan 2005 04:59:29 -0000	1.2.12.15
@@ -35,7 +35,7 @@
 %define name python
 %define version 2.3.4
 %define libvers 2.3
-%define release 3pydotorg
+%define release 4pydotorg
 %define __prefix /usr
 
 #  kludge to get around rpm <percent>define weirdness
@@ -131,6 +131,9 @@
 %endif
 
 %changelog
+* Tue Jan 04 2005 Sean Reifschneider <jafo-rpms at tummy.com> [2.3.4-4pydotorg]
+- Changing the idle wrapper so that it passes arguments to idle.
+
 * Thu Jul 22 2004 Sean Reifschneider <jafo-rpms at tummy.com> [2.3.4-3pydotorg]
 - Paul Tiemann fixes for %{prefix}.
 - Adding permission changes for directory as suggested by reimeika.ca
@@ -254,8 +257,11 @@
 
 ########
 #  Tools
-echo '#!/bin/bash' >${RPM_BUILD_ROOT}%{__prefix}/bin/idle%{binsuffix}
-echo 'exec %{__prefix}/bin/python%{binsuffix} %{__prefix}/%{libdirname}/python%{libvers}/idlelib/idle.py' >>$RPM_BUILD_ROOT%{__prefix}/bin/idle%{binsuffix}
+echo '#!%{__prefix}/bin/env python%{binsuffix}' >${RPM_BUILD_ROOT}%{__prefix}/bin/idle%{binsuffix}
+echo 'import os, sys' >>${RPM_BUILD_ROOT}%{__prefix}/bin/idle%{binsuffix}
+echo 'os.execvp("%{__prefix}/bin/python%{binsuffix}", ["%{__prefix}/bin/python%{binsuffix}", "%{__prefix}/lib/python%{libvers}/idlelib/idle.py"] + sys.argv[1:])' >>${RPM_BUILD_ROOT}%{__prefix}/bin/idle%{binsuffix}
+echo 'print "Failed to exec Idle"' >>${RPM_BUILD_ROOT}%{__prefix}/bin/idle%{binsuffix}
+echo 'sys.exit(1)' >>${RPM_BUILD_ROOT}%{__prefix}/bin/idle%{binsuffix}
 chmod 755 $RPM_BUILD_ROOT%{__prefix}/bin/idle%{binsuffix}
 cp -a Tools $RPM_BUILD_ROOT%{__prefix}/%{libdirname}/python%{libvers}
 



More information about the Python-checkins mailing list