]>
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/ |
33e6eb20 | 12 | BuildRequires: rpmbuild(macros) >= 1.710 |
3333ffd2 | 13 | BuildRequires: pydoc |
b6c27328 | 14 | BuildRequires: python |
15 | BuildRequires: python-devel | |
b201f969 | 16 | BuildRequires: python-modules >= 1:2.3 |
b6c27328 | 17 | BuildRequires: rpm-pythonprov |
9754de8f | 18 | BuildRequires: unzip |
c42b4aa9 | 19 | %pyrequires_eq python-modules |
3333ffd2 | 20 | Requires: python-wxPython >= 2.8.11.0 |
c42b4aa9 AF |
21 | BuildArch: noarch |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
11dc7b54 JB |
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. | |
c42b4aa9 | 29 | |
95da8aaf JR |
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 | |
11dc7b54 | 34 | poprzez interfejs wxPython. |
c42b4aa9 AF |
35 | |
36 | %prep | |
f4192524 | 37 | %setup -q -n %{orgname} |
c42b4aa9 AF |
38 | |
39 | %build | |
b201f969 | 40 | chmod 644 *.py |
e0b04f9f | 41 | %{_bindir}/%py_build |
c42b4aa9 AF |
42 | |
43 | %install | |
44 | rm -rf $RPM_BUILD_ROOT | |
3fc9f01b | 45 | install -d $RPM_BUILD_ROOT%{_bindir} |
c42b4aa9 | 46 | |
3fc9f01b AF |
47 | python -- setup.py install \ |
48 | --root=$RPM_BUILD_ROOT \ | |
49 | --optimize=2 | |
c42b4aa9 AF |
50 | |
51 | echo '#!/bin/sh' > $RPM_BUILD_ROOT%{_bindir}/drpython | |
55ac5410 | 52 | echo 'exec python %{py_sitescriptdir}/drpython/drpython.pyw' >> $RPM_BUILD_ROOT%{_bindir}/drpython |
b201f969 | 53 | chmod 755 $RPM_BUILD_ROOT%{_bindir}/drpython |
c42b4aa9 | 54 | |
3fc9f01b AF |
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 | |
55ac5410 AF |
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 | |
e0c9aa20 | 61 | |
c42b4aa9 AF |
62 | %clean |
63 | rm -rf $RPM_BUILD_ROOT | |
64 | ||
65 | %files | |
66 | %defattr(644,root,root,755) | |
55ac5410 | 67 | %doc Changelog.txt History.txt Notes.txt todo.txt documentation/* |
c42b4aa9 | 68 | %attr(755,root,root) %{_bindir}/drpython |
3fc9f01b | 69 | %dir %{py_sitescriptdir}/drpython |
55ac5410 | 70 | %{py_sitescriptdir}/drpython/drpython.pyw |
3fc9f01b AF |
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 | |
55ac5410 | 81 | %{py_sitescriptdir}/*.egg-info |