Accepting request 871543 from home:bnavigator:branches:science

- Update to version 7.1.0
  * no public changelog 
- Skip python36 build. Due to NEP 29, astropy, numpy, scipy and co.
  do not have a python36 flavored package in TW
- Refresh lalapps-fix-uninitialised-var.patch
- Enable test suite
- Fix the python subpackage setup

OBS-URL: https://build.opensuse.org/request/show/871543
OBS-URL: https://build.opensuse.org/package/show/science/lalapps?expand=0&rev=7
This commit is contained in:
Atri Bhattacharya 2021-02-13 11:35:26 +00:00 committed by Git OBS Bridge
parent bf108e4697
commit 55ba5f2051
5 changed files with 85 additions and 55 deletions

View File

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

3
lalapps-7.1.0.tar.xz Normal file
View File

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

View File

@ -1,8 +1,8 @@
Index: lalapps-6.26.0/src/string/StringSearch.c Index: lalapps-7.1.0/src/string/StringSearch.c
=================================================================== ===================================================================
--- lalapps-6.26.0.orig/src/string/StringSearch.c --- lalapps-7.1.0.orig/src/string/StringSearch.c
+++ lalapps-6.26.0/src/string/StringSearch.c +++ lalapps-7.1.0/src/string/StringSearch.c
@@ -202,7 +202,7 @@ int main(int argc,char *argv[]) @@ -201,7 +201,7 @@ int main(int argc,char *argv[])
unsigned seg_length; unsigned seg_length;
StringTemplate strtemplate[MAXTEMPLATES]; StringTemplate strtemplate[MAXTEMPLATES];
int NTemplates; int NTemplates;
@ -11,23 +11,10 @@ Index: lalapps-6.26.0/src/string/StringSearch.c
REAL8 fcutoff_fix[MAXTEMPLATES]; /* high frequency cutoffs given by the template bank file */ REAL8 fcutoff_fix[MAXTEMPLATES]; /* high frequency cutoffs given by the template bank file */
SnglBurst *events=NULL; SnglBurst *events=NULL;
MetadataTable process; MetadataTable process;
Index: lalapps-6.26.0/src/pulsar/SFTTools/SFTvalidate.c Index: lalapps-7.1.0/src/pulsar/HoughFstat/HierarchicalSearch.c
=================================================================== ===================================================================
--- lalapps-6.26.0.orig/src/pulsar/SFTTools/SFTvalidate.c --- lalapps-7.1.0.orig/src/pulsar/HoughFstat/HierarchicalSearch.c
+++ lalapps-6.26.0/src/pulsar/SFTTools/SFTvalidate.c +++ lalapps-7.1.0/src/pulsar/HoughFstat/HierarchicalSearch.c
@@ -59,7 +59,7 @@ int main(int argc, char** argv) {
/* and read successive SFTs blocks from the file and validate CRC
checksums */
for (count=0; 1; count++) {
- struct headertag2 info,lastinfo;
+ struct headertag2 info,lastinfo={};
int err=0, swapendian, move, j;
err=ReadSFTHeader(fp, &info, NULL, &swapendian, 1);
Index: lalapps-6.26.0/src/pulsar/HoughFstat/HierarchicalSearch.c
===================================================================
--- lalapps-6.26.0.orig/src/pulsar/HoughFstat/HierarchicalSearch.c
+++ lalapps-6.26.0/src/pulsar/HoughFstat/HierarchicalSearch.c
@@ -1255,7 +1255,7 @@ void SetUpSFTs( LALStatus *status, /** @@ -1255,7 +1255,7 @@ void SetUpSFTs( LALStatus *status, /**
REAL8 timebase, tObs, deltaFsft; REAL8 timebase, tObs, deltaFsft;
UINT4 k,numSFTby2; UINT4 k,numSFTby2;
@ -46,11 +33,11 @@ Index: lalapps-6.26.0/src/pulsar/HoughFstat/HierarchicalSearch.c
HoughStats stats; /* statistics struct */ HoughStats stats; /* statistics struct */
CHAR *fileStats = NULL; CHAR *fileStats = NULL;
FILE *fpStats = NULL; FILE *fpStats = NULL;
Index: lalapps-6.26.0/src/pulsar/SFTTools/splitSFTs.c Index: lalapps-7.1.0/src/pulsar/SFTTools/splitSFTs.c
=================================================================== ===================================================================
--- lalapps-6.26.0.orig/src/pulsar/SFTTools/splitSFTs.c --- lalapps-7.1.0.orig/src/pulsar/SFTTools/splitSFTs.c
+++ lalapps-6.26.0/src/pulsar/SFTTools/splitSFTs.c +++ lalapps-7.1.0/src/pulsar/SFTTools/splitSFTs.c
@@ -199,7 +199,7 @@ int main( int argc, char **argv ) @@ -196,7 +196,7 @@ int main( int argc, char **argv )
{ {
int arg; /* current command-line argument */ int arg; /* current command-line argument */
unsigned int bin; /* current bin */ unsigned int bin; /* current bin */

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Fri Feb 12 21:51:42 UTC 2021 - Ben Greiner <code@bnavigator.de>
- Update to version 7.1.0
* no public changelog
- Skip python36 build. Due to NEP 29, astropy, numpy, scipy and co.
do not have a python36 flavored package in TW
- Refresh lalapps-fix-uninitialised-var.patch
- Enable test suite
- Fix the python subpackage setup
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Nov 2 10:49:34 UTC 2020 - Atri Bhattacharya <badshah400@gmail.com> Mon Nov 2 10:49:34 UTC 2020 - Atri Bhattacharya <badshah400@gmail.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package lalapps # spec file for package lalapps
# #
# 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
@ -17,8 +17,10 @@
%define skip_python2 1 %define skip_python2 1
# NEP 29: astropy, numpy, scipy do not have a python36 flavor package in TW
%define skip_python36 1
Name: lalapps Name: lalapps
Version: 6.26.1 Version: 7.1.0
Release: 0 Release: 0
Summary: LSC Algorithm Library Applications Summary: LSC Algorithm Library Applications
License: GPL-2.0-or-later License: GPL-2.0-or-later
@ -30,12 +32,12 @@ Patch0: lalapps-fix-uninitialised-var.patch
BuildRequires: %{python_module astropy} BuildRequires: %{python_module astropy}
BuildRequires: %{python_module devel} BuildRequires: %{python_module devel}
BuildRequires: %{python_module glue} BuildRequires: %{python_module glue}
BuildRequires: %{python_module lal >= 6.21.0} BuildRequires: %{python_module lal >= 7.1.0}
BuildRequires: %{python_module lalburst >= 1.5.4} BuildRequires: %{python_module lalburst >= 1.5.3}
BuildRequires: %{python_module lalframe >= 1.5.0} BuildRequires: %{python_module lalframe >= 1.5.0}
BuildRequires: %{python_module lalinference >= 1.11.0} BuildRequires: %{python_module lalinference >= 2.0.0}
BuildRequires: %{python_module lalmetaio >= 1.6.0} BuildRequires: %{python_module lalmetaio >= 2.0.0}
BuildRequires: %{python_module lalpulsar >= 1.18.0} BuildRequires: %{python_module lalpulsar >= 3.0.0}
BuildRequires: %{python_module matplotlib} BuildRequires: %{python_module matplotlib}
BuildRequires: %{python_module numpy-devel} BuildRequires: %{python_module numpy-devel}
BuildRequires: %{python_module numpy} BuildRequires: %{python_module numpy}
@ -47,28 +49,25 @@ BuildRequires: pkgconfig
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
BuildRequires: swig BuildRequires: swig
BuildRequires: pkgconfig(fftw3) BuildRequires: pkgconfig(fftw3)
BuildRequires: pkgconfig(framel) BuildRequires: pkgconfig(framel) >= 8.39.2
BuildRequires: pkgconfig(gsl) BuildRequires: pkgconfig(gsl)
BuildRequires: pkgconfig(lal) >= 6.21.0 BuildRequires: pkgconfig(lal) >= 7.1.0
BuildRequires: pkgconfig(lalburst) >= 1.5.4 BuildRequires: pkgconfig(lalburst) >= 1.5.3
BuildRequires: pkgconfig(lalframe) >= 1.5.0 BuildRequires: pkgconfig(lalframe) >= 1.5.0
BuildRequires: pkgconfig(lalinference) >= 1.11.0 BuildRequires: pkgconfig(lalinference) >= 2.0.0
BuildRequires: pkgconfig(lalinspiral) >= 1.10.0 BuildRequires: pkgconfig(lalinspiral) >= 2.0.0
BuildRequires: pkgconfig(lalmetaio) >= 1.6.0 BuildRequires: pkgconfig(lalmetaio) >= 2.0.0
BuildRequires: pkgconfig(lalpulsar) >= 1.18.0 BuildRequires: pkgconfig(lalpulsar) >= 3.0.0
BuildRequires: pkgconfig(lalsimulation) >= 1.10.0 BuildRequires: pkgconfig(lalsimulation) >= 2.5.0
Requires: python3-lal >= 6.21.0 # SECTION For tests
Requires: python3-lalburst >= 1.5.4 BuildRequires: %{python_module pytest}
Requires: python3-lalframe >= 1.5.0 BuildRequires: bc
Requires: python3-lalinference >= 1.11.0 BuildRequires: lalpulsar-data
Requires: python3-lalinspiral >= 1.10.0 Requires: python3-%{name} = %{version}
Requires: python3-lalmetaio >= 1.6.0 # /SECTION
Requires: python3-lalpulsar >= 1.18.0
Requires: python3-lalsimulation >= 1.10.0
Requires: python3-numpy
Requires: python3-scipy
# 32-bit no longer supported upstream # 32-bit no longer supported upstream
ExcludeArch: %{ix86} ExcludeArch: %{ix86}
%define python_subpackage_only 1
%python_subpackages %python_subpackages
%description %description
@ -76,6 +75,31 @@ The LSC Algorithm Library Applications for gravitational wave data analysis.
This package contains applications that are built on tools in the LSC This package contains applications that are built on tools in the LSC
Algorithm Library. Algorithm Library.
%package -n python-%{name}
Summary: LSC Algorithm Library Applications
Group: Productivity/Scientific/Physics
Requires: python-h5py
Requires: python-lal >= 7.10
Requires: python-lalburst >= 1.5.3
Requires: python-lalframe >= 1.5.0
Requires: python-lalinference >= 2.0.0
Requires: python-lalinspiral >= 2.0.0
Requires: python-lalmetaio >= 2.0.0
Requires: python-lalpulsar >= 3.0.0
Requires: python-lalsimulation >= 2.5.0
Requires: python-ligo-lw
Requires: python-ligo-segments
Requires: python-matplotlib
Requires: python-numpy
Requires: python-scipy
%description -n python-%{name}
The LSC Algorithm Library Applications for gravitational wave data analysis.
This package contains applications that are built on tools in the LSC
Algorithm Library.
This package contains the python files
%prep %prep
%autosetup -p1 %autosetup -p1
@ -84,7 +108,7 @@ sed -Ei "1{s|/usr/bin/env python|%{_bindir}/python3|}" \
src/pulsar/HeterodyneSearch/make_frame_cache src/pulsar/HeterodyneSearch/make_frame_cache
%build %build
%{python_expand # Necessary to run %%configure with both py2 and py3 %{python_expand # Necessary to run %%configure for all active python flavors
export PYTHON=%{_bindir}/$python export PYTHON=%{_bindir}/$python
mkdir ../$python mkdir ../$python
cp -pr ./ ../$python cp -pr ./ ../$python
@ -98,7 +122,7 @@ popd
} }
%install %install
%{python_expand # py2 and py3 make_install %{python_expand # install for all active python flavors
export PYTHON=$python export PYTHON=$python
pushd ../$python pushd ../$python
%make_install %make_install
@ -144,6 +168,14 @@ find %{buildroot} -type f -name "*.la" -delete -print
%python_expand %fdupes %{buildroot}%{$python_sitearch}/%{name}/ %python_expand %fdupes %{buildroot}%{$python_sitearch}/%{name}/
%fdupes %{buildroot}/%{_datadir}/%{name}/ %fdupes %{buildroot}/%{_datadir}/%{name}/
%check
%{python_expand #
export PYTHON=$python
pushd ../$python
%make_build check
popd
}
%files -n %{name} %files -n %{name}
%license COPYING %license COPYING
%{_bindir}/* %{_bindir}/*
@ -151,7 +183,7 @@ find %{buildroot} -type f -name "*.la" -delete -print
%{_mandir}/man1/* %{_mandir}/man1/*
%config %{_sysconfdir}/profile.d/%{name}.* %config %{_sysconfdir}/profile.d/%{name}.*
%files %{python_files} %files %{python_files %{name}}
%{python_sitearch}/* %{python_sitearch}/*
%changelog %changelog