lalinference.spec.in 7.15 KB
Newer Older
1
%define _prefix /usr
2 3
%define _mandir %{_prefix}/share/man
%define _sysconfdir %{_prefix}/etc
4

5 6
Name: @PACKAGE@
Version: @VERSION@
7
Release: 1%{?dist}
8
Summary: LSC Algorithm Inference Library
9
License: GPLv2+
10
Group: LAL
11
Source: %{name}-%{version}.tar.xz
12
URL: https://wiki.ligo.org/DASWG/LALSuite
13 14
Packager: Adam Mercer <adam.mercer@ligo.org>
BuildRoot: %{_tmppath}/%{name}-%{version}-root
15
BuildRequires: chealpix-devel >= 3.30.0
16
BuildRequires: gsl-devel
17
BuildRequires: hdf5-devel
18
BuildRequires: healpy >= 1.9.1
19
BuildRequires: python-matplotlib >= 1.2.0
20
BuildRequires: python-shapely
21 22
BuildRequires: libmetaio-devel
BuildRequires: libxml2-devel
23
BuildRequires: numpy >= 1.7
24 25
BuildRequires: octave-devel
BuildRequires: python-devel
26
BuildRequires: scipy >= 0.8
27
BuildRequires: swig >= 3.0.7
28
BuildRequires: glue >= @MIN_GLUE_VERSION@
29 30
BuildRequires: lal-devel >= @MIN_LAL_VERSION@
BuildRequires: lal-octave >= @MIN_LAL_VERSION@
31
BuildRequires: lal-python >= @MIN_LAL_VERSION@
32 33
BuildRequires: lalmetaio-devel >= @MIN_LALMETAIO_VERSION@
BuildRequires: lalmetaio-octave >= @MIN_LALMETAIO_VERSION@
34
BuildRequires: lalmetaio-python >= @MIN_LALMETAIO_VERSION@
35 36
BuildRequires: lalxml-devel >= @MIN_LALXML_VERSION@
BuildRequires: lalxml-octave >= @MIN_LALXML_VERSION@
37
BuildRequires: lalxml-python >= @MIN_LALXML_VERSION@
38 39
BuildRequires: lalsimulation-devel >= @MIN_LALSIMULATION_VERSION@
BuildRequires: lalsimulation-octave >= @MIN_LALSIMULATION_VERSION@
40
BuildRequires: lalsimulation-python >= @MIN_LALSIMULATION_VERSION@
41 42
BuildRequires: lalburst-devel >= @MIN_LALBURST_VERSION@
BuildRequires: lalburst-octave >= @MIN_LALBURST_VERSION@
43
BuildRequires: lalburst-python >= @MIN_LALBURST_VERSION@
44 45
BuildRequires: lalinspiral-devel >= @MIN_LALINSPIRAL_VERSION@
BuildRequires: lalinspiral-octave >= @MIN_LALINSPIRAL_VERSION@
46
BuildRequires: lalinspiral-python >= @MIN_LALINSPIRAL_VERSION@
47 48
BuildRequires: lalpulsar-devel >= @MIN_LALPULSAR_VERSION@
BuildRequires: lalpulsar-octave >= @MIN_LALPULSAR_VERSION@
49
BuildRequires: lalpulsar-python >= @MIN_LALPULSAR_VERSION@
50 51
Requires: chealpix
Requires: gsl >= 1.15
52
Requires: hdf5
53 54
Requires: libmetaio
Requires: libxml2
55 56 57 58 59 60 61
Requires: lal >= @MIN_LAL_VERSION@
Requires: lalmetaio >= @MIN_LALMETAIO_VERSION@
Requires: lalxml >= @MIN_LALXML_VERSION@
Requires: lalsimulation >= @MIN_LALSIMULATION_VERSION@
Requires: lalburst >= @MIN_LALBURST_VERSION@
Requires: lalinspiral >= @MIN_LALINSPIRAL_VERSION@
Requires: lalpulsar >= @MIN_LALPULSAR_VERSION@
62 63 64 65 66 67 68 69 70 71 72
Prefix: %{_prefix}

%description
The LSC Algorithm Inference Library for gravitational wave data analysis. This
package contains the shared-object libraries needed to run applications
that use the LAL Inference library.

%package devel
Summary: Files and documentation needed for compiling programs that use LAL Inference
Group: LAL
Requires: %{name} = %{version}
73
Requires: chealpix-devel >= 3.30.0
74 75 76
Requires: gsl-devel >= 1.15
Requires: libmetaio-devel
Requires: libxml2-devel
77 78 79 80 81 82 83
Requires: lal-devel >= @MIN_LAL_VERSION@
Requires: lalmetaio-devel >= @MIN_LALMETAIO_VERSION@
Requires: lalxml-devel >= @MIN_LALXML_VERSION@
Requires: lalsimulation-devel >= @MIN_LALSIMULATION_VERSION@
Requires: lalburst-devel >= @MIN_LALBURST_VERSION@
Requires: lalinspiral-devel >= @MIN_LALINSPIRAL_VERSION@
Requires: lalpulsar-devel >= @MIN_LALPULSAR_VERSION@
84 85 86 87 88
%description devel
The LSC Algorithm Inference Library for gravitational wave data analysis. This
package contains files needed build applications that use the LAL Inference
library.

89 90 91 92
%package python
Summary: Python Bindings for LALInference
Group: LAL
Requires: %{name} = %{version}
93
Requires: healpy >= 1.9.1
94
Requires: python-shapely
95
Requires: numpy >= 1.7
96
Requires: python
97
Requires: scipy >= 0.8
98
Requires: python-matplotlib >= 1.2.0
Leo Pound Singer's avatar
Leo Pound Singer committed
99
Requires: python-six
100
Requires: python-seaborn
101
Requires: glue >= @MIN_GLUE_VERSION@
102
Requires: ligo-gracedb
103 104 105 106 107 108 109
Requires: lal-python >= @MIN_LAL_VERSION@
Requires: lalmetaio-python >= @MIN_LALMETAIO_VERSION@
Requires: lalxml-python >= @MIN_LALXML_VERSION@
Requires: lalsimulation-python >= @MIN_LALSIMULATION_VERSION@
Requires: lalburst-python >= @MIN_LALBURST_VERSION@
Requires: lalinspiral-python >= @MIN_LALINSPIRAL_VERSION@
Requires: lalpulsar-python >= @MIN_LALPULSAR_VERSION@
110 111 112 113 114 115 116 117
%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}
118
Requires: octave
119 120 121 122 123 124 125
Requires: lal-octave >= @MIN_LAL_VERSION@
Requires: lalmetaio-octave >= @MIN_LALMETAIO_VERSION@
Requires: lalxml-octave >= @MIN_LALXML_VERSION@
Requires: lalsimulation-octave >= @MIN_LALSIMULATION_VERSION@
Requires: lalburst-octave >= @MIN_LALBURST_VERSION@
Requires: lalinspiral-octave >= @MIN_LALINSPIRAL_VERSION@
Requires: lalpulsar-octave >= @MIN_LALPULSAR_VERSION@
126 127 128 129
%description octave
The LSC Algorithm Library for gravitational wave data analysis.
This package provides the Octave bindings for LALInference.

130 131 132 133
%prep
%setup -q

%build
134
%configure --disable-gcc-flags --enable-swig --enable-openmp
135 136
%{__make} V=1

137 138 139
%check
%{__make} V=1 check

140
%install
141
%make_install
Adam Mercer's avatar
Adam Mercer committed
142
find $RPM_BUILD_ROOT%{_libdir} -name '*.la' -delete
143 144 145 146 147 148 149 150 151 152 153 154 155

%post
ldconfig

%postun
ldconfig

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

%files
%defattr(-,root,root)
156 157
%{_bindir}/lalinference_*
%{_datarootdir}/lalinference/*
158
%{_libdir}/*.so.*
159 160 161 162
%{_sysconfdir}/*

%files devel
%defattr(-,root,root)
163
%{_includedir}/lal
164
%{_libdir}/*.a
165
%{_libdir}/*.so
166
%{_libdir}/pkgconfig/*
167 168 169

%files python
%defattr(-,root,root)
170
%{_bindir}/bayestar_*
Adam Mercer's avatar
Adam Mercer committed
171
%{_bindir}/imrtgr_*
172
%{_bindir}/rapidpe_*
Adam Mercer's avatar
Adam Mercer committed
173
%{_libdir}/python*
174 175 176

%files octave
%defattr(-,root,root)
177
%{_prefix}/lib*/octave/*/site/oct/*/lalinference.oct*
178 179 180

# dates should be formatted using: 'date +"%a %b %d %Y"'
%changelog
181 182 183
* Thu Jul 27 2017 Adam Mercer <adam.mercer@ligo.org> 1.9.4-1
- bayestar_plot_volume: work around broken fonts in SL7

184 185 186
* Wed Jul 26 2017 Adam Mercer <adam.mercer@ligo.org> 1.9.3-1
- BAYESTAR and sky map post-processing updates

187 188 189 190
* Thu Mar 16 2017 Adam Mercer <adam.mercer@ligo.org> 1.9.2-1
- lalinference.io.fits: remove some redundant keys on reading
- lalinference.io.fits: fix writing single-column sky maps

191 192 193 194 195 196 197 198 199
* Sat Feb 18 2017 Adam Mercer <adam.mercer@ligo.org> 1.9.1-1
- Do not use $(..._la_LIBADD) to link against external libraries
- Track version info API change
- Fix to weights calculation so that posterior samples are now drawn correctly
- Fix incorrect axes limits for Mollweide sky maps
- Drop code for reading past EOF of named pipe
- Fix incorrect reordering of IDL-compatible sky maps
- Tune default max distance for volume rendering plots

200 201 202
* Tue Feb 07 2017 Adam Mercer <adam.mercer@ligo.org> 1.9.0-1
- O2 release

203 204 205 206
* Thu Dec 15 2016 Adam Mercer <adam.mercer@ligo.org> 1.8.2-1
- Be more emphatic about switching matplotlib backend
- Prevent trying to build python3 packages when unsupported

207 208 209 210
* Fri Dec 09 2016 Adam Mercer <adam.mercer@ligo.org> 1.8.1-1
- Explicitly set no-op Matplotlib backend
- Set matplotlib backend to no-op

211 212 213
* Mon Sep 26 2016 Adam Mercer <adam.mercer@ligo.org> 1.8.0-1
- ER10 release

214 215 216
* Thu Jun 23 2016 Adam Mercer <adam.mercer@ligo.org> 1.7.0-1
- ER9 release

217 218
* Fri Mar 25 2016 Adam Mercer <adam.mercer@ligo.org> 1.6.0-1
- Pre O2 packaging test release