lalburst.spec.in 4.54 KB
Newer Older
1
%define nightly @NIGHTLY_VERSION@%{nil}
2
%define _prefix /usr
Adam Mercer's avatar
Adam Mercer committed
3 4
%define _mandir %{_prefix}/share/man
%define _sysconfdir %{_prefix}/etc
Adam Mercer's avatar
Adam Mercer committed
5
%define release 1
6

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

Adam Mercer's avatar
Adam Mercer committed
11
Name: @PACKAGE@
Adam Mercer's avatar
Adam Mercer committed
12 13
Version: @BASE_VERSION@
Release: %{?nightly:0.%{nightly}}%{!?nightly:%{release}}%{?dist}
Adam Mercer's avatar
Adam Mercer committed
14
Summary: LSC Algorithm Burst Library
15
License: GPLv2+
Adam Mercer's avatar
Adam Mercer committed
16
Group: LAL
Adam Mercer's avatar
Adam Mercer committed
17
Source: %{name}-%{version}%{?nightly:-%{nightly}}.tar.xz
18
URL: https://wiki.ligo.org/Computing/DASWG/LALSuite
Adam Mercer's avatar
Adam Mercer committed
19
Packager: Adam Mercer <adam.mercer@ligo.org>
20
BuildRequires: python2-rpm-macros
21 22 23
BuildRequires: gsl-devel
BuildRequires: libmetaio-devel
BuildRequires: numpy
24 25
BuildRequires: octave-devel
BuildRequires: python-devel
26
BuildRequires: swig >= 3.0.7
27 28
BuildRequires: lal-devel >= @MIN_LAL_VERSION@
BuildRequires: lal-octave >= @MIN_LAL_VERSION@
29
BuildRequires: python2-lal >= @MIN_LAL_VERSION@
30 31
BuildRequires: lalmetaio-devel >= @MIN_LALMETAIO_VERSION@
BuildRequires: lalmetaio-octave >= @MIN_LALMETAIO_VERSION@
32
BuildRequires: python2-lalmetaio >= @MIN_LALMETAIO_VERSION@
33 34
BuildRequires: lalsimulation-devel >= @MIN_LALSIMULATION_VERSION@
BuildRequires: lalsimulation-octave >= @MIN_LALSIMULATION_VERSION@
35
BuildRequires: python2-lalsimulation >= @MIN_LALSIMULATION_VERSION@
36 37
BuildRequires: scipy
BuildRequires: glue
38 39
Requires: gsl
Requires: libmetaio
40 41 42
Requires: lal >= @MIN_LAL_VERSION@
Requires: lalmetaio >= @MIN_LALMETAIO_VERSION@
Requires: lalsimulation >= @MIN_LALSIMULATION_VERSION@
Adam Mercer's avatar
Adam Mercer committed
43 44 45 46 47 48 49 50 51 52 53
Prefix: %{_prefix}

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

%package devel
Summary: Files and documentation needed for compiling programs that use LAL Burst
Group: LAL
Requires: %{name} = %{version}
54 55
Requires: gsl-devel
Requires: libmetaio-devel
56 57 58
Requires: lal-devel >= @MIN_LAL_VERSION@
Requires: lalmetaio-devel >= @MIN_LALMETAIO_VERSION@
Requires: lalsimulation-devel >= @MIN_LALSIMULATION_VERSION@
Adam Mercer's avatar
Adam Mercer committed
59 60 61 62 63
%description devel
The LSC Algorithm Burst Library for gravitational wave data analysis. This
package contains files needed build applications that use the LAL Burst
library.

64 65
%package -n python2-%{name}
Summary: Python %{python2_version} Bindings for LALBurst
66 67
Group: LAL
Requires: %{name} = %{version}
68
Requires: numpy
69
Requires: python
70 71 72
Requires: python2-lal >= @MIN_LAL_VERSION@
Requires: python2-lalmetaio >= @MIN_LALMETAIO_VERSION@
Requires: python2-lalsimulation >= @MIN_LALSIMULATION_VERSION@
73
Requires: python2-ligo-segments
74 75
Requires: scipy
Requires: glue
76 77
Obsoletes: %{name}-python
Provides: %{name}-python
78
%description -n python2-%{name}
Adam Mercer's avatar
Adam Mercer committed
79
The LSC Algorithm Library for gravitational wave data analysis.
80
This package provides the Python %{python2_version} bindings for LALBurst.
Adam Mercer's avatar
Adam Mercer committed
81 82 83 84 85

%package octave
Summary: Octave Bindings for LALBurst
Group: LAL
Requires: %{name} = %{version}
86
Requires: octave
87 88 89
Requires: lal-octave >= @MIN_LAL_VERSION@
Requires: lalmetaio-octave >= @MIN_LALMETAIO_VERSION@
Requires: lalsimulation-octave >= @MIN_LALSIMULATION_VERSION@
Adam Mercer's avatar
Adam Mercer committed
90 91 92
%description octave
The LSC Algorithm Library for gravitational wave data analysis.
This package provides the Octave bindings for LALBurst.
93

Adam Mercer's avatar
Adam Mercer committed
94
%prep
Adam Mercer's avatar
Adam Mercer committed
95
%setup -q -n %{name}-%{version}%{?nightly:-%{nightly}}
Adam Mercer's avatar
Adam Mercer committed
96 97

%build
Adam Mercer's avatar
Adam Mercer committed
98
%configure --disable-gcc-flags --enable-swig
Adam Mercer's avatar
Adam Mercer committed
99
%{__make} %{?_smp_mflags} V=1
Adam Mercer's avatar
Adam Mercer committed
100

Adam Mercer's avatar
Adam Mercer committed
101
%check
102
%{__make} %{?_smp_mflags} V=1 VERBOSE=1 check
Adam Mercer's avatar
Adam Mercer committed
103

Adam Mercer's avatar
Adam Mercer committed
104
%install
Fan Zhang's avatar
Fan Zhang committed
105
%make_install
Adam Mercer's avatar
Adam Mercer committed
106
find $RPM_BUILD_ROOT%{_libdir} -name '*.la' -delete
Adam Mercer's avatar
Adam Mercer committed
107 108 109 110 111 112 113 114 115

%post
ldconfig

%postun
ldconfig

%clean
[ ${RPM_BUILD_ROOT} != "/" ] && rm -Rf ${RPM_BUILD_ROOT}
Adam Mercer's avatar
Adam Mercer committed
116
rm -Rf ${RPM_BUILD_DIR}/%{name}-%{version}%{?nightly:-%{nightly}}
Adam Mercer's avatar
Adam Mercer committed
117 118 119

%files
%defattr(-,root,root)
120
%license COPYING
121
%{_bindir}/lalburst_version
122
%{_libdir}/*.so.*
Adam Mercer's avatar
Adam Mercer committed
123 124 125 126
%{_sysconfdir}/*

%files devel
%defattr(-,root,root)
127
%license COPYING
128
%{_includedir}/lal
129
%{_libdir}/*.a
130
%{_libdir}/*.so
Adam Mercer's avatar
Adam Mercer committed
131
%{_libdir}/pkgconfig/*
132

133
%files -n python2-%{name}
134
%defattr(-,root,root)
135
%license COPYING
136
%{python2_sitearch}/*
Adam Mercer's avatar
Adam Mercer committed
137 138 139

%files octave
%defattr(-,root,root)
140
%license COPYING
141
%{_prefix}/lib*/octave/*/site/oct/*/lalburst.oct*
142 143 144

# dates should be formatted using: 'date +"%a %b %d %Y"'
%changelog
145 146 147
* Mon Feb 25 2019 Adam Mercer <adam.mercer@ligo.org> 1.5.1-1
- ER14 release

148 149 150
* Thu Sep 13 2018 Adam Mercer <adam.mercer@ligo.org> 1.5.0-1
- Pre O3 release

151 152 153
* Tue Feb 07 2017 Adam Mercer <adam.mercer@ligo.org> 1.4.4-1
- O2 release

154 155 156
* Mon Sep 26 2016 Adam Mercer <adam.mercer@ligo.org> 1.4.3-1
- ER10 release

157 158 159
* Thu Jun 23 2016 Adam Mercer <adam.mercer@ligo.org> 1.4.2-1
- ER9 release

160 161
* Fri Mar 25 2016 Adam Mercer <adam.mercer@ligo.org> 1.4.1-1
- Pre O2 packaging test release