%define pyver %(python -c 'import sys ; print sys.version[:3]') Summary: Boa Constructor is a cross platform Python IDE and wxPython GUI Builder Name: boa-constructor Version: 0.4.4 Release: 1 Source0: %{name}-%{version}.zip Source1: %{name}.png URL: http://boa-constructor.sourceforge.net/ License: GPL Group: Development/Tools BuildRoot: %{_tmppath}/%{name}-%{version}-root Requires: wxPython %{_bindir}/python%{pyver} BuildRequires: ImageMagick BuildArch: noarch %description Boa Constructor is a cross platform Python IDE and wxPython GUI Builder. It offers visual frame creation and manipulation, an object inspector, many views on the source like object browsers, inheritance hierarchies, doc string generated html documentation, an advanced debugger and integrated help. Zope support: Object creation and editing. Cut, copy, paste, import and export. Property creation and editing in the Inspector and Python Script debugging. It is written in Python and uses the wxPython library which wraps wxWindows. %prep %setup -q %install rm -rf $RPM_BUILD_ROOT install -d %{buildroot}%{_bindir} install -d %{buildroot}%{_datadir}/%{name} install -p -m 644 *.py* %{buildroot}%{_datadir}/%{name} cp -p -r bcrtl Companions Config Debugger Docs Examples Explorers %{buildroot}%{_datadir}/%{name} cp -p -r ExternalLib Images Models Plug-ins PropEdit Views ZopeLib %{buildroot}%{_datadir}/%{name} echo -e "#!/bin/bash cd %{_datadir}/%{name} python Boa.py" > %{buildroot}%{_bindir}/%{name} chmod 755 %{buildroot}%{_bindir}/%{name} #Install application link for X-Windows echo -e "[Desktop Entry] Name=%{name} Comment=%{summary} Exec=python Icon=%{name}.png Terminal=0 Type=Application" > %{name}.desktop mkdir -p %{buildroot}%{_datadir}/applications desktop-file-install --vendor fedora --delete-original \ --dir %{buildroot}%{_datadir}/applications \ --add-category X-Fedora \ --add-category X-Red-Hat-Extra \ --add-category Application \ --add-category Development \ --add-category GUIDesigner \ --add-category IDE \ %{name}.desktop install -d %{buildroot}%{_datadir}/pixmaps install -p -m 644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/ %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc *.txt %{_bindir}/%{name} %dir %{_datadir}/%{name} %{_datadir}/%{name}/* %{_datadir}/applications/fedora-%{name}.desktop %{_datadir}/pixmaps/%{name}.png %changelog * Mon Jul 12 2005 Kevin Cole - 0.4.4-1 - Updated to version 0.4.4 - Added wxPython and Python from boa-constructor-doc zip to Docs/ - Changed line-endings for .py, .css, .txt and .htm* to Unix - Removed write permissions for files that shouldn't have them. * Sun Feb 22 2004 Che - 0.2.3-1 - initial rpm release