/[packages]/cauldron/python-stsci-imagestats/current/SPECS/python-stsci-imagestats.spec
ViewVC logotype

Annotation of /cauldron/python-stsci-imagestats/current/SPECS/python-stsci-imagestats.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 499496 - (hide annotations) (download)
Mon Oct 14 23:49:37 2013 UTC (10 years, 6 months ago) by pterjan
File size: 1212 byte(s)
Rebuild to add different pythonegg provides for python 2 and 3
1 joequant 477656 # 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 pterjan 499496 Release: %mkrel 2
8 joequant 477656 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 joequant 477738 BuildRequires: python-sphinx
18     BuildRequires: python-stsci-sphinxext
19 joequant 477656
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

  ViewVC Help
Powered by ViewVC 1.1.30