]>
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 |
55ac5410 AF |
4 | Version: 3.11.1 |
5 | Release: 1 | |
c42b4aa9 AF |
6 | License: GPL |
7 | Group: Libraries/Python | |
da8bd76a | 8 | Source0: http://dl.sourceforge.net/drpython/%{name}-%{version}.zip |
55ac5410 | 9 | # Source0-md5: a972744c88cdfdf76b0bfdc15f553446 |
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 | |
55ac5410 | 31 | %setup -q -n %{name}_%{version} |
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 | |
55ac5410 | 46 | echo 'exec python %{py_sitescriptdir}/drpython/drpython.pyw' >> $RPM_BUILD_ROOT%{_bindir}/drpython |
b201f969 | 47 | chmod 755 $RPM_BUILD_ROOT%{_bindir}/drpython |
c42b4aa9 | 48 | |
3fc9f01b AF |
49 | find $RPM_BUILD_ROOT%{py_sitescriptdir} -not -wholename '*/drpython/examples/*' -name \*.py -exec rm -f {} \; |
50 | rm -rf $RPM_BUILD_ROOT%{py_sitescriptdir}/drpython/bitmaps/{16,24}/.xvpics | |
55ac5410 AF |
51 | # win32 only |
52 | rm $RPM_BUILD_ROOT%{_bindir}/postinst.py | |
53 | # replace by %{_bindir}/drpython | |
54 | rm $RPM_BUILD_ROOT%{py_sitescriptdir}/drpython/drpython.lin | |
e0c9aa20 | 55 | |
c42b4aa9 AF |
56 | %clean |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
59 | %files | |
60 | %defattr(644,root,root,755) | |
55ac5410 | 61 | %doc Changelog.txt History.txt Notes.txt todo.txt documentation/* |
c42b4aa9 | 62 | %attr(755,root,root) %{_bindir}/drpython |
3fc9f01b | 63 | %dir %{py_sitescriptdir}/drpython |
55ac5410 | 64 | %{py_sitescriptdir}/drpython/drpython.pyw |
3fc9f01b AF |
65 | %{py_sitescriptdir}/drpython/*.py[oc] |
66 | %{py_sitescriptdir}/drpython/examples | |
67 | %doc %{py_sitescriptdir}/drpython/documentation | |
68 | %dir %{py_sitescriptdir}/drpython/bitmaps | |
69 | %{py_sitescriptdir}/drpython/bitmaps/*.ico | |
70 | %{py_sitescriptdir}/drpython/bitmaps/*.png | |
71 | %dir %{py_sitescriptdir}/drpython/bitmaps/16 | |
72 | %{py_sitescriptdir}/drpython/bitmaps/16/*.png | |
73 | %dir %{py_sitescriptdir}/drpython/bitmaps/24 | |
74 | %{py_sitescriptdir}/drpython/bitmaps/24/*.png | |
55ac5410 | 75 | %{py_sitescriptdir}/*.egg-info |