Maintenance will be performed on git.ligo.org, chat.ligo.org, containers.ligo.org, and docs.ligo.org on the morning of Tuesday 11th August 2020, starting at approximately 9am PDT. It is expected to take around 20 minutes and there will be a short period of downtime (less than five minutes) towards the end of the maintenance window. Please direct any comments, questions, or concerns to computing-help@ligo.org.

lalpulsar.spec.in 3.88 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}
14
Summary: LSC Algorithm Pulsar 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/LALSuite
Adam Mercer's avatar
Adam Mercer committed
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@
Adam Mercer's avatar
Adam Mercer committed
37 38 39
Prefix: %{_prefix}

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

%package devel
45
Summary: Files and documentation needed for compiling programs that use LAL Pulsar
Adam Mercer's avatar
Adam Mercer committed
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@
Adam Mercer's avatar
Adam Mercer committed
53
%description devel
54
The LSC Algorithm Pulsar Library for gravitational wave data analysis.
Adam Mercer's avatar
Adam Mercer committed
55
This package contains files needed build applications that use the LAL
56
Pulsar library.
Adam Mercer's avatar
Adam Mercer committed
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.

Adam Mercer's avatar
Adam Mercer committed
80
%prep
Adam Mercer's avatar
Adam Mercer committed
81
%setup -q -n %{name}-%{version}%{?nightly:-%{nightly}}
Adam Mercer's avatar
Adam Mercer committed
82 83

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

Adam Mercer's avatar
Adam Mercer committed
87
%check
88
%{__make} %{?_smp_mflags} V=1 VERBOSE=1 check
Adam Mercer's avatar
Adam Mercer committed
89

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

%post
ldconfig

%postun
ldconfig

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

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

%files devel
%defattr(-,root,root)
114
%license COPYING
115
%{_includedir}/lal
116
%{_libdir}/*.a
117
%{_libdir}/*.so
Adam Mercer's avatar
Adam Mercer committed
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