%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} Name: python-pyraf Version: 2.4 Release: 2.el5.uson Summary: PyRaf - STScI python interface to IRAF Group: Development/Languages Packager: Fernando Avila Castro Distribution: Area de Astronomia, USON License: GPL URL: http://www.stsci.edu/resources/software_hardware/pyraf/stsci_python Source0: stsci_python-%{version}.tar.gz Source1: libf2c.tar.gz Source2: urwid-0.9.7.1.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Obsoletes: pyraf BuildRequires: python-devel, python-numarray, python-numeric, iraf Requires: python-numarray, ipython, python-pmw, tkinter, python-numeric >= 24.2, iraf, python-abi = %(%{__python} -c "import sys ; print sys.version[:3]") %description %prep %setup -a1 -a2 -n stsci_python-%{version} %build cd libf2c_stsci %ifarch x86_64 make -f makefile.linux64 %else make -f makefile.linux %endif cd ../urwid-0.9.7.1 CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build cd .. CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build --with-f2c=$RPM_BUILD_DIR/stsci_python-%{version}/libf2c_stsci %install rm -rf $RPM_BUILD_ROOT cd urwid-0.9.7.1 CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT cd .. %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_DIR/stsci_python %files %defattr(-,root,root,-) %{_libdir}/python2.4/site-packages/* %ifarch x86_64 /usr/lib/python2.4/site-packages/* %endif %{_bindir}/pyraf %doc # Include files and dirs below %{python_sitelib} (for noarch packages) and # %{python_sitearch} (for arch-dependent packages) as appropriate, and mark # *.pyo as %ghost (do not include in package). %changelog * Thu Nov 16 2006 tim pickering - update to stsci_python 2.4; include urwid * Wed Nov 1 2006 tim pickering - build under FC6; clean up files; include stsci libf2c in build * Fri Jun 9 2006 tim pickering - build under FC5 * Fri Mar 31 2006 tim pickering - update to 2.3 * Wed Nov 15 2005 tim pickering - update to 1.2 * Tue Oct 4 2005 tim pickering - update to 1.1.2