# Created by pyp2rpm-1.0.1 %global pypi_name wfc3tools %define version 1.1 Name: python-wfc3tools Version: %{version} Release: %mkrel 4 Group: Sciences/Astronomy Summary: Python Tools for WFC3 Data License: BSD URL: http://www.stsci.edu/resources/software_hardware/stsci_python Source0: https://pypi.python.org/packages/source/w/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch 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 %{__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} rm %{buildroot}/%{_bindir}/runastrodriz %files %doc html LICENSE.txt %{python_sitelib}/%{pypi_name} %{python_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info