]>
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 | 4 | Version: 3.11.1 |
d5857d0c | 5 | Release: 2 |
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/ |
b6c27328 | 11 | BuildRequires: python |
12 | BuildRequires: python-devel | |
b201f969 | 13 | BuildRequires: python-modules >= 1:2.3 |
b6c27328 | 14 | BuildRequires: rpm-pythonprov |
9754de8f | 15 | BuildRequires: unzip |
c42b4aa9 AF |
16 | %pyrequires_eq python-modules |
17 | Requires: python-wxPython >= 2.5.1.5 | |
18 | BuildArch: noarch | |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
20 | ||
21 | %description | |
11dc7b54 JB |
22 | DrPython is a clean and simple yet powerful and highly customizable |
23 | editor/environment for developing programs written in the Python | |
24 | programming Language. It is written in Python, and uses the wxWidgets | |
25 | GUI Library through the use of wxPython. | |
c42b4aa9 | 26 | |
95da8aaf JR |
27 | %description -l pl.UTF-8 |
28 | DrPython to przejrzysty i prosty, ale potężny i wysoko konfigurowalny | |
29 | edytor/środowisko do tworzenia programów napisanych w języku Python. | |
30 | Jest napisany w Pythonie i używa biblioteki graficznej wxWidgets | |
11dc7b54 | 31 | poprzez interfejs wxPython. |
c42b4aa9 AF |
32 | |
33 | %prep | |
55ac5410 | 34 | %setup -q -n %{name}_%{version} |
c42b4aa9 AF |
35 | |
36 | %build | |
b201f969 | 37 | chmod 644 *.py |
3fc9f01b | 38 | %{_bindir}/python setup.py build |
c42b4aa9 AF |
39 | |
40 | %install | |
41 | rm -rf $RPM_BUILD_ROOT | |
3fc9f01b | 42 | install -d $RPM_BUILD_ROOT%{_bindir} |
c42b4aa9 | 43 | |
3fc9f01b AF |
44 | python -- setup.py install \ |
45 | --root=$RPM_BUILD_ROOT \ | |
46 | --optimize=2 | |
c42b4aa9 AF |
47 | |
48 | echo '#!/bin/sh' > $RPM_BUILD_ROOT%{_bindir}/drpython | |
55ac5410 | 49 | echo 'exec python %{py_sitescriptdir}/drpython/drpython.pyw' >> $RPM_BUILD_ROOT%{_bindir}/drpython |
b201f969 | 50 | chmod 755 $RPM_BUILD_ROOT%{_bindir}/drpython |
c42b4aa9 | 51 | |
3fc9f01b AF |
52 | find $RPM_BUILD_ROOT%{py_sitescriptdir} -not -wholename '*/drpython/examples/*' -name \*.py -exec rm -f {} \; |
53 | rm -rf $RPM_BUILD_ROOT%{py_sitescriptdir}/drpython/bitmaps/{16,24}/.xvpics | |
55ac5410 AF |
54 | # win32 only |
55 | rm $RPM_BUILD_ROOT%{_bindir}/postinst.py | |
56 | # replace by %{_bindir}/drpython | |
57 | rm $RPM_BUILD_ROOT%{py_sitescriptdir}/drpython/drpython.lin | |
e0c9aa20 | 58 | |
c42b4aa9 AF |
59 | %clean |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | ||
62 | %files | |
63 | %defattr(644,root,root,755) | |
55ac5410 | 64 | %doc Changelog.txt History.txt Notes.txt todo.txt documentation/* |
c42b4aa9 | 65 | %attr(755,root,root) %{_bindir}/drpython |
3fc9f01b | 66 | %dir %{py_sitescriptdir}/drpython |
55ac5410 | 67 | %{py_sitescriptdir}/drpython/drpython.pyw |
3fc9f01b AF |
68 | %{py_sitescriptdir}/drpython/*.py[oc] |
69 | %{py_sitescriptdir}/drpython/examples | |
70 | %doc %{py_sitescriptdir}/drpython/documentation | |
71 | %dir %{py_sitescriptdir}/drpython/bitmaps | |
72 | %{py_sitescriptdir}/drpython/bitmaps/*.ico | |
73 | %{py_sitescriptdir}/drpython/bitmaps/*.png | |
74 | %dir %{py_sitescriptdir}/drpython/bitmaps/16 | |
75 | %{py_sitescriptdir}/drpython/bitmaps/16/*.png | |
76 | %dir %{py_sitescriptdir}/drpython/bitmaps/24 | |
77 | %{py_sitescriptdir}/drpython/bitmaps/24/*.png | |
55ac5410 | 78 | %{py_sitescriptdir}/*.egg-info |