1
0

Accepting request 863708 from devel:languages:python:numeric

- Make sure that the python >= 3.7 requirement is checked on
  build time and let rpm do the rest.
- Use bundled libraries on Leap 15.X

OBS-URL: https://build.opensuse.org/request/show/863708
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-astropy?expand=0&rev=19
This commit is contained in:
Dominique Leuenberger 2021-01-18 13:39:01 +00:00 committed by Git OBS Bridge
commit 1fd64a5a3d
2 changed files with 15 additions and 4 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Fri Jan 15 18:01:11 UTC 2021 - Benjamin Greiner <code@bnavigator.de>
- Make sure that the python >= 3.7 requirement is checked on
build time and let rpm do the rest.
- Use bundled libraries on Leap 15.X
-------------------------------------------------------------------
Fri Jan 1 19:03:47 UTC 2021 - Benjamin Greiner <code@bnavigator.de>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-astropy
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -27,7 +27,12 @@
%define binaries fitsdiff fitsheader fitscheck fitsinfo fits2bitmap samp_hub showtable volint wcslint
%if 0%{suse_version} <= 1500
# Use the bundled libraries for Leap 15.X, because the versions in the repos are too old
%bcond_with systemlibs
%else
%bcond_without systemlibs
%endif
%if %{with systemlibs}
%define unbundle_libs export ASTROPY_USE_SYSTEM_CFITSIO=1 \
export ASTROPY_USE_SYSTEM_EXPAT=1 \
@ -51,7 +56,7 @@ Source100: python-astropy-rpmlintrc
# https://docs.astropy.org/en/v4.1/install.html#requirements
BuildRequires: %{python_module Cython >= 0.21}
BuildRequires: %{python_module Jinja2}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module devel >= 3.7}
BuildRequires: %{python_module extension-helpers}
BuildRequires: %{python_module numpy-devel >= 1.17}
BuildRequires: %{python_module pyerfa}
@ -61,9 +66,9 @@ BuildRequires: fdupes
BuildRequires: hdf5-devel
BuildRequires: pkgconfig
BuildRequires: python-rpm-macros
Requires: python >= 3.7
Requires: python-dbm
Requires: python-numpy >= 1.17
Requires: python-pyerfa
Requires(post): update-alternatives
Requires(postun): update-alternatives
Recommends: libxml2-tools
@ -86,7 +91,6 @@ Conflicts: perl-Data-ShowTable
BuildRequires: pkgconfig(cfitsio)
BuildRequires: pkgconfig(expat)
BuildRequires: pkgconfig(wcslib) >= 7
Requires: python-pyerfa
%endif
%if %{with test}
# SECTION Optional requirements