lalpulsar.spec.in 3.88 KB
Newer Older
1
%define nightly @NIGHTLY_VERSION@%{nil}
2
%define _prefix /usr
3 4
%define _mandir %{_prefix}/share/man
%define _sysconfdir %{_prefix}/etc
5
%define release 1
6

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

11
Name: @PACKAGE@
12 13
Version: @BASE_VERSION@
Release: %{?nightly:0.%{nightly}}%{!?nightly:%{release}}%{?dist}
14
Summary: LSC Algorithm Pulsar Library
15
License: GPLv2+
16
Group: LAL
17
Source: %{name}-%{version}%{?nightly:-%{nightly}}.tar.xz
18
URL: https://wiki.ligo.org/Computing/LALSuite
19
Packager: Adam Mercer <adam.mercer@ligo.org>
20
BuildRequires: python2-rpm-macros
21
BuildRequires: pkgconfig >= 0.18.0
22
BuildRequires: cfitsio-devel
23 24
BuildRequires: fftw-devel
BuildRequires: gsl-devel
25
BuildRequires: numpy
26 27
BuildRequires: octave-devel
BuildRequires: python-devel
28
BuildRequires: python2-astropy
29
BuildRequires: swig >= 3.0.7
30 31
BuildRequires: lal-devel >= @MIN_LAL_VERSION@
BuildRequires: lal-octave >= @MIN_LAL_VERSION@
32
BuildRequires: python2-lal >= @MIN_LAL_VERSION@
33
Requires: cfitsio
34 35
Requires: fftw
Requires: gsl
36
Requires: lal >= @MIN_LAL_VERSION@
37 38 39
Prefix: %{_prefix}

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

%package devel
45
Summary: Files and documentation needed for compiling programs that use LAL Pulsar
46 47
Group: LAL
Requires: %{name} = %{version}
48
Requires: cfitsio-devel
49 50
Requires: fftw-devel
Requires: fftw-static
51
Requires: gsl-devel
52
Requires: lal-devel >= @MIN_LAL_VERSION@
53
%description devel
54
The LSC Algorithm Pulsar Library for gravitational wave data analysis.
55
This package contains files needed build applications that use the LAL
56
Pulsar library.
57

58 59
%package -n python2-%{name}
Summary: Python %{python2_version} bindings for LALPulsar
60 61
Group: LAL
Requires: %{name} = %{version}
62
Requires: numpy
63
Requires: python
64
Requires: python2-lal >= @MIN_LAL_VERSION@
65
Requires: python2-astropy
66 67
Obsoletes: %{name}-python
Provides: %{name}-python
68 69
%description -n python2-%{name}
This package provides the Python %{python2_version} bindings for LALPulsar.
70 71 72 73 74

%package octave
Summary: Octave bindings for LALPulsar
Group: LAL
Requires: %{name} = %{version}
75
Requires: octave
76
Requires: lal-octave >= @MIN_LAL_VERSION@
77 78 79
%description octave
This package provides the Octave bindings for LALPulsar.

80
%prep
81
%setup -q -n %{name}-%{version}%{?nightly:-%{nightly}}
82 83

%build
Karl Wette's avatar
Karl Wette committed
84
%configure --disable-gcc-flags --enable-swig --enable-cfitsio
85
%{__make} %{?_smp_mflags} V=1
86

87
%check
88
%{__make} %{?_smp_mflags} V=1 VERBOSE=1 check
89

90
%install
91
%make_install
92
find $RPM_BUILD_ROOT%{_libdir} -name '*.la' -delete
93 94 95 96 97 98 99 100 101

%post
ldconfig

%postun
ldconfig

%clean
[ ${RPM_BUILD_ROOT} != "/" ] && rm -Rf ${RPM_BUILD_ROOT}
102
rm -Rf ${RPM_BUILD_DIR}/%{name}-%{version}%{?nightly:-%{nightly}}
103 104 105

%files
%defattr(-,root,root)
106
%license COPYING
107
%{_bindir}/lalpulsar_version
108
%{_datarootdir}/lalpulsar/*
109
%{_libdir}/*.so.*
110 111 112 113
%{_sysconfdir}/*

%files devel
%defattr(-,root,root)
114
%license COPYING
115
%{_includedir}/lal
116
%{_libdir}/*.a
117
%{_libdir}/*.so
118
%{_libdir}/pkgconfig/*
119

120
%files -n python2-%{name}
121
%defattr(-,root,root)
122
%license COPYING
123
%{python2_sitearch}/*
124 125 126

%files octave
%defattr(-,root,root)
127
%license COPYING
128
%{_prefix}/lib*/octave/*/site/oct/*/lalpulsar.oct*
129 130 131

# dates should be formatted using: 'date +"%a %b %d %Y"'
%changelog
132 133 134
* Mon Aug 06 2019 Adam Mercer <adam.mercer@ligo.org> 1.18.1-1
- O3 point release

135 136 137
* Thu May 23 2019 Adam Mercer <adam.mercer@ligo.org> 1.18.0-1
* O3 release

138 139 140
* Mon Feb 25 2019 Adam Mercer <adam.mercer@ligo.org> 1.17.1-1
- ER14 release

141 142 143
* Thu Sep 13 2018 Adam Mercer <adam.mercer@ligo.org> 1.17.0-1
- Pre O3 release

144 145 146
* Tue Feb 07 2017 Adam Mercer <adam.mercer@ligo.org> 1.16.0-1
- O2 release

147 148 149
* Mon Sep 26 2016 Adam Mercer <adam.mercer@ligo.org> 1.15.0-1
- ER10 release

150 151 152
* Thu Jun 23 2016 Adam Mercer <adam.mercer@ligo.org> 1.14.0-1
- ER9 release

153 154
* Fri Mar 25 2016 Adam Mercer <adam.mercer@ligo.org> 1.13.0-1
- Pre O2 packaging test release