--- /dev/null
+--- lalxml-1.2.4/gnuscripts/lalsuite_swig.m4.orig 2017-02-03 20:39:20.000000000 +0100
++++ lalxml-1.2.4/gnuscripts/lalsuite_swig.m4 2023-01-23 06:21:14.412763138 +0100
+@@ -280,13 +280,7 @@ AC_DEFUN([LALSUITE_USE_SWIG_OCTAVE],[
+ # is installed in the same directory as Octave, .oct files will be found by
+ # Octave without having to add to OCTAVE_PATH
+ AC_MSG_CHECKING([${OCTAVE} .oct installation directory])
+- octave_prefix=[`${octave_cfg} -p PREFIX 2>/dev/null | ${SED} -e 's|/*$||'`]
+ octexecdir=[`${octave_cfg} -p LOCALVEROCTFILEDIR 2>/dev/null | ${SED} -e 's|/*$||'`]
+- octexecdir=[`echo ${octexecdir} | ${SED} -e "s|^${octave_prefix}/||"`]
+- AS_IF([test "x`echo ${octexecdir} | ${SED} -n -e '\|^/|p'`" != x],[
+- AC_MSG_ERROR([could not build relative path from "${octexecdir}"])
+- ])
+- octexecdir='${prefix}'/"${octexecdir}"
+ AC_MSG_RESULT([${octexecdir}])
+ AC_SUBST([octexecdir])
+
Summary(pl.UTF-8): Obudowanie LAL do biblioteki XML
Name: lal-xml
Version: 1.2.4
-Release: 6
+Release: 7
License: GPL v2+
Group: Libraries
-Source0: http://software.ligo.org/lscsoft/source/lalsuite/lalxml-%{version}.tar.xz
+Source0: http://software.igwn.org/lscsoft/source/lalsuite/lalxml-%{version}.tar.xz
# Source0-md5: 8890f9630f59a5cc9e9c32df29f5da5c
Patch0: %{name}-env.patch
-URL: https://wiki.ligo.org/DASWG/LALSuite
+Patch1: %{name}-octave.patch
+URL: https://wiki.ligo.org/Computing/LALSuite
BuildRequires: autoconf >= 2.63
BuildRequires: automake >= 1:1.11
BuildRequires: gsl-devel >= 1.13
BuildRequires: pkgconfig
BuildRequires: python3-devel
BuildRequires: python3-numpy-devel
-BuildRequires: swig >= 3.0.12
+BuildRequires: swig >= 4.1.0
BuildRequires: swig-python >= 2.0.12
BuildRequires: tar >= 1:1.22
BuildRequires: xz
Requires: %{name} = %{version}-%{release}
Requires: python3-lal >= 6.18.0
Requires: python3-modules >= 1:2.6
+Obsoletes: python-lalxml < 1.2.4-4
%description -n python3-lalxml
Python bindings for LAL XML.
%prep
%setup -q -n lalxml-%{version}
%patch0 -p1
+%patch1 -p1
%build
%{__libtoolize}
%configure \
PYTHON=%{__python3} \
--disable-dependency-tracking \
+ --disable-silent-rules \
--enable-swig
%{__make}