rpms/drpython/devel 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:20:16 UTC 2009
- Previous message (by thread): rpms/amarok/F-10 .cvsignore, 1.44, 1.45 amarok.spec, 1.145, 1.146 sources, 1.46, 1.47 amarok-2.0.96-old-libgpod.patch, 1.7, NONE
- Next message (by thread): rpms/drpython/F-11 import.log, NONE, 1.1 drpython.sh, 1.1, 1.2 drpython.spec, 1.5, 1.6
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: mwiriadi
Update of /cvs/pkgs/rpms/drpython/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv9349/devel
Modified Files:
drpython.sh drpython.spec
Added Files:
import.log
Log Message:
Fixed /usr/bin/drpython to find python and then use that program instead
of hard coding the python directory. It only affect python2.6 directories
as previously the hard coding worked fine.
--- NEW FILE import.log ---
drpython-3_11_0-5_fc11:HEAD:drpython-3.11.0-5.fc11.src.rpm:1244942292
Index: drpython.sh
===================================================================
RCS file: /cvs/pkgs/rpms/drpython/devel/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:19:45 -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/devel/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:19:45 -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
- Previous message (by thread): rpms/amarok/F-10 .cvsignore, 1.44, 1.45 amarok.spec, 1.145, 1.146 sources, 1.46, 1.47 amarok-2.0.96-old-libgpod.patch, 1.7, NONE
- Next message (by thread): rpms/drpython/F-11 import.log, NONE, 1.1 drpython.sh, 1.1, 1.2 drpython.spec, 1.5, 1.6
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list