Compare commits

8 Commits

Author SHA256 Message Date
d383711a14 Accepting request 1227763 from science
OBS-URL: https://build.opensuse.org/request/show/1227763
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/lalsimulation?expand=0&rev=12
2024-12-02 15:59:45 +00:00
ade60bb295 Accepting request 1227602 from home:badshah400:lal-fixes
Add lalsimulation-swig-stringval-not-value.patch: For compatibility with swig 4.3.0, prefer 'stringval' before 'value' attribute (upstream commit 9dba245a).

OBS-URL: https://build.opensuse.org/request/show/1227602
OBS-URL: https://build.opensuse.org/package/show/science/lalsimulation?expand=0&rev=32
2024-12-02 12:54:58 +00:00
fed0786f08 OBS-URL: https://build.opensuse.org/package/show/science/lalsimulation?expand=0&rev=31 2024-11-18 12:44:10 +00:00
33f1d0dfcb OBS-URL: https://build.opensuse.org/package/show/science/lalsimulation?expand=0&rev=30 2024-11-18 12:43:50 +00:00
8b1c163a23 Accepting request 1200254 from science
OBS-URL: https://build.opensuse.org/request/show/1200254
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/lalsimulation?expand=0&rev=11
2024-09-13 12:34:11 +00:00
adee133a9a Accepting request 1200195 from home:badshah400:branches:science
Version update and numpy 2.0 compatibilty

OBS-URL: https://build.opensuse.org/request/show/1200195
OBS-URL: https://build.opensuse.org/package/show/science/lalsimulation?expand=0&rev=28
2024-09-12 06:46:16 +00:00
c86df1f675 Accepting request 1189325 from science
OBS-URL: https://build.opensuse.org/request/show/1189325
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/lalsimulation?expand=0&rev=10
2024-07-25 13:38:49 +00:00
91847470bf Accepting request 1188785 from home:badshah400:lal-update
Update lalsimulation to 5.4.0.

OBS-URL: https://build.opensuse.org/request/show/1188785
OBS-URL: https://build.opensuse.org/package/show/science/lalsimulation?expand=0&rev=26
2024-07-24 07:53:38 +00:00
5 changed files with 73 additions and 6 deletions

View File

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

View File

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

View File

@@ -0,0 +1,33 @@
From 9dba245ab3692ecf691247a442704f13c075ed34 Mon Sep 17 00:00:00 2001
From: Karl Wette <karl.wette@ligo.org>
Date: Thu, 24 Oct 2024 18:06:30 +1100
Subject: [PATCH] common/swig/generate_swig_iface.py: prefer "stringval" before
"value" attribute
- As of SWIG 4.3.0 "value" attribute contains quote characters
- "stringval" attribute appears to still contain the raw string
---
common/swig/generate_swig_iface.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/common/swig/generate_swig_iface.py b/common/swig/generate_swig_iface.py
index 530b026d5d..eaee2d41ce 100644
--- a/common/swig/generate_swig_iface.py
+++ b/common/swig/generate_swig_iface.py
@@ -195,9 +195,11 @@ class SwigSymbols(object):
"""Parse a swiglal macro
"""
cdecl_name = get_swig_attr(cdecl, 'name')
- cdecl_value = get_swig_attr(cdecl, 'value')
+ cdecl_value = get_swig_attr(cdecl, 'stringval')
if not cdecl_value:
- raise ValueError("cdecl '{}' has no value".format(cdecl_name))
+ cdecl_value = get_swig_attr(cdecl, 'value')
+ if not cdecl_value:
+ raise ValueError("cdecl '{}' has no value".format(cdecl_name))
macro = re.sub(r'\s', '', cdecl_value)
if cdecl_name == '__swiglal__':
if macro in clear_macros:
--
GitLab

View File

@@ -1,3 +1,31 @@
-------------------------------------------------------------------
Sun Dec 1 11:27:36 UTC 2024 - Atri Bhattacharya <badshah400@gmail.com>
- Add lalsimulation-swig-stringval-not-value.patch: For
compatibility with swig 4.3.0, prefer 'stringval' before 'value'
attribute (upstream commit 9dba245a).
-------------------------------------------------------------------
Mon Nov 18 12:43:36 UTC 2024 - Atri Bhattacharya <badshah400@gmail.com>
- Fix use of %requires_eq with respect to octave.
-------------------------------------------------------------------
Wed Sep 11 17:26:10 UTC 2024 - Atri Bhattacharya <badshah400@gmail.com>
- Update to version 6.0.0:
* No release notes.
- Pass -Wno-error=strict-prototypes to avoid triggering a numpy
2.0.0 issue (gh#numpy/numpy#26771).
- Update shared lib name in keeping with upstream shared object
versioning update from 32 -> 37.
-------------------------------------------------------------------
Sat Jul 20 03:01:48 UTC 2024 - Atri Bhattacharya <badshah400@gmail.com>
- Update to version 5.4.0:
* No release notes.
-------------------------------------------------------------------
Mon Jan 22 07:54:56 UTC 2024 - Atri Bhattacharya <badshah400@gmail.com>

View File

@@ -21,16 +21,18 @@
# Py2 support dropped upstream
%define skip_python2 1
%define shlib liblalsimulation32
%define shlib liblalsimulation37
# octave >= 6 not supported
%bcond_with octave
Name: lalsimulation
Version: 5.3.1
Version: 6.0.0
Release: 0
Summary: LSC Algorithm Simulation Library
License: GPL-2.0-only
URL: https://wiki.ligo.org/Computing/DASWG/LALSuite
Source: https://software.igwn.org/sources/source/lalsuite/%{name}-%{version}.tar.xz
# PATCH-FIX-UPSTREAM
Patch0: https://git.ligo.org/lscsoft/lalsuite/-/commit/9dba245ab3692ecf691247a442704f13c075ed34.patch#/lalsimulation-swig-stringval-not-value.patch
BuildRequires: %{python_module devel}
BuildRequires: %{python_module lal >= 7.2.0}
BuildRequires: %{python_module numpy >= 1.7}
@@ -93,6 +95,7 @@ BuildArch: noarch
This package provides the data files used when running analyses involving
lalsimulation.
%if %{with octave}
%package -n octave-lalsimulation
Summary: Octave bindings for LALSimulation
Requires: %{name}-data = %{version}
@@ -101,8 +104,10 @@ Requires: octave-lal
%description -n octave-lalsimulation
This package provides the necessary files for using LALSimulation with octave.
%endif
%prep
# Upstream commits are -p1 against the full lalsuite, but -p2 against individual lal* pkgs
%autosetup -p2
%build
@@ -111,7 +116,8 @@ export PYTHON=%{_bindir}/$python
mkdir ../$python
cp -pr ./ ../$python
pushd ../$python
export CFLAGS="%{optflags} -Wno-error=enum-int-mismatch"
# strict-prototypes: https://github.com/numpy/numpy/pull/26771 (remove for numpy >= 2.0.1)
export CFLAGS="%{optflags} -Wno-error=enum-int-mismatch -Wno-error=strict-prototypes"
export CXXFLAGS=$CFLAGS
%configure \
%{?with_octave:--enable-swig-octave} \