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

Contents of /cauldron/python-stwcs/current/SPECS/python-stwcs.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 477738 - (show annotations) (download)
Wed Sep 11 19:21:27 2013 UTC (10 years, 7 months ago) by joequant
File size: 1135 byte(s)
add sphinxext

1 # Created by pyp2rpm-1.0.1
2 %global pypi_name stwcs
3 %define version 1.1.0
4
5 Name: python-stwcs
6 Version: %{version}
7 Release: %mkrel 1
8 Group: Sciences/Astronomy
9 Summary: Recomputes the WCS of an HST observation and puts all distortion corrections in the headers
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 BuildArch: noarch
15
16 BuildRequires: python-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 %{__python} setup.py build
36
37 # generate html docs
38 sphinx-build doc/fits_convention_tsr/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
48 %{python_sitelib}/%{pypi_name}
49 %{python_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info

  ViewVC Help
Powered by ViewVC 1.1.30