1 |
# Created by pyp2rpm-1.0.1 |
2 |
%global pypi_name pysynphot |
3 |
%define version 0.9.5 |
4 |
|
5 |
Name: python-pysynphot |
6 |
Version: %{version} |
7 |
Release: %mkrel 1 |
8 |
Group: Sciences/Astronomy |
9 |
Summary: Python Synthetic Photometry Utilities |
10 |
|
11 |
License: BSD |
12 |
URL: https://trac.assembla.com/astrolib/wiki/WikiStart#pysynphot |
13 |
Source0: https://pypi.python.org/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz |
14 |
|
15 |
BuildRequires: python-devel |
16 |
BuildRequires: python-d2to1 >= 0.2.5 |
17 |
BuildRequires: python-stsci-distutils >= 0.3 |
18 |
BuildRequires: python-numpy-devel |
19 |
BuildRequires: python-sphinx |
20 |
BuildRequires: python-stsci-sphinxext |
21 |
|
22 |
|
23 |
Obsoletes: python-stsci <= 2.13-4 |
24 |
|
25 |
%description |
26 |
This is a prototype module for manipulating spectra. |
27 |
It is intended for it to be used for synthetic |
28 |
photometry, i.e. constructing source spectra and |
29 |
then passing these spectra through an astronomical |
30 |
observatory (e.g. HST, JWST...). |
31 |
|
32 |
Install the module the usual way: |
33 |
|
34 |
python setup.py install |
35 |
|
36 |
The spectrum manipulation module spectrum.py will work |
37 |
standalone, whereas the observationmode.py ... |
38 |
|
39 |
|
40 |
%prep |
41 |
%setup -q -n %{pypi_name}-%{version} |
42 |
# Remove bundled egg-info |
43 |
rm -rf %{pypi_name}.egg-info |
44 |
|
45 |
|
46 |
|
47 |
%build |
48 |
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build |
49 |
|
50 |
# generate html docs |
51 |
sphinx-build doc/tsrs/choppy_count_problem/source html |
52 |
# remove the sphinx-build leftovers |
53 |
rm -rf html/.{doctrees,buildinfo} |
54 |
|
55 |
%install |
56 |
%{__python} setup.py install --skip-build --root %{buildroot} |
57 |
|
58 |
|
59 |
%files |
60 |
%doc html commissioning/diags/README.txt commissioning/extrap/README.txt commissioning/grid_atlas/pickles_readme.txt commissioning/grid_atlas/README.txt commissioning/readme.txt |
61 |
%{python_sitearch}/%{pypi_name} |
62 |
%{python_sitearch}/%{pypi_name}-%{version}-py?.?.egg-info |