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