2020-05-03 12:11:10 +00:00
|
|
|
#
|
2023-04-18 14:05:11 +00:00
|
|
|
# spec file
|
2020-05-03 12:11:10 +00:00
|
|
|
#
|
2023-02-04 11:04:09 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2020-05-03 12:11:10 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
Accepting request 843959 from home:badshah400:branches:science
- Specfile cleanups with spec-cleaner.
- Update URL in keeping with upstream change.
- Run tests as part of %check; add necessary BuildRequires:
python3-scipy, python3-six, python3-freezegun,
python3-python-dateutil, python3-ligo-segments, and
python3-pytest for python3 tests to succeed (don't run tests for
python2).
- Add Requires: python-six, python-freezegun,
python-python-dateutil, python-scipy, and python-ligo-segments
as tests show these packages are needed for the python modules
to work meaningfully.
- ExcludeArch 32-bit, as tests fail and upstream confirms that it
is not supported
(https://git.ligo.org/lscsoft/lalsuite/-/issues/371).
OBS-URL: https://build.opensuse.org/request/show/843959
OBS-URL: https://build.opensuse.org/package/show/science/lal?expand=0&rev=7
2020-10-30 09:07:24 +00:00
|
|
|
|
2021-05-15 11:38:28 +00:00
|
|
|
%global flavor @BUILD_FLAVOR@%{nil}
|
|
|
|
%if "%{flavor}" == "test"
|
|
|
|
%bcond_without test
|
|
|
|
%define psuffix -test
|
|
|
|
%else
|
|
|
|
%bcond_with test
|
|
|
|
%define psuffix %{nil}
|
|
|
|
%endif
|
|
|
|
|
2021-02-13 11:35:51 +00:00
|
|
|
# NEP 29: numpy, scipy do not have a python36 flavor package in TW
|
|
|
|
%define skip_python36 1
|
2022-01-08 11:47:37 +00:00
|
|
|
# Py2 no longer supported by upstream
|
|
|
|
%define skip_python2 1
|
2021-02-13 11:35:51 +00:00
|
|
|
|
2020-07-08 00:58:15 +00:00
|
|
|
%define shliblal liblal20
|
2020-05-03 12:11:10 +00:00
|
|
|
%define shliblalsupport liblalsupport14
|
2021-01-18 13:31:41 +00:00
|
|
|
|
|
|
|
# No support for octave >= 6
|
|
|
|
%bcond_with octave
|
2021-05-16 15:14:12 +00:00
|
|
|
Name: lal%{psuffix}
|
2023-04-18 14:05:11 +00:00
|
|
|
Version: 7.3.1
|
2020-05-03 12:11:10 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: A collection of various gravitational wave data analysis routines
|
|
|
|
License: GPL-2.0-only
|
|
|
|
Group: Productivity/Scientific/Physics
|
Accepting request 843959 from home:badshah400:branches:science
- Specfile cleanups with spec-cleaner.
- Update URL in keeping with upstream change.
- Run tests as part of %check; add necessary BuildRequires:
python3-scipy, python3-six, python3-freezegun,
python3-python-dateutil, python3-ligo-segments, and
python3-pytest for python3 tests to succeed (don't run tests for
python2).
- Add Requires: python-six, python-freezegun,
python-python-dateutil, python-scipy, and python-ligo-segments
as tests show these packages are needed for the python modules
to work meaningfully.
- ExcludeArch 32-bit, as tests fail and upstream confirms that it
is not supported
(https://git.ligo.org/lscsoft/lalsuite/-/issues/371).
OBS-URL: https://build.opensuse.org/request/show/843959
OBS-URL: https://build.opensuse.org/package/show/science/lal?expand=0&rev=7
2020-10-30 09:07:24 +00:00
|
|
|
URL: https://wiki.ligo.org/Computing/LALSuite
|
2022-08-23 14:15:48 +00:00
|
|
|
Source: https://software.igwn.org/sources/source/lalsuite/lal-%{version}.tar.xz
|
2020-05-03 12:11:10 +00:00
|
|
|
BuildRequires: %{python_module devel}
|
|
|
|
BuildRequires: %{python_module numpy-devel}
|
|
|
|
BuildRequires: %{python_module numpy}
|
|
|
|
BuildRequires: %{python_module xml}
|
|
|
|
BuildRequires: bc
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: hdf5-devel
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
BuildRequires: pkgconfig(fftw3)
|
|
|
|
BuildRequires: pkgconfig(gsl)
|
|
|
|
BuildRequires: pkgconfig(zlib)
|
Accepting request 843959 from home:badshah400:branches:science
- Specfile cleanups with spec-cleaner.
- Update URL in keeping with upstream change.
- Run tests as part of %check; add necessary BuildRequires:
python3-scipy, python3-six, python3-freezegun,
python3-python-dateutil, python3-ligo-segments, and
python3-pytest for python3 tests to succeed (don't run tests for
python2).
- Add Requires: python-six, python-freezegun,
python-python-dateutil, python-scipy, and python-ligo-segments
as tests show these packages are needed for the python modules
to work meaningfully.
- ExcludeArch 32-bit, as tests fail and upstream confirms that it
is not supported
(https://git.ligo.org/lscsoft/lalsuite/-/issues/371).
OBS-URL: https://build.opensuse.org/request/show/843959
OBS-URL: https://build.opensuse.org/package/show/science/lal?expand=0&rev=7
2020-10-30 09:07:24 +00:00
|
|
|
Requires: python-freezegun
|
|
|
|
Requires: python-numpy
|
|
|
|
Requires: python-python-dateutil
|
|
|
|
Requires: python-scipy
|
2021-02-06 21:59:47 +00:00
|
|
|
Recommends: python-ligo-lw
|
|
|
|
Recommends: python-ligo-segments
|
2023-02-04 11:04:09 +00:00
|
|
|
# Broken on all archs where 'char' is unsigned
|
|
|
|
# https://git.ligo.org/lscsoft/lalsuite/-/issues/581
|
|
|
|
# Also broken on x86
|
|
|
|
ExcludeArch: %{ix86} %{arm} %{ppc} aarch64 ppc64 ppc64le riscv64
|
2020-07-01 12:18:06 +00:00
|
|
|
%if %{with octave}
|
|
|
|
BuildRequires: octave-devel
|
2020-10-31 17:03:35 +00:00
|
|
|
BuildRequires: swig >= 4.0
|
|
|
|
%else
|
|
|
|
BuildRequires: swig >= 3.0
|
2020-07-01 12:18:06 +00:00
|
|
|
%endif
|
2021-05-15 11:38:28 +00:00
|
|
|
%if %{with test}
|
2021-02-06 21:59:47 +00:00
|
|
|
# SECTION For tests (only the default python3 flavor)
|
Accepting request 843959 from home:badshah400:branches:science
- Specfile cleanups with spec-cleaner.
- Update URL in keeping with upstream change.
- Run tests as part of %check; add necessary BuildRequires:
python3-scipy, python3-six, python3-freezegun,
python3-python-dateutil, python3-ligo-segments, and
python3-pytest for python3 tests to succeed (don't run tests for
python2).
- Add Requires: python-six, python-freezegun,
python-python-dateutil, python-scipy, and python-ligo-segments
as tests show these packages are needed for the python modules
to work meaningfully.
- ExcludeArch 32-bit, as tests fail and upstream confirms that it
is not supported
(https://git.ligo.org/lscsoft/lalsuite/-/issues/371).
OBS-URL: https://build.opensuse.org/request/show/843959
OBS-URL: https://build.opensuse.org/package/show/science/lal?expand=0&rev=7
2020-10-30 09:07:24 +00:00
|
|
|
BuildRequires: python3-freezegun
|
2021-01-18 13:31:41 +00:00
|
|
|
BuildRequires: python3-ligo-lw
|
Accepting request 843959 from home:badshah400:branches:science
- Specfile cleanups with spec-cleaner.
- Update URL in keeping with upstream change.
- Run tests as part of %check; add necessary BuildRequires:
python3-scipy, python3-six, python3-freezegun,
python3-python-dateutil, python3-ligo-segments, and
python3-pytest for python3 tests to succeed (don't run tests for
python2).
- Add Requires: python-six, python-freezegun,
python-python-dateutil, python-scipy, and python-ligo-segments
as tests show these packages are needed for the python modules
to work meaningfully.
- ExcludeArch 32-bit, as tests fail and upstream confirms that it
is not supported
(https://git.ligo.org/lscsoft/lalsuite/-/issues/371).
OBS-URL: https://build.opensuse.org/request/show/843959
OBS-URL: https://build.opensuse.org/package/show/science/lal?expand=0&rev=7
2020-10-30 09:07:24 +00:00
|
|
|
BuildRequires: python3-ligo-segments
|
2023-02-04 11:04:09 +00:00
|
|
|
# python3-py - remove with next update -- https://git.ligo.org/lscsoft/lalsuite/-/merge_requests/2033
|
|
|
|
BuildRequires: python3-py
|
Accepting request 843959 from home:badshah400:branches:science
- Specfile cleanups with spec-cleaner.
- Update URL in keeping with upstream change.
- Run tests as part of %check; add necessary BuildRequires:
python3-scipy, python3-six, python3-freezegun,
python3-python-dateutil, python3-ligo-segments, and
python3-pytest for python3 tests to succeed (don't run tests for
python2).
- Add Requires: python-six, python-freezegun,
python-python-dateutil, python-scipy, and python-ligo-segments
as tests show these packages are needed for the python modules
to work meaningfully.
- ExcludeArch 32-bit, as tests fail and upstream confirms that it
is not supported
(https://git.ligo.org/lscsoft/lalsuite/-/issues/371).
OBS-URL: https://build.opensuse.org/request/show/843959
OBS-URL: https://build.opensuse.org/package/show/science/lal?expand=0&rev=7
2020-10-30 09:07:24 +00:00
|
|
|
BuildRequires: python3-pytest
|
|
|
|
BuildRequires: python3-python-dateutil
|
|
|
|
BuildRequires: python3-scipy
|
|
|
|
# /SECTION
|
2021-05-15 11:38:28 +00:00
|
|
|
%endif
|
Accepting request 843959 from home:badshah400:branches:science
- Specfile cleanups with spec-cleaner.
- Update URL in keeping with upstream change.
- Run tests as part of %check; add necessary BuildRequires:
python3-scipy, python3-six, python3-freezegun,
python3-python-dateutil, python3-ligo-segments, and
python3-pytest for python3 tests to succeed (don't run tests for
python2).
- Add Requires: python-six, python-freezegun,
python-python-dateutil, python-scipy, and python-ligo-segments
as tests show these packages are needed for the python modules
to work meaningfully.
- ExcludeArch 32-bit, as tests fail and upstream confirms that it
is not supported
(https://git.ligo.org/lscsoft/lalsuite/-/issues/371).
OBS-URL: https://build.opensuse.org/request/show/843959
OBS-URL: https://build.opensuse.org/package/show/science/lal?expand=0&rev=7
2020-10-30 09:07:24 +00:00
|
|
|
|
|
|
|
%python_subpackages
|
2020-05-03 12:11:10 +00:00
|
|
|
|
|
|
|
%description
|
Accepting request 843959 from home:badshah400:branches:science
- Specfile cleanups with spec-cleaner.
- Update URL in keeping with upstream change.
- Run tests as part of %check; add necessary BuildRequires:
python3-scipy, python3-six, python3-freezegun,
python3-python-dateutil, python3-ligo-segments, and
python3-pytest for python3 tests to succeed (don't run tests for
python2).
- Add Requires: python-six, python-freezegun,
python-python-dateutil, python-scipy, and python-ligo-segments
as tests show these packages are needed for the python modules
to work meaningfully.
- ExcludeArch 32-bit, as tests fail and upstream confirms that it
is not supported
(https://git.ligo.org/lscsoft/lalsuite/-/issues/371).
OBS-URL: https://build.opensuse.org/request/show/843959
OBS-URL: https://build.opensuse.org/package/show/science/lal?expand=0&rev=7
2020-10-30 09:07:24 +00:00
|
|
|
The LSC Algorithm Library Suite (LALSuite) is comprised of various
|
|
|
|
gravitational wave data analysis routines written in C following the ISO/IEC
|
|
|
|
9899:1999 standard.
|
2020-05-03 12:11:10 +00:00
|
|
|
|
|
|
|
%package -n %{shliblal}
|
|
|
|
Summary: Shared library for LAL
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n %{shliblal}
|
Accepting request 843959 from home:badshah400:branches:science
- Specfile cleanups with spec-cleaner.
- Update URL in keeping with upstream change.
- Run tests as part of %check; add necessary BuildRequires:
python3-scipy, python3-six, python3-freezegun,
python3-python-dateutil, python3-ligo-segments, and
python3-pytest for python3 tests to succeed (don't run tests for
python2).
- Add Requires: python-six, python-freezegun,
python-python-dateutil, python-scipy, and python-ligo-segments
as tests show these packages are needed for the python modules
to work meaningfully.
- ExcludeArch 32-bit, as tests fail and upstream confirms that it
is not supported
(https://git.ligo.org/lscsoft/lalsuite/-/issues/371).
OBS-URL: https://build.opensuse.org/request/show/843959
OBS-URL: https://build.opensuse.org/package/show/science/lal?expand=0&rev=7
2020-10-30 09:07:24 +00:00
|
|
|
The LSC Algorithm Library Suite (LALSuite) is comprised of various
|
|
|
|
gravitational wave data analysis routines written in C following the ISO/IEC
|
|
|
|
9899:1999 standard.
|
2020-05-03 12:11:10 +00:00
|
|
|
|
|
|
|
This package provides the shared library for lal.
|
|
|
|
|
|
|
|
%package -n %{shliblalsupport}
|
|
|
|
Summary: Shared library for LALSupport
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n %{shliblalsupport}
|
Accepting request 843959 from home:badshah400:branches:science
- Specfile cleanups with spec-cleaner.
- Update URL in keeping with upstream change.
- Run tests as part of %check; add necessary BuildRequires:
python3-scipy, python3-six, python3-freezegun,
python3-python-dateutil, python3-ligo-segments, and
python3-pytest for python3 tests to succeed (don't run tests for
python2).
- Add Requires: python-six, python-freezegun,
python-python-dateutil, python-scipy, and python-ligo-segments
as tests show these packages are needed for the python modules
to work meaningfully.
- ExcludeArch 32-bit, as tests fail and upstream confirms that it
is not supported
(https://git.ligo.org/lscsoft/lalsuite/-/issues/371).
OBS-URL: https://build.opensuse.org/request/show/843959
OBS-URL: https://build.opensuse.org/package/show/science/lal?expand=0&rev=7
2020-10-30 09:07:24 +00:00
|
|
|
The LSC Algorithm Library Suite (LALSuite) is comprised of various
|
|
|
|
gravitational wave data analysis routines written in C following the ISO/IEC
|
|
|
|
9899:1999 standard.
|
2020-05-03 12:11:10 +00:00
|
|
|
|
|
|
|
This package provides the shared library for lalsupport.
|
|
|
|
|
|
|
|
%package -n %{name}-devel
|
|
|
|
Summary: Headers and source files for building against lal
|
|
|
|
Group: Productivity/Scientific/Physics
|
|
|
|
Requires: %{shliblalsupport} = %{version}
|
|
|
|
Requires: %{shliblal} = %{version}
|
|
|
|
Requires: pkgconfig(fftw3)
|
|
|
|
Requires: pkgconfig(gsl)
|
Accepting request 843959 from home:badshah400:branches:science
- Specfile cleanups with spec-cleaner.
- Update URL in keeping with upstream change.
- Run tests as part of %check; add necessary BuildRequires:
python3-scipy, python3-six, python3-freezegun,
python3-python-dateutil, python3-ligo-segments, and
python3-pytest for python3 tests to succeed (don't run tests for
python2).
- Add Requires: python-six, python-freezegun,
python-python-dateutil, python-scipy, and python-ligo-segments
as tests show these packages are needed for the python modules
to work meaningfully.
- ExcludeArch 32-bit, as tests fail and upstream confirms that it
is not supported
(https://git.ligo.org/lscsoft/lalsuite/-/issues/371).
OBS-URL: https://build.opensuse.org/request/show/843959
OBS-URL: https://build.opensuse.org/package/show/science/lal?expand=0&rev=7
2020-10-30 09:07:24 +00:00
|
|
|
Requires: pkgconfig(zlib)
|
2020-05-03 12:11:10 +00:00
|
|
|
|
|
|
|
%description -n %{name}-devel
|
Accepting request 843959 from home:badshah400:branches:science
- Specfile cleanups with spec-cleaner.
- Update URL in keeping with upstream change.
- Run tests as part of %check; add necessary BuildRequires:
python3-scipy, python3-six, python3-freezegun,
python3-python-dateutil, python3-ligo-segments, and
python3-pytest for python3 tests to succeed (don't run tests for
python2).
- Add Requires: python-six, python-freezegun,
python-python-dateutil, python-scipy, and python-ligo-segments
as tests show these packages are needed for the python modules
to work meaningfully.
- ExcludeArch 32-bit, as tests fail and upstream confirms that it
is not supported
(https://git.ligo.org/lscsoft/lalsuite/-/issues/371).
OBS-URL: https://build.opensuse.org/request/show/843959
OBS-URL: https://build.opensuse.org/package/show/science/lal?expand=0&rev=7
2020-10-30 09:07:24 +00:00
|
|
|
The LSC Algorithm Library Suite (LALSuite) is comprised of various
|
|
|
|
gravitational wave data analysis routines written in C following the ISO/IEC
|
|
|
|
9899:1999 standard.
|
2020-05-03 12:11:10 +00:00
|
|
|
|
|
|
|
This package provides the header files and sources need for building software against lal.
|
|
|
|
|
|
|
|
%package -n octave-lal
|
|
|
|
Summary: Octave module for lal
|
|
|
|
Group: Productivity/Scientific/Physics
|
|
|
|
%requires_eq octave-cli
|
|
|
|
|
|
|
|
%description -n octave-lal
|
Accepting request 843959 from home:badshah400:branches:science
- Specfile cleanups with spec-cleaner.
- Update URL in keeping with upstream change.
- Run tests as part of %check; add necessary BuildRequires:
python3-scipy, python3-six, python3-freezegun,
python3-python-dateutil, python3-ligo-segments, and
python3-pytest for python3 tests to succeed (don't run tests for
python2).
- Add Requires: python-six, python-freezegun,
python-python-dateutil, python-scipy, and python-ligo-segments
as tests show these packages are needed for the python modules
to work meaningfully.
- ExcludeArch 32-bit, as tests fail and upstream confirms that it
is not supported
(https://git.ligo.org/lscsoft/lalsuite/-/issues/371).
OBS-URL: https://build.opensuse.org/request/show/843959
OBS-URL: https://build.opensuse.org/package/show/science/lal?expand=0&rev=7
2020-10-30 09:07:24 +00:00
|
|
|
The LSC Algorithm Library Suite (LALSuite) is comprised of various
|
|
|
|
gravitational wave data analysis routines written in C following the ISO/IEC
|
|
|
|
9899:1999 standard.
|
2020-05-03 12:11:10 +00:00
|
|
|
|
|
|
|
This package provides the octave module for lal.
|
|
|
|
|
|
|
|
%prep
|
2021-09-10 22:01:41 +00:00
|
|
|
%autosetup -p1 -n lal-%{version}
|
2020-05-03 12:11:10 +00:00
|
|
|
|
|
|
|
%build
|
2022-01-08 11:47:37 +00:00
|
|
|
%{python_expand # Necessary to run configure with all python flavors
|
2020-05-03 12:11:10 +00:00
|
|
|
export PYTHON=$python
|
|
|
|
mkdir ../${PYTHON}_build
|
Accepting request 843959 from home:badshah400:branches:science
- Specfile cleanups with spec-cleaner.
- Update URL in keeping with upstream change.
- Run tests as part of %check; add necessary BuildRequires:
python3-scipy, python3-six, python3-freezegun,
python3-python-dateutil, python3-ligo-segments, and
python3-pytest for python3 tests to succeed (don't run tests for
python2).
- Add Requires: python-six, python-freezegun,
python-python-dateutil, python-scipy, and python-ligo-segments
as tests show these packages are needed for the python modules
to work meaningfully.
- ExcludeArch 32-bit, as tests fail and upstream confirms that it
is not supported
(https://git.ligo.org/lscsoft/lalsuite/-/issues/371).
OBS-URL: https://build.opensuse.org/request/show/843959
OBS-URL: https://build.opensuse.org/package/show/science/lal?expand=0&rev=7
2020-10-30 09:07:24 +00:00
|
|
|
cp -pr ./ ../${PYTHON}_build
|
2020-05-03 12:11:10 +00:00
|
|
|
pushd ../${PYTHON}_build
|
2020-07-01 12:18:06 +00:00
|
|
|
%configure \
|
|
|
|
%{?with_octave:--enable-swig-octave} \
|
|
|
|
%{!?with_octave:--disable-swig-octave}
|
Accepting request 843959 from home:badshah400:branches:science
- Specfile cleanups with spec-cleaner.
- Update URL in keeping with upstream change.
- Run tests as part of %check; add necessary BuildRequires:
python3-scipy, python3-six, python3-freezegun,
python3-python-dateutil, python3-ligo-segments, and
python3-pytest for python3 tests to succeed (don't run tests for
python2).
- Add Requires: python-six, python-freezegun,
python-python-dateutil, python-scipy, and python-ligo-segments
as tests show these packages are needed for the python modules
to work meaningfully.
- ExcludeArch 32-bit, as tests fail and upstream confirms that it
is not supported
(https://git.ligo.org/lscsoft/lalsuite/-/issues/371).
OBS-URL: https://build.opensuse.org/request/show/843959
OBS-URL: https://build.opensuse.org/package/show/science/lal?expand=0&rev=7
2020-10-30 09:07:24 +00:00
|
|
|
%make_build
|
2020-05-03 12:11:10 +00:00
|
|
|
popd
|
|
|
|
}
|
|
|
|
|
|
|
|
%install
|
2021-05-15 11:38:28 +00:00
|
|
|
%if %{without test}
|
2021-02-06 21:59:47 +00:00
|
|
|
%{python_expand # all python flavors as configured above
|
2020-05-03 12:11:10 +00:00
|
|
|
export PYTHON=$python
|
|
|
|
pushd ../${PYTHON}_build
|
|
|
|
%make_install
|
|
|
|
popd
|
|
|
|
}
|
|
|
|
|
|
|
|
rm %{buildroot}%{_sysconfdir}/*
|
|
|
|
|
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
|
|
find %{buildroot}%{_libdir} -name "*.a" -delete -print
|
|
|
|
|
|
|
|
%{python_expand # FIX env HASHBANGS
|
2023-02-04 11:04:09 +00:00
|
|
|
sed -Ei "1{/^#!\/usr\/bin\/env python/d}" \
|
|
|
|
%{buildroot}%{$python_sitearch}/lal/{gpstime,series,antenna}.py
|
|
|
|
rm %{buildroot}%{$python_sitearch}/lal/__pycache__/{gpstime,series,antenna}*.pyc
|
|
|
|
|
|
|
|
# Only compileall >= 3.9 has '-s strip_prefix' option
|
|
|
|
if [ %{$python_version_nodots} -ge 39 ]; then \
|
|
|
|
for d in %{buildroot}%{$python_sitelib} %{buildroot}%{$python_sitearch}; do \
|
|
|
|
if [ -d $d ]; then \
|
|
|
|
$python -m compileall -s %{buildroot} $d; \
|
|
|
|
$python -O -m compileall -s %{buildroot} $d; \
|
|
|
|
fi; \
|
|
|
|
done \
|
|
|
|
fi;
|
|
|
|
}
|
|
|
|
# python_compileall is broken, see https://github.com/openSUSE/python-rpm-macros/issues/150
|
|
|
|
#%%{?python_compileall}
|
|
|
|
|
|
|
|
%{python_expand # Verify we don't have broken cache files
|
|
|
|
# "-exec false {} +" makes the return code nonzero on match
|
|
|
|
find %{buildroot}%{$python_sitearch} -iname \*pyc -type f \( -exec grep 'home/abuild' '{}' \; -and -exec false '{}' \+ \)
|
2020-05-03 12:11:10 +00:00
|
|
|
}
|
|
|
|
|
2021-05-15 11:38:28 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}/
|
|
|
|
%endif
|
|
|
|
|
Accepting request 843959 from home:badshah400:branches:science
- Specfile cleanups with spec-cleaner.
- Update URL in keeping with upstream change.
- Run tests as part of %check; add necessary BuildRequires:
python3-scipy, python3-six, python3-freezegun,
python3-python-dateutil, python3-ligo-segments, and
python3-pytest for python3 tests to succeed (don't run tests for
python2).
- Add Requires: python-six, python-freezegun,
python-python-dateutil, python-scipy, and python-ligo-segments
as tests show these packages are needed for the python modules
to work meaningfully.
- ExcludeArch 32-bit, as tests fail and upstream confirms that it
is not supported
(https://git.ligo.org/lscsoft/lalsuite/-/issues/371).
OBS-URL: https://build.opensuse.org/request/show/843959
OBS-URL: https://build.opensuse.org/package/show/science/lal?expand=0&rev=7
2020-10-30 09:07:24 +00:00
|
|
|
%check
|
2021-05-15 11:38:28 +00:00
|
|
|
%if %{with test}
|
2021-02-06 21:59:47 +00:00
|
|
|
%{python_expand # Run tests from the build dir of the primary python3 flavor only
|
|
|
|
if [ "$python_" = "python3_" -o "%{$python_provides}" = "python3" ]; then
|
|
|
|
export PYTHON=$python
|
|
|
|
pushd ../${PYTHON}_build
|
Accepting request 843959 from home:badshah400:branches:science
- Specfile cleanups with spec-cleaner.
- Update URL in keeping with upstream change.
- Run tests as part of %check; add necessary BuildRequires:
python3-scipy, python3-six, python3-freezegun,
python3-python-dateutil, python3-ligo-segments, and
python3-pytest for python3 tests to succeed (don't run tests for
python2).
- Add Requires: python-six, python-freezegun,
python-python-dateutil, python-scipy, and python-ligo-segments
as tests show these packages are needed for the python modules
to work meaningfully.
- ExcludeArch 32-bit, as tests fail and upstream confirms that it
is not supported
(https://git.ligo.org/lscsoft/lalsuite/-/issues/371).
OBS-URL: https://build.opensuse.org/request/show/843959
OBS-URL: https://build.opensuse.org/package/show/science/lal?expand=0&rev=7
2020-10-30 09:07:24 +00:00
|
|
|
%make_build check
|
|
|
|
popd
|
2021-02-06 21:59:47 +00:00
|
|
|
fi
|
|
|
|
}
|
2021-05-15 11:38:28 +00:00
|
|
|
%endif
|
Accepting request 843959 from home:badshah400:branches:science
- Specfile cleanups with spec-cleaner.
- Update URL in keeping with upstream change.
- Run tests as part of %check; add necessary BuildRequires:
python3-scipy, python3-six, python3-freezegun,
python3-python-dateutil, python3-ligo-segments, and
python3-pytest for python3 tests to succeed (don't run tests for
python2).
- Add Requires: python-six, python-freezegun,
python-python-dateutil, python-scipy, and python-ligo-segments
as tests show these packages are needed for the python modules
to work meaningfully.
- ExcludeArch 32-bit, as tests fail and upstream confirms that it
is not supported
(https://git.ligo.org/lscsoft/lalsuite/-/issues/371).
OBS-URL: https://build.opensuse.org/request/show/843959
OBS-URL: https://build.opensuse.org/package/show/science/lal?expand=0&rev=7
2020-10-30 09:07:24 +00:00
|
|
|
|
2021-05-15 11:38:28 +00:00
|
|
|
%if %{without test}
|
2020-05-03 12:11:10 +00:00
|
|
|
%post -n %{shliblal} -p /sbin/ldconfig
|
|
|
|
%post -n %{shliblalsupport} -p /sbin/ldconfig
|
|
|
|
%postun -n %{shliblal} -p /sbin/ldconfig
|
|
|
|
%postun -n %{shliblalsupport} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files %{python_files}
|
2021-02-06 21:59:47 +00:00
|
|
|
%{python_sitearch}/lal
|
2020-05-03 12:11:10 +00:00
|
|
|
|
|
|
|
%files -n %{shliblal}
|
|
|
|
%{_libdir}/liblal.so.*
|
|
|
|
|
|
|
|
%files -n %{shliblalsupport}
|
|
|
|
%{_libdir}/liblalsupport.so.*
|
|
|
|
|
|
|
|
%files -n %{name}-devel
|
|
|
|
%doc AUTHORS README.md
|
|
|
|
%license COPYING
|
|
|
|
%{_bindir}/*
|
|
|
|
%{_includedir}/lal/
|
|
|
|
%{_libdir}/liblal.so
|
|
|
|
%{_libdir}/liblalsupport.so
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
2023-04-18 14:05:11 +00:00
|
|
|
%{_mandir}/man7/*.7%{?ext_man}
|
2020-05-03 12:11:10 +00:00
|
|
|
|
2020-07-01 12:18:06 +00:00
|
|
|
%if %{with octave}
|
2020-05-03 12:11:10 +00:00
|
|
|
%files -n octave-lal
|
|
|
|
%dir %{_libdir}/octave/*/site
|
|
|
|
%dir %{_libdir}/octave/*/site/oct
|
|
|
|
%dir %{_libdir}/octave/*/site/oct/*
|
|
|
|
%{_libdir}/octave/*/site/oct/*/*.oct
|
2020-07-01 12:18:06 +00:00
|
|
|
%endif
|
2020-05-03 12:11:10 +00:00
|
|
|
|
2021-05-15 11:38:28 +00:00
|
|
|
%endif
|
|
|
|
|
2020-05-03 12:11:10 +00:00
|
|
|
%changelog
|