]>
Commit | Line | Data |
---|---|---|
45c0e798 | 1 | %define _ver beta |
a6342966 | 2 | Summary: Boa Constructor - a cross platform Python IDE |
834cbed0 | 3 | Summary(pl.UTF-8): Boa Constructor - wieloplatformowe IDE do Pythona |
5f8ecf80 | 4 | Name: boa-constructor |
45c0e798 RT |
5 | Version: 0.6.1 |
6 | Release: 0.%{_ver}.1 | |
5f8ecf80 KK |
7 | License: GPL |
8 | Group: X11/Development/Tools | |
45c0e798 RT |
9 | Source0: http://dl.sourceforge.net/boa-constructor/%{name}-%{version}.src.zip |
10 | # Source0-md5: 150d923c608a405eeb17bf655ce26b14 | |
d3798c06 | 11 | # boa-constructor-0.4.0.src.zip |
5f8ecf80 | 12 | URL: http://boa-constructor.sourceforge.net/ |
6a4d8df6 | 13 | BuildRequires: ImageMagick |
240b7383 | 14 | BuildRequires: unzip |
36f4cfd3 | 15 | Requires: python-wxPython > 2.4 |
16 | #Requires: python-wxPython < 2.5 | |
5f8ecf80 KK |
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 | |
a6342966 | 24 | hierarchies, doc string generated HTML documentation, an advanced |
5f8ecf80 KK |
25 | debugger and integrated help. |
26 | ||
b9283bbf JR |
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. | |
a6342966 | 34 | |
5f8ecf80 KK |
35 | %prep |
36 | %setup -q | |
37 | ||
45c0e798 RT |
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 | |
45c0e798 RT |
49 | Categories=Development;IDE; |
50 | # vi: encoding=utf-8 | |
51 | EOF | |
52 | ||
5f8ecf80 KK |
53 | %install |
54 | rm -rf $RPM_BUILD_ROOT | |
45c0e798 RT |
55 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_pixmapsdir},%{_desktopdir}} |
56 | install -d $RPM_BUILD_ROOT{%{_datadir}/%{name},%{_examplesdir}/%{name}} | |
5f8ecf80 | 57 | |
45c0e798 RT |
58 | install Boa.png $RPM_BUILD_ROOT%{_pixmapsdir} |
59 | install Boa.desktop $RPM_BUILD_ROOT%{_desktopdir} | |
5f8ecf80 | 60 | install *.py* $RPM_BUILD_ROOT%{_datadir}/%{name} |
45c0e798 | 61 | cp -r bcrtl Companions Config Debugger Docs Explorers ExternalLib Images \ |
5f8ecf80 | 62 | Models Plug-ins PropEdit Views ZopeLib $RPM_BUILD_ROOT%{_datadir}/%{name} |
45c0e798 RT |
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 | |
5f8ecf80 KK |
68 | |
69 | echo -e "#!/bin/sh | |
70 | cd %{_datadir}/%{name} | |
45c0e798 | 71 | python Boa.pyc" > $RPM_BUILD_ROOT%{_bindir}/boa |
5f8ecf80 KK |
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} | |
45c0e798 RT |
81 | %{_examplesdir}/%{name} |
82 | %{_pixmapsdir}/Boa.png | |
83 | %{_desktopdir}/Boa.desktop |