rpms/drpython/F-11 import.log, NONE, 1.1 drpython.sh, 1.1, 1.2 drpython.spec, 1.5, 1.6

Marc Wiriadisastra mwiriadi at fedoraproject.org
Sun Jun 14 01:23:14 UTC 2009


Author: mwiriadi

Update of /cvs/pkgs/rpms/drpython/F-11
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv10172/F-11

Modified Files:
	drpython.sh drpython.spec 
Added Files:
	import.log 
Log Message:
Fixed bug #505753 through modifying the /usr/bin/drpython file to search
for the python_lib dir and use that instead of hard coding the file
location. 



--- NEW FILE import.log ---
drpython-3_11_0-5_fc11:F-11:drpython-3.11.0-5.fc11.src.rpm:1244942474


Index: drpython.sh
===================================================================
RCS file: /cvs/pkgs/rpms/drpython/F-11/drpython.sh,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- drpython.sh	5 Jan 2008 22:50:25 -0000	1.1
+++ drpython.sh	14 Jun 2009 01:22:43 -0000	1.2
@@ -1,3 +1,9 @@
-#!/bin/sh
+#!/usr/bin/python
+import os
+import distutils.sysconfig
 
-/usr/lib/python2.5/site-packages/drpython/drpython.py
+py = distutils.sysconfig.get_python_lib()
+py = py + "/drpython"
+os.chdir(py)
+cwd = os.getcwd()
+os.system (py + "/drpython.py")


Index: drpython.spec
===================================================================
RCS file: /cvs/pkgs/rpms/drpython/F-11/drpython.spec,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -p -r1.5 -r1.6
--- drpython.spec	24 Feb 2009 12:44:22 -0000	1.5
+++ drpython.spec	14 Jun 2009 01:22:43 -0000	1.6
@@ -1,10 +1,9 @@
 %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
 Name:           drpython
 Version:        3.11.0
-Release:        4%{?dist}
-Epoch:          1
+Release:        5%{?dist}
 Summary:        A simple Python IDE designed with teaching in mind
-
+Epoch:          1
 Group:          Development/Tools
 License:        GPLv2+
 URL:            http://drpython.sourceforge.net/
@@ -53,6 +52,8 @@ install -pm 0655 build/lib/%{name}/drZip
 install -pm 0655 build/lib/%{name}/drSetupPreferences.py $RPM_BUILD_ROOT%{python_sitelib}/%{name}/drSetupPreferences.py
 install -pDm 0644 build/lib/%{name}/bitmaps/drpython.png $RPM_BUILD_ROOT%{_datadir}/pixmaps/drpython.png
 install -pDm 0655 %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}/drpython
+
+
 desktop-file-install --vendor="fedora"                  \
      --dir=${RPM_BUILD_ROOT}%{_datadir}/applications \
      %{SOURCE1}
@@ -79,6 +80,9 @@ rm -rf $RPM_BUILD_ROOT
 %exclude %{python_sitelib}/%{name}/postinst.py
 
 %changelog
+* Sat Jun 13 2009 Marc Wiriadisastra <marc at mwiriadi.id.au> - 1:3.11.0-5
+- Fixed the drpython bin file to look for python instead of hard coding the python location
+
 * Tue Feb 24 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1:3.11.0-4
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
 




More information about the fedora-extras-commits mailing list