]>
Commit | Line | Data |
---|---|---|
1 | %define orgname DrPython | |
2 | Summary: DrPython - cross-platform IDE to aid programming in Python | |
3 | Summary(pl.UTF-8): DrPython - wieloplatformowe IDE wspomagające programowanie w Pythonie | |
4 | Name: drpython | |
5 | Version: 3.11.3 | |
6 | Release: 1 | |
7 | License: GPL | |
8 | Group: Libraries/Python | |
9 | Source0: http://downloads.sourceforge.net/project/drpython/DrPython%20Current/%{version}/%{orgname}_%{version}.zip | |
10 | # Source0-md5: eb59cf61d840af274d2940ce1a3c2bd4 | |
11 | URL: http://drpython.sourceforge.net/ | |
12 | BuildRequires: rpmbuild(macros) >= 1.710 | |
13 | BuildRequires: pydoc | |
14 | BuildRequires: python | |
15 | BuildRequires: python-devel | |
16 | BuildRequires: python-modules >= 1:2.3 | |
17 | BuildRequires: rpm-pythonprov | |
18 | BuildRequires: unzip | |
19 | %pyrequires_eq python-modules | |
20 | Requires: python-wxPython >= 2.8.11.0 | |
21 | BuildArch: noarch | |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
25 | DrPython is a clean and simple yet powerful and highly customizable | |
26 | editor/environment for developing programs written in the Python | |
27 | programming Language. It is written in Python, and uses the wxWidgets | |
28 | GUI Library through the use of wxPython. | |
29 | ||
30 | %description -l pl.UTF-8 | |
31 | DrPython to przejrzysty i prosty, ale potężny i wysoko konfigurowalny | |
32 | edytor/środowisko do tworzenia programów napisanych w języku Python. | |
33 | Jest napisany w Pythonie i używa biblioteki graficznej wxWidgets | |
34 | poprzez interfejs wxPython. | |
35 | ||
36 | %prep | |
37 | %setup -q -n %{orgname} | |
38 | ||
39 | %build | |
40 | chmod 644 *.py | |
41 | %{_bindir}/%py_build | |
42 | ||
43 | %install | |
44 | rm -rf $RPM_BUILD_ROOT | |
45 | install -d $RPM_BUILD_ROOT%{_bindir} | |
46 | ||
47 | python -- setup.py install \ | |
48 | --root=$RPM_BUILD_ROOT \ | |
49 | --optimize=2 | |
50 | ||
51 | echo '#!/bin/sh' > $RPM_BUILD_ROOT%{_bindir}/drpython | |
52 | echo 'exec python %{py_sitescriptdir}/drpython/drpython.pyw' >> $RPM_BUILD_ROOT%{_bindir}/drpython | |
53 | chmod 755 $RPM_BUILD_ROOT%{_bindir}/drpython | |
54 | ||
55 | find $RPM_BUILD_ROOT%{py_sitescriptdir} -not -wholename '*/drpython/examples/*' -name \*.py -exec rm -f {} \; | |
56 | rm -rf $RPM_BUILD_ROOT%{py_sitescriptdir}/drpython/bitmaps/{16,24}/.xvpics | |
57 | # win32 only | |
58 | rm $RPM_BUILD_ROOT%{_bindir}/postinst.py | |
59 | # replace by %{_bindir}/drpython | |
60 | rm $RPM_BUILD_ROOT%{py_sitescriptdir}/drpython/drpython.lin | |
61 | ||
62 | %clean | |
63 | rm -rf $RPM_BUILD_ROOT | |
64 | ||
65 | %files | |
66 | %defattr(644,root,root,755) | |
67 | %doc Changelog.txt History.txt Notes.txt todo.txt documentation/* | |
68 | %attr(755,root,root) %{_bindir}/drpython | |
69 | %dir %{py_sitescriptdir}/drpython | |
70 | %{py_sitescriptdir}/drpython/drpython.pyw | |
71 | %{py_sitescriptdir}/drpython/*.py[oc] | |
72 | %{py_sitescriptdir}/drpython/examples | |
73 | %doc %{py_sitescriptdir}/drpython/documentation | |
74 | %dir %{py_sitescriptdir}/drpython/bitmaps | |
75 | %{py_sitescriptdir}/drpython/bitmaps/*.ico | |
76 | %{py_sitescriptdir}/drpython/bitmaps/*.png | |
77 | %dir %{py_sitescriptdir}/drpython/bitmaps/16 | |
78 | %{py_sitescriptdir}/drpython/bitmaps/16/*.png | |
79 | %dir %{py_sitescriptdir}/drpython/bitmaps/24 | |
80 | %{py_sitescriptdir}/drpython/bitmaps/24/*.png | |
81 | %{py_sitescriptdir}/*.egg-info |