# Created by pyp2rpm-1.0.1 %global pypi_name stsci.imagemanip %define version 1.1 Name: python-stsci-imagemanip Version: %{version} Release: %mkrel 3 Group: Sciences/Astronomy Summary: STScI general image manipulation tools 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-d2to1 >= 0.2.9 BuildRequires: python-stsci-distutils >= 0.3.2 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 doc/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/imagemanip %{python_sitearch}/%{pypi_name}-%{version}-py?.?-*.pth %{python_sitearch}/%{pypi_name}-%{version}-py?.?.egg-info