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