1 %include /usr/lib/rpm/macros.python
2 Summary: DrPython - cross-platform IDE to aid programming in Python
3 Summary(pl): DrPython - wieloplatformowe IDE pomagaj±ce w programowaniu w Pythonie
8 Group: Libraries/Python
9 Source0: http://dl.sourceforge.net/drpython/%{name}-%{version}.zip
10 # Source0-md5: 57554a41f0290ac8083f96c319015bd6
11 URL: http://drpython.sourceforge.net/
12 BuildRequires: python-modules >= 2.3
13 %pyrequires_eq python-modules
14 Requires: python-wxPython >= 2.5.1.5
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 DrPython is a clean and simple yet powerful and highly customizable
20 editor/environment for developing programs written in the Python
21 programming Language. It is written in Python, and uses the wxWidgets
22 GUI Library through the use of wxPython.
25 DrPython to przejrzysty i prosty, ale potê¿ny i wysoko konfigurowalny
26 edytor/¶rodowisko do tworzenia programów napisanych w jêzyku Python.
27 Jest napisany w Pythonie i u¿ywa biblioteki graficznej wxWidgets
28 poprzez interfejs wxPython.
37 rm -rf $RPM_BUILD_ROOT
38 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/drpython}
40 python %{py_scriptdir}/compileall.pyc -l .
42 install *.py[co] $RPM_BUILD_ROOT%{_datadir}/drpython
43 cp -a examples bitmaps $RPM_BUILD_ROOT%{_datadir}/drpython
45 echo '#!/bin/sh' > $RPM_BUILD_ROOT%{_bindir}/drpython
46 echo 'cd %{_datadir}/drpython' >> $RPM_BUILD_ROOT%{_bindir}/drpython
47 echo 'exec python drpython.pyc' >> $RPM_BUILD_ROOT%{_bindir}/drpython
48 chmod 0755 $RPM_BUILD_ROOT%{_bindir}/drpython
51 rm -rf $RPM_BUILD_ROOT
54 %defattr(644,root,root,755)
56 %attr(755,root,root) %{_bindir}/drpython