Commit aa4390a2 authored by Adam Mercer's avatar Adam Mercer
Browse files

lalinference: package swig bindings

Original: e787a4f2b9ff17865c1620c4c9c550be075b4938
parent 6f844fc2
......@@ -6,6 +6,8 @@ EXTRA_DIST = \
docs \
lalinference-dev.dirs \
lalinference-dev.install \
lalinference-octave.install \
lalinference-python.install \
lalinference.dirs \
lalinference.install \
rules \
......
......@@ -5,9 +5,16 @@ Maintainer: Adam Mercer <adam.mercer@ligo.org>
Build-Depends: debhelper (>= 7), pkg-config, python-all-dev,
libchealpix-dev,
zlib1g-dev, libgsl0-dev (>= 1.9), libmetaio-dev (>= 8.2),
lal-dev (>= 6.10.0), lalframe-dev (>= 1.0.10),
lalmetaio-dev (>= 1.1.0), lalsimulation-dev (>= 0.7.0),
lalinspiral-dev (>= 1.5.0), lalpulsar-dev (>= 1.7.0)
swig (>= 2.0.7), octave3.2-headers, python-numpy (>= 1.3),
lal-dev (>= 6.10.0), lal-python (>= 6.10.0),
lal-octave (>= 6.10.0), lalframe-dev (>= 1.0.10),
lalframe-python (>= 1.0.10), lalframe-octave (>= 1.0.10),
lalmetaio-dev (>= 1.1.0), lalmetaio-python (>= 1.1.0),
lalmetaio-octave (>= 1.1.0), lalsimulation-dev (>= 0.7.0),
lalsimulation-python (>= 0.7.0), lalsimulation-octave (>= 0.7.0),
lalinspiral-dev (>= 1.5.0), lalinspiral-python (>= 1.5.0),
lalinspiral-octave (>= 1.5.0), (lalpulsar-dev (>= 1.7.0),
lalpulsar-python (>= 1.7.0), lalpulsar-octave (>= 1.7.0)
X-Python-Version: >= 2.6
Standards-Version: 3.8.6
......@@ -36,3 +43,21 @@ Description: LSC Algorithm Library Inference Developers
The LSC Algorithm Inference Library for gravitational wave data analysis.
This package contains files needed build applications that use the LAL
Inference library.
Package: lalinference-python
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, python-numpy,
lalinference (= ${binary:Version}), lal-python (>= 6.10.0),
lalframe-python (>= 1.0.10), lalmetaio-python (>= 1.1.0),
lalsimulation-python (>= 0.7.0), lalinspiral-python (>= 0.7.0),
lalpulsar-python (>= 1.7.0)
Description: Python bindings for LALInference
Package: lalinference-octave
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, octave,
lalinference (= ${binary:Version}), lal-octave (>= 6.10.0),
lalframe-octave (>= 1.0.10), lalmetaio-octave (>= 1.1.0),
lalsimulation-octave (>= 0.7.0), lalinspiral-octave (>= 0.7.0),
lalpulsar-octave (>= 1.7.0)
Description: Octave bindings for LALInference
usr/lib/octave/*/site/oct/*/lalinference.oct*
usr/lib/python*/dist-packages/lalinference/*.py
usr/lib/python*/dist-packages/lalinference/_lalinference.so*
#!/usr/bin/make -f
PYVERS=$(shell pyversions -r)
%:
dh $@
dh $@ --with=python2
override_dh_auto_configure:
override_dh_auto_build:
override_dh_auto_install:
for pyvers in $(PYVERS) ; do \
PYTHON="$$pyvers" \
PKG_CONFIG_PATH="" \
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info \
--disable-gcc-flags
--enable-swig \
--disable-gcc-flags && \
$(MAKE) V=1 && \
$(MAKE) V=1 check && \
$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp && \
$(MAKE) clean ; \
done
dh_install
override_dh_auto_build:
$(MAKE) V=1
override_dh_auto_test:
......@@ -12,7 +12,7 @@ Source: %{name}-%{version}.tar.gz
URL: https://www.lsc-group.phys.uwm.edu/daswg/projects/lalsuite.html
Packager: Adam Mercer <adam.mercer@ligo.org>
BuildRoot: %{_tmppath}/%{name}-%{version}-root
BuildRequires: python
BuildRequires: swig python-devel octave-devel
Requires: chealpix python-healpy gsl libmetaio lal lalmetaio lalsimulation lalinspiral lalpulsar
Prefix: %{_prefix}
......@@ -31,11 +31,29 @@ The LSC Algorithm Inference Library for gravitational wave data analysis. This
package contains files needed build applications that use the LAL Inference
library.
%package python
Summary: Python Bindings for LALInference
Group: LAL
Requires: %{name} = %{version}
Requires: python numpy lal-python lalmetaio-python lalsimulation-python lalinspiral-python lalpulsar-python
%description python
The LSC Algorithm Library for gravitational wave data analysis.
This package provides the Python bindings for LALInference.
%package octave
Summary: Octave Bindings for LALInference
Group: LAL
Requires: %{name} = %{version}
Requires: octave lal-octave lalmetaio-octave lalsimulation-octave lalinspiral-octave lalpulsar-octave
%description octave
The LSC Algorithm Library for gravitational wave data analysis.
This package provides the Octave bindings for LALInference.
%prep
%setup -q
%build
%configure --disable-gcc-flags
%configure --disable-gcc-flags --enable-swig
%{__make} V=1
%install
......@@ -62,3 +80,16 @@ rm -Rf ${RPM_BUILD_DIR}/%{name}-%{version}
%{_libdir}/*.a
%{_libdir}/pkgconfig/*
%{_includedir}/lal
%files python
%defattr(-,root,root)
%{_libdir}/python*/site-packages/lalinference/*.py
%{_libdir}/python*/site-packages/lalinference/*.pyc
%{_libdir}/python*/site-packages/lalinference/_lalinference.so*
%exclude %{_libdir}/python*/site-packages/lalinference/*.pyo
%exclude %{_libdir}/python*/site-packages/lalinference/*.la
%files octave
%defattr(-,root,root)
%{_libexecdir}/octave/*/site/oct/*/lalinference.oct*
%exclude %{_libexecdir}/octave/*/site/oct/*/lalinference.la
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment