%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %global upname reinteract Name: python-%{upname} Version: 0.4.3 Release: 1%{?dist} Summary: Interactive shell for Python Group: Development/Languages License: BSD URL: http://www.reinteract.org/ Source0: http://www.reinteract.org/download/sources/reinteract-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-devel BuildRequires: desktop-file-utils Requires: pygtk2 numpy python-matplotlib sox Requires: hicolor-icon-theme %description Reinteract is a system for interactive experimentation with Python. Reinteract worksheets contain Python code combined with the results of that code, formatted as text or graphical plots. Unlike a traditional shell, you can go back and edit previously entered statements, and the results will update. Among other things, Reinteract is suitable for experimentation with the Python language and for data analysis using the NumPy and SciPy packages. %prep %setup -q -n %{upname}-%{version} %build %configure make %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT desktop-file-validate \ $RPM_BUILD_ROOT%{_datadir}/applications/reinteract.desktop %clean rm -rf $RPM_BUILD_ROOT %post update-desktop-database &> /dev/null || : update-mime-database %{_datadir}/mime &> /dev/null || : touch --no-create %{_datadir}/icons/hicolor if [ -x %{_bindir}/gtk-update-icon-cache ] ; then %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : fi %postun update-desktop-database &> /dev/null || : update-mime-database %{_datadir}/mime &> /dev/null || : touch --no-create %{_datadir}/icons/hicolor if [ -x %{_bindir}/gtk-update-icon-cache ] ; then %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : fi %files %defattr(-,root,root,-) %doc AUTHORS COPYING README %{_bindir}/%{upname} %{_datadir}/applications/%{upname}.desktop %{_datadir}/icons/hicolor/scalable/apps/%{upname}.svg %{_datadir}/mime/packages/%{upname}.xml %{_datadir}/%{upname} %{python_sitelib}/* %changelog * Sat Feb 28 2009 Michel Salim - 0.4.3-1 - Initial package