1 |
# Created by pyp2rpm-1.0.1 |
2 |
%global pypi_name stsci.imagestats |
3 |
%define version 1.4 |
4 |
|
5 |
Name: python-stsci-imagestats |
6 |
Version: %{version} |
7 |
Release: %mkrel 1 |
8 |
Group: Sciences/Astronomy |
9 |
Summary: Compute various useful statistical values for array objects |
10 |
|
11 |
License: BSD |
12 |
URL: http://www.stsci.edu/resources/software_hardware/stsci_python |
13 |
Source0: https://pypi.python.org/packages/source/s/%{pypi_name}/%{pypi_name}-%{version}.tar.gz |
14 |
|
15 |
BuildRequires: python-devel |
16 |
BuildRequires: python-numpy-devel |
17 |
BuildRequires: python-sphinx |
18 |
BuildRequires: python-stsci-sphinxext |
19 |
|
20 |
|
21 |
Obsoletes: python-stsci <= 2.13-4 |
22 |
|
23 |
%description |
24 |
False |
25 |
|
26 |
|
27 |
%prep |
28 |
%setup -q -n %{pypi_name}-%{version} |
29 |
# Remove bundled egg-info |
30 |
rm -rf %{pypi_name}.egg-info |
31 |
|
32 |
|
33 |
|
34 |
%build |
35 |
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build |
36 |
|
37 |
# generate html docs |
38 |
sphinx-build docs/source html |
39 |
# remove the sphinx-build leftovers |
40 |
rm -rf html/.{doctrees,buildinfo} |
41 |
|
42 |
%install |
43 |
%{__python} setup.py install --skip-build --root %{buildroot} |
44 |
|
45 |
|
46 |
%files |
47 |
%doc html LICENSE.txt |
48 |
%{python_sitearch}/stsci/imagestats |
49 |
%{python_sitearch}/%{pypi_name}-%{version}-py?.?-*.pth |
50 |
%{python_sitearch}/%{pypi_name}-%{version}-py?.?.egg-info |