# Created by pyp2rpm-1.0.1 %global pypi_name stsci.imagestats %define version 1.4 Name: python-stsci-imagestats Version: %{version} Release: %mkrel 1 Group: Sciences/Astronomy Summary: Compute various useful statistical values for array objects License: BSD URL: http://www.stsci.edu/resources/software_hardware/stsci_python Source0: https://pypi.python.org/packages/source/s/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildRequires: python-devel BuildRequires: python-numpy-devel BuildRequires: python-sphinx BuildRequires: python-stsci-sphinxext Obsoletes: python-stsci <= 2.13-4 %description False %prep %setup -q -n %{pypi_name}-%{version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info %build CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build # generate html docs sphinx-build docs/source html # remove the sphinx-build leftovers rm -rf html/.{doctrees,buildinfo} %install %{__python} setup.py install --skip-build --root %{buildroot} %files %doc html LICENSE.txt %{python_sitearch}/stsci/imagestats %{python_sitearch}/%{pypi_name}-%{version}-py?.?-*.pth %{python_sitearch}/%{pypi_name}-%{version}-py?.?.egg-info