]>
Commit | Line | Data |
---|---|---|
1 | %define _ver beta | |
2 | Summary: Boa Constructor - a cross platform Python IDE | |
3 | Summary(pl.UTF-8): Boa Constructor - wieloplatformowe IDE do Pythona | |
4 | Name: boa-constructor | |
5 | Version: 0.6.1 | |
6 | Release: 0.%{_ver}.1 | |
7 | License: GPL | |
8 | Group: X11/Development/Tools | |
9 | Source0: http://dl.sourceforge.net/boa-constructor/%{name}-%{version}.src.zip | |
10 | # Source0-md5: 150d923c608a405eeb17bf655ce26b14 | |
11 | # boa-constructor-0.4.0.src.zip | |
12 | URL: http://boa-constructor.sourceforge.net/ | |
13 | BuildRequires: ImageMagick | |
14 | BuildRequires: unzip | |
15 | Requires: python-wxPython > 2.4 | |
16 | #Requires: python-wxPython < 2.5 | |
17 | BuildArch: noarch | |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
20 | %description | |
21 | Boa Constructor is a cross platform Python IDE and wxPython GUI | |
22 | Builder. It offers visual frame creation and manipulation, an object | |
23 | inspector, many views on the source like object browsers, inheritance | |
24 | hierarchies, doc string generated HTML documentation, an advanced | |
25 | debugger and integrated help. | |
26 | ||
27 | %description -l pl.UTF-8 | |
28 | Boa Constructor to wieloplatformowe IDE do Pythona oraz narzędzie do | |
29 | budowania GUI opartych o bibliotekę wxPython. Oferuje wizualne | |
30 | tworzenie i obróbkę ramek, inspektora obiektów, wiele widoków źródeł, | |
31 | takich jak przeglądarki obiektów, hierarchie dziedziczenia, | |
32 | dokumentację HTML generowaną z łańcuchów doc oraz zaawansowany | |
33 | debugger i zintegrowaną pomoc. | |
34 | ||
35 | %prep | |
36 | %setup -q | |
37 | ||
38 | convert Images/Icons/Boa.ico -format png ./Boa.png | |
39 | ||
40 | cat <<'EOF' > Boa.desktop | |
41 | [Desktop Entry] | |
42 | Name=Boa-Construktor | |
43 | Comment=Cross platform Python IDE and wxPython GUI | |
44 | Comment[pl]=Wieloplatformowe IDE do Pythona oraz narzędzie do budowania GUI | |
45 | Icon=Boa.png | |
46 | Exec=boa | |
47 | Terminal=false | |
48 | Type=Application | |
49 | Categories=Development;IDE; | |
50 | # vi: encoding=utf-8 | |
51 | EOF | |
52 | ||
53 | %install | |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_pixmapsdir},%{_desktopdir}} | |
56 | install -d $RPM_BUILD_ROOT{%{_datadir}/%{name},%{_examplesdir}/%{name}} | |
57 | ||
58 | install Boa.png $RPM_BUILD_ROOT%{_pixmapsdir} | |
59 | install Boa.desktop $RPM_BUILD_ROOT%{_desktopdir} | |
60 | install *.py* $RPM_BUILD_ROOT%{_datadir}/%{name} | |
61 | cp -r bcrtl Companions Config Debugger Docs Explorers ExternalLib Images \ | |
62 | Models Plug-ins PropEdit Views ZopeLib $RPM_BUILD_ROOT%{_datadir}/%{name} | |
63 | cp -r Examples $RPM_BUILD_ROOT%{_examplesdir}/%{name} | |
64 | ||
65 | %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name} | |
66 | %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name} | |
67 | find $RPM_BUILD_ROOT%{_datadir}/%{name} -maxdepth 2 -name "*.py" | xargs rm | |
68 | ||
69 | echo -e "#!/bin/sh | |
70 | cd %{_datadir}/%{name} | |
71 | python Boa.pyc" > $RPM_BUILD_ROOT%{_bindir}/boa | |
72 | ||
73 | %clean | |
74 | rm -rf $RPM_BUILD_ROOT | |
75 | ||
76 | %files | |
77 | %defattr(644,root,root,755) | |
78 | %doc *.txt | |
79 | %attr(755,root,root) %{_bindir}/* | |
80 | %{_datadir}/%{name} | |
81 | %{_examplesdir}/%{name} | |
82 | %{_pixmapsdir}/Boa.png | |
83 | %{_desktopdir}/Boa.desktop |