1 |
# Created by pyp2rpm-1.0.1 |
2 |
%global pypi_name stsci.convolve |
3 |
|
4 |
Name: python-stsci-convolve |
5 |
Version: 2.1 |
6 |
Release: %mkrel 5 |
7 |
Group: Sciences/Astronomy |
8 |
Summary: Image array convolution functions |
9 |
|
10 |
License: BSD |
11 |
URL: http://www.stsci.edu/resources/software_hardware/stsci_python |
12 |
Source0: https://pypi.python.org/packages/source/s/%{pypi_name}/%{pypi_name}-%{version}.tar.gz |
13 |
|
14 |
BuildRequires: python-devel |
15 |
BuildRequires: python-d2to1 >= 0.2.9 |
16 |
BuildRequires: python-stsci-distutils >= 0.3.2 |
17 |
BuildRequires: python-numpy-devel |
18 |
|
19 |
|
20 |
Obsoletes: python-stsci <= 2.13-4 |
21 |
|
22 |
%description |
23 |
Formerly included in SciPy as scipy.stsci.convolve |
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 |
|
37 |
%install |
38 |
%{__python} setup.py install --skip-build --root %{buildroot} |
39 |
|
40 |
|
41 |
%files |
42 |
%doc LICENSE.txt |
43 |
%{python_sitearch}/stsci/convolve |
44 |
%{python_sitearch}/%{pypi_name}-%{version}-py?.?-*.pth |
45 |
%{python_sitearch}/%{pypi_name}-%{version}-py?.?.egg-info |