]>
Commit | Line | Data |
---|---|---|
1 | Summary: DrPython - cross-platform IDE to aid programming in Python | |
2 | Summary(pl.UTF-8): DrPython - wieloplatformowe IDE wspomagające programowanie w Pythonie | |
3 | Name: drpython | |
4 | Version: 3.11.1 | |
5 | Release: 2 | |
6 | License: GPL | |
7 | Group: Libraries/Python | |
8 | Source0: http://dl.sourceforge.net/drpython/%{name}-%{version}.zip | |
9 | # Source0-md5: a972744c88cdfdf76b0bfdc15f553446 | |
10 | URL: http://drpython.sourceforge.net/ | |
11 | BuildRequires: python | |
12 | BuildRequires: python-devel | |
13 | BuildRequires: python-modules >= 1:2.3 | |
14 | BuildRequires: rpm-pythonprov | |
15 | BuildRequires: unzip | |
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 | |
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. | |
26 | ||
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 | |
31 | poprzez interfejs wxPython. | |
32 | ||
33 | %prep | |
34 | %setup -q -n %{name}_%{version} | |
35 | ||
36 | %build | |
37 | chmod 644 *.py | |
38 | %{_bindir}/python setup.py build | |
39 | ||
40 | %install | |
41 | rm -rf $RPM_BUILD_ROOT | |
42 | install -d $RPM_BUILD_ROOT%{_bindir} | |
43 | ||
44 | python -- setup.py install \ | |
45 | --root=$RPM_BUILD_ROOT \ | |
46 | --optimize=2 | |
47 | ||
48 | echo '#!/bin/sh' > $RPM_BUILD_ROOT%{_bindir}/drpython | |
49 | echo 'exec python %{py_sitescriptdir}/drpython/drpython.pyw' >> $RPM_BUILD_ROOT%{_bindir}/drpython | |
50 | chmod 755 $RPM_BUILD_ROOT%{_bindir}/drpython | |
51 | ||
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 | |
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 | |
58 | ||
59 | %clean | |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | ||
62 | %files | |
63 | %defattr(644,root,root,755) | |
64 | %doc Changelog.txt History.txt Notes.txt todo.txt documentation/* | |
65 | %attr(755,root,root) %{_bindir}/drpython | |
66 | %dir %{py_sitescriptdir}/drpython | |
67 | %{py_sitescriptdir}/drpython/drpython.pyw | |
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 | |
78 | %{py_sitescriptdir}/*.egg-info |