Accepting request 817839 from home:badshah400:branches:science
- Disable octave support as compilation error with current swig. OBS-URL: https://build.opensuse.org/request/show/817839 OBS-URL: https://build.opensuse.org/package/show/science/lal?expand=0&rev=4
This commit is contained in:
parent
7646225e40
commit
ba6cec5516
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Jun 30 09:30:36 UTC 2020 - Atri Bhattacharya <badshah400@gmail.com>
|
||||
|
||||
- Disable octave support as compilation error with current swig.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Jun 6 12:09:59 UTC 2020 - Atri Bhattacharya <badshah400@gmail.com>
|
||||
|
||||
|
12
lal.spec
12
lal.spec
@ -17,6 +17,8 @@
|
||||
|
||||
%define shliblal liblal18
|
||||
%define shliblalsupport liblalsupport14
|
||||
# FIXME: Disable octave support as compilation error with current swig
|
||||
%bcond_with octave
|
||||
Name: lal
|
||||
Version: 6.22.0
|
||||
Release: 0
|
||||
@ -36,13 +38,15 @@ BuildRequires: %{python_module xml}
|
||||
BuildRequires: bc
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: hdf5-devel
|
||||
BuildRequires: octave-devel
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: swig >= 4.0
|
||||
BuildRequires: pkgconfig(fftw3)
|
||||
BuildRequires: pkgconfig(gsl)
|
||||
BuildRequires: pkgconfig(zlib)
|
||||
%if %{with octave}
|
||||
BuildRequires: octave-devel
|
||||
%endif
|
||||
Requires: python-lscsoft-glue
|
||||
Requires: python-numpy
|
||||
|
||||
@ -102,7 +106,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
|
||||
}
|
||||
@ -151,10 +157,12 @@ sed -Ei "1{/^#!\/usr\/bin\/env python/d}" %{buildroot}%{$python_sitearch}/lal/an
|
||||
%{_libdir}/liblalsupport.so
|
||||
%{_libdir}/pkgconfig/*.pc
|
||||
|
||||
%if %{with octave}
|
||||
%files -n octave-lal
|
||||
%dir %{_libdir}/octave/*/site
|
||||
%dir %{_libdir}/octave/*/site/oct
|
||||
%dir %{_libdir}/octave/*/site/oct/*
|
||||
%{_libdir}/octave/*/site/oct/*/*.oct
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user