Gitlab will migrate to a new storage backend starting 0300 UTC on 2020-04-04. We do not anticipate a maintenance window for this migration. Performance may be impacted over the weekend. Thanks for your patience.

lalinference.spec.in 9.3 KB
Newer Older
1
%define nightly @NIGHTLY_VERSION@%{nil}
2
%define _prefix /usr
3
%define _sysconfdir %{_prefix}/etc
4
%define release 1
5

6 7 8 9
%if "%{?nightly:%{nightly}}%{!?nightly:0}" == "%{nil}"
%undefine nightly
%endif

10
Name: @PACKAGE@
11 12
Version: @BASE_VERSION@
Release: %{?nightly:0.%{nightly}}%{!?nightly:%{release}}%{?dist}
13
Summary: LSC Algorithm Inference Library
14
License: GPLv2+
15
Group: LAL
16
Source: %{name}-%{version}%{?nightly:-%{nightly}}.tar.xz
17
URL: https://wiki.ligo.org/Computing/LALSuite
18
Packager: Adam Mercer <adam.mercer@ligo.org>
19
BuildRequires: python2-rpm-macros
20
BuildRequires: pkgconfig >= 0.18.0
21
BuildRequires: chealpix-devel >= 3.30.0
22
BuildRequires: gsl-devel
23
BuildRequires: hdf5-devel
24
BuildRequires: healpy >= 1.9.1
25
BuildRequires: python-astropy >= 1.1.1
26
BuildRequires: python-matplotlib >= 1.2.0
27
BuildRequires: h5py
28
BuildRequires: python-shapely
29
BuildRequires: pytest
30
BuildRequires: libmetaio-devel
31
BuildRequires: numpy >= 1.7
32 33
BuildRequires: octave-devel
BuildRequires: python-devel
34
BuildRequires: scipy >= 0.8
35
BuildRequires: swig >= 3.0.7
36 37
BuildRequires: python2-gwdatafind
BuildRequires: python2-gwpy
38
BuildRequires: glue >= @MIN_GLUE_VERSION@
39 40
BuildRequires: lal-devel >= @MIN_LAL_VERSION@
BuildRequires: lal-octave >= @MIN_LAL_VERSION@
41
BuildRequires: python2-lal >= @MIN_LAL_VERSION@
42 43
BuildRequires: lalmetaio-devel >= @MIN_LALMETAIO_VERSION@
BuildRequires: lalmetaio-octave >= @MIN_LALMETAIO_VERSION@
44
BuildRequires: python2-lalmetaio >= @MIN_LALMETAIO_VERSION@
45 46
BuildRequires: lalsimulation-devel >= @MIN_LALSIMULATION_VERSION@
BuildRequires: lalsimulation-octave >= @MIN_LALSIMULATION_VERSION@
47
BuildRequires: python2-lalsimulation >= @MIN_LALSIMULATION_VERSION@
48 49
BuildRequires: lalburst-devel >= @MIN_LALBURST_VERSION@
BuildRequires: lalburst-octave >= @MIN_LALBURST_VERSION@
50
BuildRequires: python2-lalburst >= @MIN_LALBURST_VERSION@
51 52
BuildRequires: lalinspiral-devel >= @MIN_LALINSPIRAL_VERSION@
BuildRequires: lalinspiral-octave >= @MIN_LALINSPIRAL_VERSION@
53
BuildRequires: python2-lalinspiral >= @MIN_LALINSPIRAL_VERSION@
54 55
BuildRequires: lalpulsar-devel >= @MIN_LALPULSAR_VERSION@
BuildRequires: lalpulsar-octave >= @MIN_LALPULSAR_VERSION@
56
BuildRequires: python2-lalpulsar >= @MIN_LALPULSAR_VERSION@
57 58
Requires: chealpix
Requires: gsl >= 1.15
59
Requires: hdf5
60
Requires: libmetaio
61 62 63 64 65 66
Requires: lal >= @MIN_LAL_VERSION@
Requires: lalmetaio >= @MIN_LALMETAIO_VERSION@
Requires: lalsimulation >= @MIN_LALSIMULATION_VERSION@
Requires: lalburst >= @MIN_LALBURST_VERSION@
Requires: lalinspiral >= @MIN_LALINSPIRAL_VERSION@
Requires: lalpulsar >= @MIN_LALPULSAR_VERSION@
67 68 69 70 71 72 73 74 75 76 77
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}
78
Requires: chealpix-devel >= 3.30.0
79 80
Requires: gsl-devel >= 1.15
Requires: libmetaio-devel
81 82 83 84 85 86
Requires: lal-devel >= @MIN_LAL_VERSION@
Requires: lalmetaio-devel >= @MIN_LALMETAIO_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@
87 88 89 90 91
%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.

92 93
%package -n python2-%{name}
Summary: Python %{python2_version} Bindings for LALInference
94 95
Group: LAL
Requires: %{name} = %{version}
96
Requires: healpy >= 1.9.1
97
Requires: h5py
98
Requires: python-shapely
99
Requires: numpy >= 1.7
100
Requires: python
101
Requires: scipy >= 0.8
102
Requires: python-astropy >= 1.1.1
103
Requires: python2-gwdatafind
104
Requires: python-matplotlib >= 1.2.0
Leo Pound Singer's avatar
Leo Pound Singer committed
105
Requires: python-six
106
Requires: glue >= @MIN_GLUE_VERSION@
107
Requires: ligo-gracedb
108
Requires: python2-gwpy
109 110 111 112 113 114
Requires: python2-lal >= @MIN_LAL_VERSION@
Requires: python2-lalmetaio >= @MIN_LALMETAIO_VERSION@
Requires: python2-lalsimulation >= @MIN_LALSIMULATION_VERSION@
Requires: python2-lalburst >= @MIN_LALBURST_VERSION@
Requires: python2-lalinspiral >= @MIN_LALINSPIRAL_VERSION@
Requires: python2-lalpulsar >= @MIN_LALPULSAR_VERSION@
115 116
Obsoletes: %{name}-python
Provides: %{name}-python
117
%description -n python2-%{name}
118
The LSC Algorithm Library for gravitational wave data analysis.
119
This package provides the Python %{python2_version} bindings for LALInference.
120 121 122 123 124

%package octave
Summary: Octave Bindings for LALInference
Group: LAL
Requires: %{name} = %{version}
125
Requires: octave
126 127 128 129 130 131
Requires: lal-octave >= @MIN_LAL_VERSION@
Requires: lalmetaio-octave >= @MIN_LALMETAIO_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@
132 133 134 135
%description octave
The LSC Algorithm Library for gravitational wave data analysis.
This package provides the Octave bindings for LALInference.

136
%prep
137
%setup -q -n %{name}-%{version}%{?nightly:-%{nightly}}
138 139

%build
140
%configure --disable-gcc-flags --enable-swig --enable-openmp
Adam Mercer's avatar
Adam Mercer committed
141
%{__make} %{?_smp_mflags} V=1
142

143
%check
144
%{__make} %{?_smp_mflags} V=1 VERBOSE=1 check
145

146
%install
147
%make_install
148
find $RPM_BUILD_ROOT%{_libdir} -name '*.la' -delete
149 150 151 152 153 154 155 156 157

%post
ldconfig

%postun
ldconfig

%clean
[ ${RPM_BUILD_ROOT} != "/" ] && rm -Rf ${RPM_BUILD_ROOT}
158
rm -Rf ${RPM_BUILD_DIR}/%{name}-%{version}%{?nightly:-%{nightly}}
159 160 161

%files
%defattr(-,root,root)
162
%license COPYING
163 164 165 166 167 168 169
%{_bindir}/lalinference_bench
%{_bindir}/lalinference_burst
%{_bindir}/lalinference_datadump
%{_bindir}/lalinference_injectedlike
%{_bindir}/lalinference_nest
%{_bindir}/lalinference_version
%{_bindir}/lalinference_mpi_wrapper
170
%{_datarootdir}/lalinference/*
171
%{_libdir}/*.so.*
172 173 174 175 176 177
%{_mandir}/man1/lalinference_bench.1*
%{_mandir}/man1/lalinference_burst.1*
%{_mandir}/man1/lalinference_datadump.1*
%{_mandir}/man1/lalinference_injectedlike.1*
%{_mandir}/man1/lalinference_nest.1*
%{_mandir}/man1/lalinference_version.1*
178 179 180 181
%{_sysconfdir}/*

%files devel
%defattr(-,root,root)
182
%license COPYING
183
%{_includedir}/lal
184
%{_libdir}/*.a
185
%{_libdir}/*.so
186
%{_libdir}/pkgconfig/*
187

188
%files -n python2-%{name}
189
%defattr(-,root,root)
190
%license COPYING
191
%{_bindir}/cbcBayes*
192
%{_bindir}/imrtgr_*
193 194 195 196 197 198
%{_bindir}/lalinference_burst_pp_pipe
%{_bindir}/lalinference_coherence_test
%{_bindir}/lalinference_compute_roq_weights
%{_bindir}/lalinference_merge_posteriors
%{_bindir}/lalinference_multi_pipe
%{_bindir}/lalinference_nest2pos
199
%{_bindir}/lalinference_cpnest
200 201 202 203
%{_bindir}/lalinference_pipe
%{_bindir}/lalinference_pp_pipe
%{_bindir}/lalinference_review_test
%{_bindir}/lalinference_tiger_pipe
204
%{_bindir}/rapidpe_*
205 206 207 208 209 210 211 212 213 214 215 216 217 218
%{_mandir}/man1/cbcBayes*.1*
%{_mandir}/man1/imrtgr_*.1*
%{_mandir}/man1/lalinference_burst_pp_pipe.1*
%{_mandir}/man1/lalinference_coherence_test.1*
%{_mandir}/man1/lalinference_compute_roq_weights.1*
%{_mandir}/man1/lalinference_merge_posteriors.1*
%{_mandir}/man1/lalinference_multi_pipe.1*
%{_mandir}/man1/lalinference_nest2pos.1*
%{_mandir}/man1/lalinference_cpnest.1*
%{_mandir}/man1/lalinference_pipe.1*
%{_mandir}/man1/lalinference_pp_pipe.1*
%{_mandir}/man1/lalinference_review_test.1*
%{_mandir}/man1/lalinference_tiger_pipe.1*
%{_mandir}/man1/rapidpe_*.1*
219
%{python2_sitearch}/*
220 221 222

%files octave
%defattr(-,root,root)
223
%license COPYING
224
%{_prefix}/lib*/octave/*/site/oct/*/lalinference.oct*
225 226 227

# dates should be formatted using: 'date +"%a %b %d %Y"'
%changelog
228 229 230
* Fri Jun 21 2019 Adam Mercer <adam.mercer@ligo.org> 1.11.1-1
- O3 point release

231 232 233
* Tue May 21 2019 Adam Mercer <adam.mercer@ligo.org> 1.11.0-1
- O3 point release

234 235 236
* Wed May 01 2019 Adam Mercer <adam.mercer@ligo.org> 1.10.3-1
- O3 point release

237 238 239
* Mon Feb 25 2019 Adam Mercer <adam.mercer@ligo.org> 1.10.2-1
- ER14 release

240 241 242
* Tue Jan 22 2019 Adam Mercer <adam.mercer@ligo.org> 1.10.1-1
- Fix spin2 prior

243 244 245
* Thu Sep 13 2018 Adam Mercer <adam.mercer@ligo.org> 1.10.0-1
- Pre O3 release

246 247 248
* Thu Jul 27 2017 Adam Mercer <adam.mercer@ligo.org> 1.9.4-1
- bayestar_plot_volume: work around broken fonts in SL7

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

252 253 254 255
* 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

256 257 258 259 260 261 262 263 264
* 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

265 266 267
* Tue Feb 07 2017 Adam Mercer <adam.mercer@ligo.org> 1.9.0-1
- O2 release

268 269 270 271
* 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

272 273 274 275
* 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

276 277 278
* Mon Sep 26 2016 Adam Mercer <adam.mercer@ligo.org> 1.8.0-1
- ER10 release

279 280 281
* Thu Jun 23 2016 Adam Mercer <adam.mercer@ligo.org> 1.7.0-1
- ER9 release

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