%define python_sitearch %(%{__python} -c 'from distutils import sysconfig; print sysconfig.get_python_lib(1)') Name: PySBIG Version: 0.04 Release: 2%{?dist} Summary: PySBIG can read SBIG CCD files Group: Development/Libraries License: GPLv2+ URL: http://coldstonelabs.org/doku.php?id=software:pysbig Source0: http://coldstonelabs.org/files/%{name}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: python-devel, numpy Requires: python, numpy %description PySBIG can read SBIG CCD files and give you a Numeric array for the data and a dictionary for the headers. There is cPySBIG (since version 0.02) which is 40 times faster than the pure PySBIG module, also included. Version 0.03 now works with numpy instead of Numeric. %prep %setup -q %build env CFLAGS="$RPM_OPT_FLAGS" python setup.py build %install rm -rf $RPM_BUILD_ROOT env CFLAGS="$RPM_OPT_FLAGS" python setup.py install --root=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc COPYING README %{python_sitearch}/PySBIGuncompress.so %{python_sitearch}/PySBIG.py* %{python_sitearch}/cPySBIG.py* %if 0%{?fedora} >= 9 %{python_sitearch}/*egg-info %endif %changelog * Sun Dec 30 2007 Marek Mahut - 0.04-2 - Initial build.