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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

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

  ViewVC Help
Powered by ViewVC 1.1.30