SHA256
1
0
forked from pool/lalframe

Accepting request 843942 from home:badshah400:branches:science

- Update URL.
- Specfile cleanups using spec-cleaner.
- Drop redundant build/runtime dependencies:
  * libframe-devel: superseded by framel-devel.
  * ldas-tools-framecpp-devel is identical to pkgconfig(framecppc).
- Implement tests as part of %check; additionally needs BuildRequires: python3-pytest.
- 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/843942
OBS-URL: https://build.opensuse.org/package/show/science/lalframe?expand=0&rev=4
This commit is contained in:
Stefan Brüns 2020-10-30 09:17:37 +00:00 committed by Git OBS Bridge
parent 320cb1cb49
commit 0fb02781bd
2 changed files with 44 additions and 14 deletions

View File

@ -1,3 +1,26 @@
-------------------------------------------------------------------
Sun Oct 25 18:32:25 UTC 2020 - Atri Bhattacharya <badshah400@gmail.com>
- Update URL.
- Specfile cleanups using spec-cleaner.
-------------------------------------------------------------------
Fri Oct 23 10:42:49 UTC 2020 - Atri Bhattacharya <badshah400@gmail.com>
- Drop redundant build/runtime dependencies:
* libframe-devel: superseded by framel-devel.
* ldas-tools-framecpp-devel is identical to
pkgconfig(framecppc).
-------------------------------------------------------------------
Sat Aug 15 17:53:49 UTC 2020 - Atri Bhattacharya <badshah400@gmail.com>
- Implement tests as part of %check; additionally needs
BuildRequires: python3-pytest.
- ExcludeArch 32-bit, as tests fail and upstream confirms that it
is not supported
(https://git.ligo.org/lscsoft/lalsuite/-/issues/371).
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Jul 6 23:23:25 UTC 2020 - Atri Bhattacharya <badshah400@gmail.com> Mon Jul 6 23:23:25 UTC 2020 - Atri Bhattacharya <badshah400@gmail.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package lalframe # spec file for package lalframe
# #
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2020 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
@ -24,30 +24,32 @@ Release: 0
Summary: LSC Algorithm Frame Library for gravitational wave data analysis Summary: LSC Algorithm Frame Library for gravitational wave data analysis
License: GPL-2.0-or-later License: GPL-2.0-or-later
Group: Productivity/Scientific/Physics Group: Productivity/Scientific/Physics
URL: https://wiki.ligo.org/Computing/DASWG/LALSuite URL: https://wiki.ligo.org/Computing/LALSuite
Source: http://software.ligo.org/lscsoft/source/lalsuite/lalframe-%{version}.tar.xz Source: http://software.ligo.org/lscsoft/source/lalsuite/lalframe-%{version}.tar.xz
BuildRequires: %{python_module devel} BuildRequires: %{python_module devel}
BuildRequires: %{python_module lal >= 6.21.0} BuildRequires: %{python_module lal >= 6.21.0}
BuildRequires: %{python_module numpy-devel} BuildRequires: %{python_module numpy-devel}
BuildRequires: %{python_module numpy} BuildRequires: %{python_module numpy}
%if 0%{?suse_version} < 1550
BuildRequires: python-xml
%endif
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: ldas-tools-framecpp-devel BuildRequires: pkgconfig
BuildRequires: libframe-devel
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
BuildRequires: swig BuildRequires: swig
BuildRequires: pkgconfig
BuildRequires: pkgconfig(framecppc) BuildRequires: pkgconfig(framecppc)
BuildRequires: pkgconfig(framel) BuildRequires: pkgconfig(framel)
BuildRequires: pkgconfig(lal) >= 6.21.0 BuildRequires: pkgconfig(lal) >= 6.21.0
Requires: python-lal
Requires: python-numpy
ExcludeArch: %{ix86}
%if 0%{?suse_version} < 1550
BuildRequires: python-xml
%endif
%if %{with octave} %if %{with octave}
BuildRequires: octave-lal >= 6.21.0 BuildRequires: octave-lal >= 6.21.0
BuildRequires: pkgconfig(octave) BuildRequires: pkgconfig(octave)
%endif %endif
Requires: python-lal # SECTION For tests
Requires: python-numpy BuildRequires: python3-pytest
# /SECTION
%python_subpackages %python_subpackages
%description %description
@ -65,8 +67,8 @@ that use the LAL Frame library.
Summary: Development files for LAL Frame Summary: Development files for LAL Frame
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Requires: %{shlib} = %{version} Requires: %{shlib} = %{version}
Requires: ldas-tools-framecpp-devel Requires: pkgconfig(framecppc)
Requires: libframe-devel Requires: pkgconfig(framel)
Requires: pkgconfig(lal) Requires: pkgconfig(lal)
%description -n %{name}-devel %description -n %{name}-devel
@ -89,12 +91,12 @@ This package provides the necessary files for using LAL Frame with octave.
%{python_expand # Necessary to run %%configure with both py2 and py3 %{python_expand # Necessary to run %%configure with both py2 and py3
export PYTHON=$python export PYTHON=$python
mkdir ../${PYTHON}_build mkdir ../${PYTHON}_build
cp -pr ./ ../${PYTHON}_build cp -pr ./ ../${PYTHON}_build
pushd ../${PYTHON}_build pushd ../${PYTHON}_build
%configure \ %configure \
%{?with_octave:--enable-swig-octave} \ %{?with_octave:--enable-swig-octave} \
%{!?with_octave:--disable-swig-octave} %{!?with_octave:--disable-swig-octave}
make %{?_smp_mflags} %make_build
popd popd
} }
@ -141,6 +143,11 @@ find %{buildroot} -type f -name "*.la" -delete -print
%python_expand %fdupes %{buildroot}%{$python_sitearch}/%{name}/ %python_expand %fdupes %{buildroot}%{$python_sitearch}/%{name}/
%ifpython3
%check
%make_build check
%endif
%post -n %{shlib} -p /sbin/ldconfig %post -n %{shlib} -p /sbin/ldconfig
%postun -n %{shlib} -p /sbin/ldconfig %postun -n %{shlib} -p /sbin/ldconfig