SHA256
1
0
forked from pool/lalframe

Accepting request 818841 from home:badshah400:branches:science

- Disable octave support as compilation error with current swig.

OBS-URL: https://build.opensuse.org/request/show/818841
OBS-URL: https://build.opensuse.org/package/show/science/lalframe?expand=0&rev=2
This commit is contained in:
Atri Bhattacharya 2020-07-06 00:28:46 +00:00 committed by Git OBS Bridge
parent 67f29fa640
commit f4e0f9c75b
2 changed files with 17 additions and 4 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jul 1 23:25:51 UTC 2020 - Atri Bhattacharya <badshah400@gmail.com>
- Disable octave support as compilation error with current swig.
-------------------------------------------------------------------
Mon May 11 15:17:37 UTC 2020 - Atri Bhattacharya <badshah400@gmail.com>

View File

@ -17,6 +17,8 @@
%define shlib lib%{name}11
# FIXME: Disable octave support as compilation error with current swig
%bcond_with octave
Name: lalframe
Version: 1.5.0
Release: 0
@ -38,12 +40,14 @@ BuildRequires: fdupes
BuildRequires: ldas-tools-framecpp-devel
BuildRequires: libframe-devel
BuildRequires: libtool
BuildRequires: octave-devel
BuildRequires: octave-lal >= 6.21.0
BuildRequires: pkgconfig
BuildRequires: python-rpm-macros
BuildRequires: swig
BuildRequires: pkgconfig
BuildRequires: pkgconfig(lal) >= 6.21.0
%if %{with octave}
BuildRequires: octave-lal >= 6.21.0
BuildRequires: pkgconfig(octave)
%endif
Requires: python-lal
Requires: python-numpy
%python_subpackages
@ -91,7 +95,9 @@ export PYTHON=$python
mkdir ../${PYTHON}_build
cp -pr ./ ../${PYTHON}_build
pushd ../${PYTHON}_build
%configure --enable-swig
%configure \
%{?with_octave:--enable-swig-octave} \
%{!?with_octave:--disable-swig-octave}
make %{?_smp_mflags}
popd
}
@ -155,11 +161,13 @@ find %{buildroot} -type f -name "*.la" -delete -print
%{_mandir}/man1/*.1%{?ext_man}
%config %{_sysconfdir}/profile.d/%{name}.*
%if %{with octave}
%files -n octave-%{name}
%dir %{_libdir}/octave/*/site
%dir %{_libdir}/octave/*/site/oct
%dir %{_libdir}/octave/*/site/oct/*
%{_libdir}/octave/*/site/oct/*/*.oct
%endif
%files %{python_files}
%{python_sitearch}/*