laldetchar.spec.in 4.26 KB
Newer Older
1 2 3
%define _prefix /usr
%define _mandir %{_prefix}/share/man
%define _sysconfdir %{_prefix}/etc
Adam Mercer's avatar
Adam Mercer committed
4

5 6
Name: @PACKAGE@
Version: @VERSION@
7
Release: 1%{?dist}
8
Summary: LSC Algorithm DetChar Library
9
License: GPLv2+
10
Group: LAL
11
Source: %{name}-%{version}.tar.xz
12
URL: http://wiki.ligo.org/DASWG/LALSuite
13 14
Packager: Adam Mercer <adam.mercer@ligo.org>
BuildRoot: %{_tmppath}/%{name}-%{version}-root
15
BuildRequires: glib2-devel
16
BuildRequires: gsl-devel
17 18
BuildRequires: libmetaio-devel
BuildRequires: numpy
19 20
BuildRequires: octave-devel
BuildRequires: python-devel
21
BuildRequires: swig >= 3.0.7
22 23
BuildRequires: lal-devel >= @MIN_LAL_VERSION@
BuildRequires: lal-octave >= @MIN_LAL_VERSION@
24
BuildRequires: lal-python >= @MIN_LAL_VERSION@
25 26
BuildRequires: lalmetaio-devel >= @MIN_LALMETAIO_VERSION@
BuildRequires: lalmetaio-octave >= @MIN_LALMETAIO_VERSION@
27
BuildRequires: lalmetaio-python >= @MIN_LALMETAIO_VERSION@
28 29
BuildRequires: lalsimulation-devel >= @MIN_LALSIMULATION_VERSION@
BuildRequires: lalsimulation-octave >= @MIN_LALSIMULATION_VERSION@
30
BuildRequires: lalsimulation-python >= @MIN_LALSIMULATION_VERSION@
31 32
BuildRequires: lalburst-devel >= @MIN_LALBURST_VERSION@
BuildRequires: lalburst-octave >= @MIN_LALBURST_VERSION@
33
BuildRequires: lalburst-python >= @MIN_LALBURST_VERSION@
34
Requires: glib2
35 36 37
Requires: gsl
Requires: libframe
Requires: libmetaio
38 39 40 41
Requires: lal >= @MIN_LAL_VERSION@
Requires: lalmetaio >= @MIN_LALMETAIO_VERSION@
Requires: lalsimulation >= @MIN_LALSIMULATION_VERSION@
Requires: lalburst >= @MIN_LALBURST_VERSION@
42 43 44 45 46 47 48 49 50 51 52
Prefix: %{_prefix}

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

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

Adam Mercer's avatar
Adam Mercer committed
65 66 67 68
%package python
Summary: Python Bindings for LALDetChar
Group: LAL
Requires: %{name} = %{version}
69
Requires: numpy
70
Requires: python
71 72 73 74
Requires: lal-python >= @MIN_LAL_VERSION@
Requires: lalmetaio-python >= @MIN_LALMETAIO_VERSION@
Requires: lalsimulation-python >= @MIN_LALSIMULATION_VERSION@
Requires: lalburst-python >= @MIN_LALBURST_VERSION@
Adam Mercer's avatar
Adam Mercer committed
75 76 77 78 79 80 81 82
%description python
The LSC Algorithm Library for gravitational wave data analysis.
This package provides the Python bindings for LALDetChar.

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

92 93 94 95
%prep
%setup -q

%build
Adam Mercer's avatar
Adam Mercer committed
96
%configure --disable-gcc-flags --enable-swig
97 98
%{__make} V=1

99 100 101
%check
%{__make} V=1 check

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

%post
ldconfig

%postun
ldconfig

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

%files
%defattr(-,root,root)
118
%{_bindir}/laldetchar_version
119
%{_libdir}/*.so.*
120 121 122 123
%{_sysconfdir}/*

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

%files python
%defattr(-,root,root)
131
%{_bindir}/laldetchar-*
Adam Mercer's avatar
Adam Mercer committed
132
%{_libdir}/python*
Adam Mercer's avatar
Adam Mercer committed
133 134 135

%files octave
%defattr(-,root,root)
136
%{_prefix}/lib*/octave/*/site/oct/*/laldetchar.oct*
137 138 139

# dates should be formatted using: 'date +"%a %b %d %Y"'
%changelog
140 141 142
* Tue Feb 07 2017 Adam Mercer <adam.mercer@ligo.org> 0.3.5-1
- O2 release

143 144 145
* Mon Sep 26 2016 Adam Mercer <adam.mercer@ligo.org> 0.3.4-1
- ER10 release

146 147 148
* Thu Jun 23 2016 Adam Mercer <adam.mercer@ligo.org> 0.3.3-1
- ER9 release

149 150
* Fri Mar 25 2016 Adam Mercer <adam.mercer@ligo.org> 0.3.2-1
- Pre O2 packaging test release