]> git.pld-linux.org Git - packages/lal-xml.git/commitdiff
- added octave patch (fix install dir); release 7 master auto/th/lal-xml-1.2.4-7
authorJakub Bogusz <qboosh@pld-linux.org>
Mon, 23 Jan 2023 17:21:03 +0000 (18:21 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Mon, 23 Jan 2023 17:21:03 +0000 (18:21 +0100)
lal-xml-octave.patch [new file with mode: 0644]
lal-xml.spec

diff --git a/lal-xml-octave.patch b/lal-xml-octave.patch
new file mode 100644 (file)
index 0000000..c94ceb2
--- /dev/null
@@ -0,0 +1,16 @@
+--- 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])
index fa5d04432fa220ae53b6e52ec56ffc3ee2cb1d38..50a0f091de650a4564b8ce81dd1272920179aeb2 100644 (file)
@@ -2,13 +2,14 @@ Summary:      LAL wrapping of the XML library
 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
@@ -20,7 +21,7 @@ BuildRequires:        octave-devel >= 1:3.2.0
 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
@@ -83,6 +84,7 @@ Group:                Libraries/Python
 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.
@@ -93,6 +95,7 @@ Wiązania Pythona do biblioteki LAL XML.
 %prep
 %setup -q -n lalxml-%{version}
 %patch0 -p1
+%patch1 -p1
 
 %build
 %{__libtoolize}
@@ -103,6 +106,7 @@ Wiązania Pythona do biblioteki LAL XML.
 %configure \
        PYTHON=%{__python3} \
        --disable-dependency-tracking \
+       --disable-silent-rules \
        --enable-swig
 %{__make}
 
This page took 0.119762 seconds and 4 git commands to generate.