gstlal-inspiral.spec.in 4.39 KB
Newer Older
1
%define gstreamername gstreamer1
Kipp Cannon's avatar
Kipp Cannon committed
2 3 4

Name: @PACKAGE_NAME@
Version: @PACKAGE_VERSION@
Adam Mercer's avatar
Adam Mercer committed
5
Release: 1%{?dist}
Kipp Cannon's avatar
Kipp Cannon committed
6 7 8
Summary: GSTLAL Experimental Supplements
License: GPL
Group: LSC Software/Data Analysis
9 10 11
Requires: gstlal >= @MIN_GSTLAL_VERSION@
Requires: gstlal-ugly >= @MIN_GSTLALUGLY_VERSION@
Requires: glue >= @MIN_GLUE_VERSION@
12
Requires: gobject-introspection >= @MIN_GOBJECT_INTROSPECTION_VERSION@
13 14
Requires: %{gstreamername} >= @MIN_GSTREAMER_VERSION@
Requires: %{gstreamername}-plugins-base >= @MIN_GSTREAMER_VERSION@
15
Requires: %{gstreamername}-plugins-good >= @MIN_GSTREAMER_VERSION@
16
Requires: %{gstreamername}-plugins-bad-free
17
Requires: gsl
18 19 20 21 22
Requires: h5py
Requires: lal >= @MIN_LAL_VERSION@
Requires: lalmetaio >= @MIN_LALMETAIO_VERSION@
Requires: lalinspiral >= @MIN_LALINSPIRAL_VERSION@
Requires: ligo-gracedb >= 1.11
23
Requires: python >= @MIN_PYTHON_VERSION@
24
Requires: python-%{gstreamername}
25 26
Requires: python2-lal >= @MIN_LAL_VERSION@
Requires: python2-lalinspiral >= @MIN_LALINSPIRAL_VERSION@
27 28
Requires: python-ligo-lw >= @MIN_LIGO_LW_VERSION@
Requires: python2-ligo-segments >= @MIN_LIGO_SEGMENTS_VERSION@
29
Requires: python2-ligo-scald
30 31
Requires: numpy >= @MIN_NUMPY_VERSION@
Requires: scipy
32
BuildRequires: doxygen >= @MIN_DOXYGEN_VERSION@
33
BuildRequires: gobject-introspection-devel >= @MIN_GOBJECT_INTROSPECTION_VERSION@
34 35 36 37
BuildRequires: graphviz
BuildRequires: gstlal-devel >= @MIN_GSTLAL_VERSION@
BuildRequires: %{gstreamername}-devel >= @MIN_GSTREAMER_VERSION@
BuildRequires: %{gstreamername}-plugins-base-devel >= @MIN_GSTREAMER_VERSION@
38 39
BuildRequires: gsl-devel
BuildRequires: gtk-doc >= @MIN_GTK_DOC_VERSION@
40 41 42
BuildRequires: lal-devel >= @MIN_LAL_VERSION@
BuildRequires: lalmetaio-devel >= @MIN_LALMETAIO_VERSION@
BuildRequires: lalinspiral-devel >= @MIN_LALINSPIRAL_VERSION@
43 44
BuildRequires: pkgconfig >= 0.18.0
BuildRequires: python-devel >= @MIN_PYTHON_VERSION@
45 46
BuildRequires: python2-lal >= @MIN_LAL_VERSION@
BuildRequires: python2-lalinspiral >= @MIN_LALINSPIRAL_VERSION@
Kipp Cannon's avatar
Kipp Cannon committed
47
Source: @PACKAGE_NAME@-%{version}.tar.gz
48
URL: https://wiki.ligo.org/DASWG/GstLAL
49
Packager: Kipp Cannon <kipp.cannon@ligo.org>
Kipp Cannon's avatar
Kipp Cannon committed
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
This package provides a variety of gstreamer elements for
gravitational-wave data analysis and some libraries to help write such
elements.  The code here sits on top of several other libraries, notably
the LIGO Algorithm Library (LAL), FFTW, the GNU Scientific Library (GSL),
and, of course, GStreamer.

This package contains plugins, libraries, and programs for inspiral data
analysis.


%package devel
Summary: Files and documentation needed for compiling gstlal-inspiral based plugins and programs.
Group: LSC Software/Data Analysis
Kipp Cannon's avatar
Kipp Cannon committed
65
Requires: %{name} = %{version} gstlal-devel >= @MIN_GSTLAL_VERSION@ python-devel >= @MIN_PYTHON_VERSION@ %{gstreamername}-devel >= @MIN_GSTREAMER_VERSION@ %{gstreamername}-plugins-base-devel >= @MIN_GSTREAMER_VERSION@ lal-devel >= @MIN_LAL_VERSION@ lalmetaio-devel >= @MIN_LALMETAIO_VERSION@ lalinspiral-devel >= @MIN_LALINSPIRAL_VERSION@ gsl-devel
Kipp Cannon's avatar
Kipp Cannon committed
66 67 68 69 70 71 72 73 74 75
%description devel
This package contains the files needed for building gstlal-inspiral based
plugins and programs.


%prep
%setup -q -n %{name}-%{version}


%build
76
%configure --enable-gtk-doc --disable-massmodel
Kipp Cannon's avatar
Kipp Cannon committed
77 78 79 80 81 82 83
%{__make}


%install
# FIXME:  why doesn't % makeinstall macro work?
DESTDIR=${RPM_BUILD_ROOT} %{__make} install
# remove .so symlinks from libdir.  these are not included in the .rpm,
84 85 86 87
# they will be installed by ldconfig in the post-install script, except for
# the .so symlink which isn't created by ldconfig and gets shipped in the
# devel package
[ ${RPM_BUILD_ROOT} != "/" ] && find ${RPM_BUILD_ROOT}/%{_libdir} -name "*.so.*" -type l -delete
Kipp Cannon's avatar
Kipp Cannon committed
88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115
# don't distribute *.la files
[ ${RPM_BUILD_ROOT} != "/" ] && find ${RPM_BUILD_ROOT} -name "*.la" -type f -delete


%post
if test -d /usr/lib64 ; then
	ldconfig /usr/lib64
else
	ldconfig
fi


%postun
if test -d /usr/lib64 ; then
	ldconfig /usr/lib64
else
	ldconfig
fi


%clean
[ ${RPM_BUILD_ROOT} != "/" ] && rm -Rf ${RPM_BUILD_ROOT}
rm -Rf ${RPM_BUILD_DIR}/%{name}-%{version}


%files
%defattr(-,root,root)
%{_bindir}/*
116
%{_datadir}/gstlal/*
117
%{_docdir}/gstlal-inspiral-*
Kipp Cannon's avatar
Kipp Cannon committed
118
%{_libdir}/*.so.*
119 120
%{_libdir}/gstreamer-@GSTREAMER_RELEASE@/*.so
#%{_libdir}/gstreamer-@GSTREAMER_RELEASE@/python/*
Kipp Cannon's avatar
Kipp Cannon committed
121 122 123 124 125
%{_prefix}/%{_lib}/python*/site-packages/gstlal

%files devel
%defattr(-,root,root)
%{_libdir}/*.a
126
%{_libdir}/*.so
127
%{_libdir}/gstreamer-@GSTREAMER_RELEASE@/*.a
Kipp Cannon's avatar
Kipp Cannon committed
128 129
%{_libdir}/pkgconfig/*
%{_includedir}/*