Accepting request 871647 from home:badshah400:branches:science

- Update to 2.5.0
  * no changelog found
- Skip python36 build in TW, because python36-numpy and co. are no
  more.
- Fix testing for multi-versioned python.
- Disable octave bindings, since octave >= 6 isn't supported.

OBS-URL: https://build.opensuse.org/request/show/871647
OBS-URL: https://build.opensuse.org/package/show/science/lalsimulation?expand=0&rev=9
This commit is contained in:
Atri Bhattacharya 2021-02-14 13:23:15 +00:00 committed by Git OBS Bridge
parent 29856de029
commit bf427a8d2d
4 changed files with 42 additions and 21 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:043518d24e2fa5ad18869fa5f9d1a6bd9a9b60cfedf92b5e3f871242768eebe9
size 7283660

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d8511bb7ab4dd9bbe5483966173c7a5a8255bf18e660d418a2f9921c8820a3c1
size 7418600

View File

@ -1,3 +1,21 @@
-------------------------------------------------------------------
Fri Feb 12 16:03:20 UTC 2021 - Ben Greiner <code@bnavigator.de>
- Update to 2.5.0
* no changelog found
- Skip python36 build in TW, because python36-numpy and co. are no
more.
-------------------------------------------------------------------
Thu Jan 21 23:56:21 UTC 2021 - Atri Bhattacharya <badshah400@gmail.com>
- Fix testing for multi-versioned python.
-------------------------------------------------------------------
Mon Jan 18 14:08:29 UTC 2021 - Atri Bhattacharya <badshah400@gmail.com>
- Disable octave bindings, since octave >= 6 isn't supported.
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Oct 23 05:58:27 UTC 2020 - Atri Bhattacharya <badshah400@gmail.com> Fri Oct 23 05:58:27 UTC 2020 - Atri Bhattacharya <badshah400@gmail.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package lalsimulation # spec file for package lalsimulation
# #
# Copyright (c) 2020 SUSE LLC # Copyright (c) 2021 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -16,41 +16,42 @@
# #
# NEP 29: python36-numpy and co. in TW are no more
%define skip_python36 1
%define shlib liblalsimulation23 %define shlib liblalsimulation23
%bcond_without octave # octave >= 6 not supported
%bcond_with octave
Name: lalsimulation Name: lalsimulation
Version: 2.2.1 Version: 2.5.0
Release: 0 Release: 0
Summary: LSC Algorithm Simulation Library Summary: LSC Algorithm Simulation Library
License: GPL-2.0-only License: GPL-2.0-only
URL: https://wiki.ligo.org/Computing/DASWG/LALSuite URL: https://wiki.ligo.org/Computing/DASWG/LALSuite
Source: http://software.ligo.org/lscsoft/source/lalsuite/lalsimulation-%{version}.tar.xz Source: http://software.ligo.org/lscsoft/source/lalsuite/lalsimulation-%{version}.tar.xz
BuildRequires: %{python_module devel} BuildRequires: %{python_module devel}
BuildRequires: %{python_module lal >= 6.22.0} BuildRequires: %{python_module lal >= 7.1.0}
BuildRequires: %{python_module numpy-devel} BuildRequires: %{python_module numpy >= 1.7}
BuildRequires: %{python_module numpy} BuildRequires: %{python_module numpy-devel >= 1.7}
BuildRequires: %{python_module six}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: help2man BuildRequires: help2man
BuildRequires: lal-devel >= 6.22.0
BuildRequires: pkgconfig BuildRequires: pkgconfig
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
%if 0%{?suse_version} < 1550 %if 0%{?suse_version} < 1550
BuildRequires: python-xml BuildRequires: python-xml
%endif %endif
BuildRequires: swig >= 3.0.7 BuildRequires: swig >= 3.0.10
BuildRequires: pkgconfig(gsl) BuildRequires: pkgconfig(gsl)
BuildRequires: pkgconfig(lal) >= 7.1.0
BuildRequires: pkgconfig(zlib) BuildRequires: pkgconfig(zlib)
%if %{with octave} %if %{with octave}
BuildRequires: octave-lal >= 7.1.0
BuildRequires: pkgconfig(octave) BuildRequires: pkgconfig(octave)
BuildRequires: octave-lal >= 6.22.0
%endif %endif
# SECTION For tests # SECTION For tests
BuildRequires: python3-pytest BuildRequires: %{python_module pytest}
# /SECTION # /SECTION
Requires: python-lal >= 6.22.0 Requires: python-lal >= 7.1.0
Requires: python-numpy Requires: python-numpy >= 1.7
Requires: python-six
# FOR PYTHON PACKAGE # FOR PYTHON PACKAGE
Requires: lalsimulation-data = %{version} Requires: lalsimulation-data = %{version}
ExcludeArch: %{ix86} ExcludeArch: %{ix86}
@ -70,11 +71,11 @@ This package provides the shared library for LALSimulation.
%package -n %{name}-devel %package -n %{name}-devel
Summary: Headers and source files for building against LALSimulation Summary: Headers and source files for building against LALSimulation
Requires: %{name}-data = %{version}
Requires: %{shlib} = %{version} Requires: %{shlib} = %{version}
Requires: pkgconfig(gsl) Requires: pkgconfig(gsl)
Requires: pkgconfig(lal) Requires: pkgconfig(lal)
Requires: pkgconfig(zlib) Requires: pkgconfig(zlib)
Requires: %{name}-data = %{version}
%description -n %{name}-devel %description -n %{name}-devel
This package provides the header and sources for coding against LALSimulation. This package provides the header and sources for coding against LALSimulation.
@ -88,8 +89,8 @@ lalsimulation.
%package -n octave-lalsimulation %package -n octave-lalsimulation
Summary: Octave bindings for LALSimulation Summary: Octave bindings for LALSimulation
Requires: octave-lal
Requires: %{name}-data = %{version} Requires: %{name}-data = %{version}
Requires: octave-lal
%requires_eq octave-cli %requires_eq octave-cli
%description -n octave-lalsimulation %description -n octave-lalsimulation
@ -156,9 +157,11 @@ find %{buildroot} -type f -name "*.la" -delete -print
%python_expand %fdupes %{buildroot}%{$python_sitearch}/%{name}/ %python_expand %fdupes %{buildroot}%{$python_sitearch}/%{name}/
%check %check
pushd ../python3_build %{python_expand export PYTHON=$python
make %{?_smp_mflags} check || cat test/python/test-suite.log pushd ../${PYTHON}_build
%make_build check
popd popd
}
%post -n %{shlib} -p /sbin/ldconfig %post -n %{shlib} -p /sbin/ldconfig
%postun -n %{shlib} -p /sbin/ldconfig %postun -n %{shlib} -p /sbin/ldconfig