%define name eric %define version 3.3.1 %define release 2mdk # py_ver, because modules have to be recompiled for another Python version %define py_ver 2.3 Summary: Python IDE Name: %{name} Version: %{version} Release: %{release} License: GPL Group: Development/Python Source: %{name}-%{version}.tar.bz2 URL: http://www.die-offenbachs.de/detlev/eric3.html BuildRoot: %{_tmppath}/%{name}-buildroot BuildRequires: libqscintilla-devel python-devel >= %{py_ver} PyQt Requires: PyQt libqscintilla %description Eric3 is a full featured Python IDE that is written in PyQt using the QScintilla editor widget. %prep %setup -q %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{_libdir}/python%{py_ver}/site-packages %{__python} install.py -b $RPM_BUILD_ROOT%{_bindir} \ -d $RPM_BUILD_ROOT%{_libdir}/python%{py_ver}/site-packages %__perl -pi -e "s|$RPM_BUILD_ROOT||" $RPM_BUILD_ROOT%{_bindir}/eric3 #menu mkdir -p %buildroot/%{_menudir} cat << EOF > %buildroot/%{_menudir}/%{name} ?package(%{name}): command="eric3" icon="development_environment_section.png" needs="x11" title="Eric" longtitle="Python IDE" section="Applications/Development/Development environments" EOF %post %update_menus %postun %clean_menus %clean rm -rf %{buildroot} %files %defattr(-, root, root, 755) %doc README THANKS HISTORY LICENSE.GPL %{_bindir}/* %{_libdir}/python%{py_ver}/site-packages/ %{_menudir}/%name %changelog * Wed Feb 18 2004 David Baudens <baudens@mandrakesoft.com> 3.3.1-2mdk - Fix icon * Wed Dec 31 2003 Austin Acton <austin@linux.ca> 3.3.1-1mdk - 3.3.1 * Sat Dec 6 2003 Austin Acton <austin@linux.ca> 3.3-1mdk - 3.3 * Wed Aug 13 2003 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 3.1-2mdk - rebuild for new python - rm -rf $RPM_BUILD_ROOT at the beginning of %%install * Thu May 1 2003 Austin Acton <aacton@yorku.ca> 3.1-1mdk - from Jérôme Martin <jerome.f.martin@free.fr>: - Initial version - add menu entry