lalinference.spec.in 6.12 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-shapely
20
21
BuildRequires: libmetaio-devel
BuildRequires: libxml2-devel
Leo P. Singer's avatar
Leo P. Singer committed
22
BuildRequires: numpy >= 1.7
23
24
BuildRequires: octave-devel
BuildRequires: python-devel
25
BuildRequires: scipy
26
BuildRequires: swig
27
BuildRequires: glue >= @MIN_GLUE_VERSION@
28
29
BuildRequires: lal-devel >= @MIN_LAL_VERSION@
BuildRequires: lal-octave >= @MIN_LAL_VERSION@
30
BuildRequires: lal-python >= @MIN_LAL_VERSION@
31
32
BuildRequires: lalmetaio-devel >= @MIN_LALMETAIO_VERSION@
BuildRequires: lalmetaio-octave >= @MIN_LALMETAIO_VERSION@
33
BuildRequires: lalmetaio-python >= @MIN_LALMETAIO_VERSION@
34
35
BuildRequires: lalxml-devel >= @MIN_LALXML_VERSION@
BuildRequires: lalxml-octave >= @MIN_LALXML_VERSION@
36
BuildRequires: lalxml-python >= @MIN_LALXML_VERSION@
37
38
BuildRequires: lalsimulation-devel >= @MIN_LALSIMULATION_VERSION@
BuildRequires: lalsimulation-octave >= @MIN_LALSIMULATION_VERSION@
39
BuildRequires: lalsimulation-python >= @MIN_LALSIMULATION_VERSION@
40
41
BuildRequires: lalburst-devel >= @MIN_LALBURST_VERSION@
BuildRequires: lalburst-octave >= @MIN_LALBURST_VERSION@
42
BuildRequires: lalburst-python >= @MIN_LALBURST_VERSION@
43
44
BuildRequires: lalinspiral-devel >= @MIN_LALINSPIRAL_VERSION@
BuildRequires: lalinspiral-octave >= @MIN_LALINSPIRAL_VERSION@
45
BuildRequires: lalinspiral-python >= @MIN_LALINSPIRAL_VERSION@
46
47
BuildRequires: lalpulsar-devel >= @MIN_LALPULSAR_VERSION@
BuildRequires: lalpulsar-octave >= @MIN_LALPULSAR_VERSION@
48
BuildRequires: lalpulsar-python >= @MIN_LALPULSAR_VERSION@
49
50
Requires: chealpix
Requires: gsl >= 1.15
51
Requires: hdf5
52
53
Requires: libmetaio
Requires: libxml2
54
55
56
57
58
59
60
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@
61
62
63
64
65
66
67
68
69
70
71
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}
72
Requires: chealpix-devel >= 3.30.0
73
74
75
Requires: gsl-devel >= 1.15
Requires: libmetaio-devel
Requires: libxml2-devel
76
77
78
79
80
81
82
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@
83
84
85
86
87
%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.

88
89
90
91
%package python
Summary: Python Bindings for LALInference
Group: LAL
Requires: %{name} = %{version}
92
Requires: healpy >= 1.9.1
93
Requires: python-shapely
Leo P. Singer's avatar
Leo P. Singer committed
94
Requires: numpy >= 1.7
95
Requires: python
96
Requires: scipy
Leo P. Singer's avatar
Leo P. Singer committed
97
Requires: python-six
98
Requires: python-seaborn
99
Requires: glue >= @MIN_GLUE_VERSION@
100
101
102
103
104
105
106
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@
107
108
109
110
111
112
113
114
%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}
115
Requires: octave
116
117
118
119
120
121
122
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@
123
124
125
126
%description octave
The LSC Algorithm Library for gravitational wave data analysis.
This package provides the Octave bindings for LALInference.

127
128
129
130
%prep
%setup -q

%build
131
%configure --disable-gcc-flags --enable-swig --enable-openmp
132
133
%{__make} V=1

134
135
136
%check
%{__make} V=1 check

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

%post
ldconfig

%postun
ldconfig

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

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

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

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

%files octave
%defattr(-,root,root)
174
%{_prefix}/lib*/octave/*/site/oct/*/lalinference.oct*
175
176
177

# dates should be formatted using: 'date +"%a %b %d %Y"'
%changelog
178
179
180
181
* 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

182
183
184
185
* 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

186
187
188
* Mon Sep 26 2016 Adam Mercer <adam.mercer@ligo.org> 1.8.0-1
- ER10 release

189
190
191
* Thu Jun 23 2016 Adam Mercer <adam.mercer@ligo.org> 1.7.0-1
- ER9 release

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