]>
Commit | Line | Data |
---|---|---|
11dc7b54 | 1 | Summary: DrPython - cross-platform IDE to aid programming in Python |
361844fc | 2 | Summary(pl.UTF-8): DrPython - wieloplatformowe IDE wspomagające programowanie w Pythonie |
c42b4aa9 | 3 | Name: drpython |
08808a62 | 4 | Version: 3.10.13 |
c378cd8b | 5 | Release: 3 |
c42b4aa9 AF |
6 | License: GPL |
7 | Group: Libraries/Python | |
da8bd76a | 8 | Source0: http://dl.sourceforge.net/drpython/%{name}-%{version}.zip |
08808a62 | 9 | # Source0-md5: becd6411f4334e4c01c720342ccbdbd8 |
c42b4aa9 | 10 | URL: http://drpython.sourceforge.net/ |
b201f969 | 11 | BuildRequires: python-modules >= 1:2.3 |
9754de8f | 12 | BuildRequires: unzip |
c42b4aa9 AF |
13 | %pyrequires_eq python-modules |
14 | Requires: python-wxPython >= 2.5.1.5 | |
15 | BuildArch: noarch | |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
17 | ||
18 | %description | |
11dc7b54 JB |
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. | |
c42b4aa9 | 23 | |
95da8aaf JR |
24 | %description -l pl.UTF-8 |
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 | |
11dc7b54 | 28 | poprzez interfejs wxPython. |
c42b4aa9 AF |
29 | |
30 | %prep | |
08808a62 | 31 | %setup -q |
c42b4aa9 AF |
32 | |
33 | %build | |
b201f969 | 34 | chmod 644 *.py |
3fc9f01b | 35 | %{_bindir}/python setup.py build |
c42b4aa9 AF |
36 | |
37 | %install | |
38 | rm -rf $RPM_BUILD_ROOT | |
3fc9f01b | 39 | install -d $RPM_BUILD_ROOT%{_bindir} |
c42b4aa9 | 40 | |
3fc9f01b AF |
41 | python -- setup.py install \ |
42 | --root=$RPM_BUILD_ROOT \ | |
43 | --optimize=2 | |
c42b4aa9 AF |
44 | |
45 | echo '#!/bin/sh' > $RPM_BUILD_ROOT%{_bindir}/drpython | |
3fc9f01b | 46 | echo 'cd %{py_sitescriptdir}/drpython' >> $RPM_BUILD_ROOT%{_bindir}/drpython |
e0c9aa20 | 47 | echo 'exec python drpython.pyo' >> $RPM_BUILD_ROOT%{_bindir}/drpython |
b201f969 | 48 | chmod 755 $RPM_BUILD_ROOT%{_bindir}/drpython |
c42b4aa9 | 49 | |
3fc9f01b AF |
50 | find $RPM_BUILD_ROOT%{py_sitescriptdir} -not -wholename '*/drpython/examples/*' -name \*.py -exec rm -f {} \; |
51 | rm -rf $RPM_BUILD_ROOT%{py_sitescriptdir}/drpython/bitmaps/{16,24}/.xvpics | |
e0c9aa20 | 52 | |
c42b4aa9 AF |
53 | %clean |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | ||
56 | %files | |
57 | %defattr(644,root,root,755) | |
728f5c13 | 58 | %doc ChangeLog.txt documentation/* |
c42b4aa9 | 59 | %attr(755,root,root) %{_bindir}/drpython |
3fc9f01b AF |
60 | %dir %{py_sitescriptdir}/drpython |
61 | %{py_sitescriptdir}/drpython/*.py[oc] | |
62 | %{py_sitescriptdir}/drpython/examples | |
63 | %doc %{py_sitescriptdir}/drpython/documentation | |
64 | %dir %{py_sitescriptdir}/drpython/bitmaps | |
65 | %{py_sitescriptdir}/drpython/bitmaps/*.ico | |
66 | %{py_sitescriptdir}/drpython/bitmaps/*.png | |
67 | %dir %{py_sitescriptdir}/drpython/bitmaps/16 | |
68 | %{py_sitescriptdir}/drpython/bitmaps/16/*.png | |
69 | %dir %{py_sitescriptdir}/drpython/bitmaps/24 | |
70 | %{py_sitescriptdir}/drpython/bitmaps/24/*.png |