[packages/lal-pulsar] - new
qboosh
qboosh at pld-linux.org
Sun Feb 12 08:34:30 CET 2023
commit ab952be9b6275600d5c4162348f86fd5fc816a74
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Feb 12 08:35:48 2023 +0100
- new
lal-pulsar.spec | 281 +++++++++++++++++++++++++++++++++++++++++++++++++
lalpulsar-env.patch | 14 +++
lalpulsar-format.patch | 11 ++
lalpulsar-sse2.patch | 15 +++
4 files changed, 321 insertions(+)
---
diff --git a/lal-pulsar.spec b/lal-pulsar.spec
new file mode 100644
index 0000000..ad3b131
--- /dev/null
+++ b/lal-pulsar.spec
@@ -0,0 +1,281 @@
+# TODO:
+# - CUDA on bcond
+# - PSS (--enable-pss, BR: pss.pc, libpss+libpsssfb+libpssastro+libpssnovas)
+# - SIStr (--enable-sistr, BR: gds/dtt/SIStr.h, libSIStr)
+Summary: LAL routines for pulsar and continuous wave gravitational wave data analysis
+Summary(pl.UTF-8): Procedury LAL do analizy danych fal grawitacyjnych pulsarów i fal ciągłych
+Name: lal-pulsar
+Version: 5.2.0
+Release: 1
+License: GPL v2+
+Group: Libraries
+Source0: http://software.igwn.org/lscsoft/source/lalsuite/lalpulsar-%{version}.tar.xz
+# Source0-md5: 1a26a6d467b837b4c70f8fc5969d9c02
+Patch0: lalpulsar-env.patch
+Patch1: lalpulsar-format.patch
+Patch2: lalpulsar-sse2.patch
+URL: https://wiki.ligo.org/Computing/LALSuite
+BuildRequires: autoconf >= 2.63
+BuildRequires: automake >= 1:1.11
+BuildRequires: cfitsio-devel
+BuildRequires: fftw3-devel >= 3
+BuildRequires: fftw3-single-devel >= 3
+BuildRequires: gsl-devel >= 1.13
+BuildRequires: help2man >= 1.37
+BuildRequires: lal-devel >= 7.2.2
+BuildRequires: lal-frame-devel >= 2.0.0
+BuildRequires: lal-inference-devel >= 4.1.0
+BuildRequires: lal-simulation-devel >= 3.1.0
+BuildRequires: libgomp-devel
+BuildRequires: libstdc++-devel
+BuildRequires: libtool >= 2:2
+BuildRequires: octave-devel >= 1:3.2.0
+BuildRequires: pkgconfig
+BuildRequires: python3-devel >= 1:3.5
+BuildRequires: python3-numpy-devel >= 1:1.7
+BuildRequires: swig >= 4.1.0
+BuildRequires: swig-python >= 3.0.11
+BuildRequires: tar >= 1:1.22
+BuildRequires: xz
+BuildRequires: zlib-devel
+Requires: gsl >= 1.13
+Requires: lal >= 7.2.2
+Requires: lal-frame >= 2.0.0
+Requires: lal-inference >= 4.1.0
+Requires: lal-simulation >= 3.1.0
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+LAL routines for pulsar and continuous wave gravitational wave data
+analysis.
+
+%description -l pl.UTF-8
+Procedury LAL do analizy danych fal grawitacyjnych pulsarów i fal
+ciągłych.
+
+%package devel
+Summary: Header files for lal-pulsar library
+Summary(pl.UTF-8): Pliki nagłówkowe biblioteki lal-pulsar
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+Requires: gsl-devel >= 1.13
+Requires: lal-devel >= 7.2.2
+Requires: lal-frame-devel >= 2.0.0
+Requires: lal-inference-devel >= 4.1.0
+Requires: lal-simulation-devel >= 3.1.0
+
+%description devel
+Header files for lal-pulsar library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki lal-pulsar.
+
+%package static
+Summary: Static lal-pulsar library
+Summary(pl.UTF-8): Statyczna biblioteka lal-pulsar
+Group: Development/Libraries
+Requires: %{name}-devel = %{version}-%{release}
+
+%description static
+Static lal-pulsar library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka lal-pulsar.
+
+%package -n octave-lalpulsar
+Summary: Octave interface for LAL Pulsar
+Summary(pl.UTF-8): Interfejs Octave do biblioteki LAL Pulsar
+Group: Applications/Math
+Requires: %{name} = %{version}-%{release}
+Requires: octave-lal >= 7.2.2
+
+%description -n octave-lalpulsar
+Octave interface for LAL Pulsar.
+
+%description -n octave-lalpulsar -l pl.UTF-8
+Interfejs Octave do biblioteki LAL Pulsar.
+
+%package -n python3-lalpulsar
+Summary: Python bindings for LAL Pulsar
+Summary(pl.UTF-8): Wiązania Pythona do biblioteki LAL Pulsar
+Group: Libraries/Python
+Requires: %{name} = %{version}-%{release}
+Requires: python3-lal >= 7.2.4
+Requires: python3-lalframe >= 2.0.0
+Requires: python3-lalinference >= 4.1.0
+Requires: python3-lalsimulation >= 3.1.0
+Requires: python3-modules >= 1:3.5
+Requires: python3-numpy >= 1:1.7
+Requires: python3-scipy
+Requires: python3-six
+# TODO: astropy h5py
+
+%description -n python3-lalpulsar
+Python bindings for LAL Pulsar.
+
+%description -n python3-lalpulsar -l pl.UTF-8
+Wiązania Pythona do biblioteki LAL Pulsar.
+
+%prep
+%setup -q -n lalpulsar-%{version}
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
+
+%{__sed} -i -e '1s,/usr/bin/env tclsh,/usr/bin/tclsh,' bin/MakeData/lalpulsar_CopySFTs
+
+%build
+%{__libtoolize}
+%{__aclocal} -I gnuscripts
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure \
+ --disable-silent-rules \
+ --enable-swig
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+# obsoleted by pkg-config
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/liblalpulsar.la
+
+install -d $RPM_BUILD_ROOT/etc/shrc.d
+%{__mv} $RPM_BUILD_ROOT%{_sysconfdir}/*sh $RPM_BUILD_ROOT/etc/shrc.d
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS README.md
+%attr(755,root,root) %{_bindir}/lalpulsar_Compute*
+%attr(755,root,root) %{_bindir}/lalpulsar_CopySFTs
+%attr(755,root,root) %{_bindir}/lalpulsar_DriveHoughMulti
+%attr(755,root,root) %{_bindir}/lalpulsar_FstatMetric_v2
+%attr(755,root,root) %{_bindir}/lalpulsar_HierarchSearchGCT
+%attr(755,root,root) %{_bindir}/lalpulsar_HierarchicalSearch
+%attr(755,root,root) %{_bindir}/lalpulsar_MakeSFTs
+%attr(755,root,root) %{_bindir}/lalpulsar_Makefakedata_v4
+%attr(755,root,root) %{_bindir}/lalpulsar_Makefakedata_v5
+%attr(755,root,root) %{_bindir}/lalpulsar_PredictFstat
+%attr(755,root,root) %{_bindir}/lalpulsar_PrintDetectorState
+%attr(755,root,root) %{_bindir}/lalpulsar_SFTclean
+%attr(755,root,root) %{_bindir}/lalpulsar_SFTvalidate
+%attr(755,root,root) %{_bindir}/lalpulsar_Weave*
+%attr(755,root,root) %{_bindir}/lalpulsar_WriteSFTsfromSFDBs
+%attr(755,root,root) %{_bindir}/lalpulsar_compareFstats
+%attr(755,root,root) %{_bindir}/lalpulsar_compareSFTs
+%attr(755,root,root) %{_bindir}/lalpulsar_create_solar_system_ephemeris
+%attr(755,root,root) %{_bindir}/lalpulsar_create_time_correction_ephemeris
+%attr(755,root,root) %{_bindir}/lalpulsar_crosscorr_v2
+%attr(755,root,root) %{_bindir}/lalpulsar_dumpSFT
+%attr(755,root,root) %{_bindir}/lalpulsar_fits_*
+%attr(755,root,root) %{_bindir}/lalpulsar_frequency_evolution
+%attr(755,root,root) %{_bindir}/lalpulsar_heterodyne
+%attr(755,root,root) %{_bindir}/lalpulsar_parameter_estimation_nested
+%attr(755,root,root) %{_bindir}/lalpulsar_spec_*
+%attr(755,root,root) %{_bindir}/lalpulsar_splitSFTs
+%attr(755,root,root) %{_bindir}/lalpulsar_ssbtodetector
+%attr(755,root,root) %{_bindir}/lalpulsar_synthesize*
+%attr(755,root,root) %{_bindir}/lalpulsar_version
+%attr(755,root,root) %{_libdir}/liblalpulsar.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/liblalpulsar.so.26
+%{_datadir}/lalpulsar
+/etc/shrc.d/lalpulsar-user-env.csh
+/etc/shrc.d/lalpulsar-user-env.fish
+/etc/shrc.d/lalpulsar-user-env.sh
+%{_mandir}/man1/lalpulsar_version.1*
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/liblalpulsar.so
+%{_includedir}/lal/BinaryPulsarTiming.h
+%{_includedir}/lal/CWMakeFakeData.h
+%{_includedir}/lal/ComputeFstat.h
+%{_includedir}/lal/ComputeSky.h
+%{_includedir}/lal/DetectorStates.h
+%{_includedir}/lal/DopplerFullScan.h
+%{_includedir}/lal/DopplerScan.h
+%{_includedir}/lal/ExtrapolatePulsarSpins.h
+%{_includedir}/lal/FITSFileIO.h
+%{_includedir}/lal/FITSPulsarIO.h
+%{_includedir}/lal/FstatisticTools.h
+%{_includedir}/lal/GSLHelpers.h
+%{_includedir}/lal/GeneratePulsarSignal.h
+%{_includedir}/lal/GenerateSpinOrbitCW.h
+%{_includedir}/lal/GenerateTaylorCW.h
+%{_includedir}/lal/GetEarthTimes.h
+%{_includedir}/lal/HeapToplist.h
+%{_includedir}/lal/HeterodynedPulsarModel.h
+%{_includedir}/lal/HoughMap.h
+%{_includedir}/lal/LALBarycenter.h
+%{_includedir}/lal/LALComputeAM.h
+%{_includedir}/lal/LALHough.h
+%{_includedir}/lal/LALInitBarycenter.h
+%{_includedir}/lal/LALPulsarConfig.h
+%{_includedir}/lal/LALPulsarVCSInfo.h
+%{_includedir}/lal/LALPulsarVCSInfoHeader.h
+%{_includedir}/lal/LFTandTSutils.h
+%{_includedir}/lal/LISAspecifics.h
+%{_includedir}/lal/LUT.h
+%{_includedir}/lal/LatticeTiling.h
+%{_includedir}/lal/LineRobustStats.h
+%{_includedir}/lal/MetricUtils.h
+%{_includedir}/lal/NormalizeSFTRngMed.h
+%{_includedir}/lal/PHMD.h
+%{_includedir}/lal/PSDutils.h
+%{_includedir}/lal/ProbabilityDensity.h
+%{_includedir}/lal/PtoleMetric.h
+%{_includedir}/lal/PulsarCrossCorr.h
+%{_includedir}/lal/PulsarCrossCorr_v2.h
+%{_includedir}/lal/PulsarDataTypes.h
+%{_includedir}/lal/PulsarSimulateCoherentGW.h
+%{_includedir}/lal/ReadPulsarParFile.h
+%{_includedir}/lal/SFTClean.h
+%{_includedir}/lal/SFTReferenceLibrary.h
+%{_includedir}/lal/SFTfileIO.h
+%{_includedir}/lal/SFTutils.h
+%{_includedir}/lal/SSBtimes.h
+%{_includedir}/lal/SWIGLALPulsarTest.h
+%{_includedir}/lal/SimulatePulsarSignal.h
+%{_includedir}/lal/SinCosLUT.h
+%{_includedir}/lal/Statistics.h
+%{_includedir}/lal/SuperskyMetrics.h
+%{_includedir}/lal/SynthesizeCWDraws.h
+%{_includedir}/lal/TascPorbTiling.h
+%{_includedir}/lal/TransientCW_utils.h
+%{_includedir}/lal/TwoDMesh.h
+%{_includedir}/lal/UniversalDopplerMetric.h
+%{_includedir}/lal/Velocity.h
+%{_includedir}/lal/SWIGLALPulsarAlpha.i
+%{_includedir}/lal/SWIGLALPulsarOmega.i
+%{_includedir}/lal/swiglalpulsar.i
+%{_pkgconfigdir}/lalpulsar.pc
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/liblalpulsar.a
+
+%files -n octave-lalpulsar
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/octave/*/site/oct/*/lalpulsar.oct
+
+%files -n python3-lalpulsar
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/lalpulsar_MakeSFTDAG
+%attr(755,root,root) %{_bindir}/lalpulsar_combine_crosscorr_toplists
+%attr(755,root,root) %{_bindir}/lalpulsar_create_solar_system_ephemeris_python
+%attr(755,root,root) %{_bindir}/lalpulsar_knope*
+%attr(755,root,root) %{_bindir}/lalpulsar_run_crosscorr_v2
+%dir %{py3_sitedir}/lalpulsar
+%attr(755,root,root) %{py3_sitedir}/lalpulsar/_lalpulsar.so
+%{py3_sitedir}/lalpulsar/*.py
+%{py3_sitedir}/lalpulsar/__pycache__
diff --git a/lalpulsar-env.patch b/lalpulsar-env.patch
new file mode 100644
index 0000000..f04459d
--- /dev/null
+++ b/lalpulsar-env.patch
@@ -0,0 +1,14 @@
+--- lalpulsar-5.2.0/Makefile.am.orig 2022-11-03 23:47:47.060846839 +0100
++++ lalpulsar-5.2.0/Makefile.am 2023-02-11 17:33:50.397001264 +0100
+@@ -25,11 +25,6 @@ SUBDIRS = \
+ user_environment = \
+ set $(PACKAGE)_PREFIX $(prefix); \
+ set $(PACKAGE)_DATADIR $(pkgdatadir); \
+- prepend MANPATH $(mandir); \
+- prepend OCTAVE_PATH $(octexecdir); \
+- prepend PATH $(bindir); \
+- prepend PKG_CONFIG_PATH $(libdir)/pkgconfig; \
+- prepend PYTHONPATH $(pyexecdir) $(pythondir); \
+ $(END_OF_LIST)
+
+ pkgconfigdir = $(libdir)/pkgconfig
diff --git a/lalpulsar-format.patch b/lalpulsar-format.patch
new file mode 100644
index 0000000..aaab135
--- /dev/null
+++ b/lalpulsar-format.patch
@@ -0,0 +1,11 @@
+--- lalpulsar-5.2.0/lib/PSDutils.c.orig 2022-11-03 16:17:39.156369773 +0100
++++ lalpulsar-5.2.0/lib/PSDutils.c 2023-02-11 17:30:41.491357987 +0100
+@@ -547,7 +547,7 @@ REAL8 XLALMathOpOverArray ( const REAL8*
+ ; /* empty statement because declaration cannot be first line in a switch case */
+ size_t * sortidx;
+ if ( ( sortidx = XLALMalloc ( length * sizeof(size_t) )) == NULL ) {
+- XLALPrintError ("XLALMalloc(%ld) failed.\n", length );
++ XLALPrintError ("XLALMalloc(%zd) failed.\n", length );
+ XLAL_ERROR ( XLAL_ENOMEM);
+ }
+ gsl_sort_index(sortidx, data, 1, length);
diff --git a/lalpulsar-sse2.patch b/lalpulsar-sse2.patch
new file mode 100644
index 0000000..44f94bb
--- /dev/null
+++ b/lalpulsar-sse2.patch
@@ -0,0 +1,15 @@
+--- lalpulsar-5.2.0/bin/GCT/Makefile.am.orig 2022-07-29 18:19:59.258738637 +0200
++++ lalpulsar-5.2.0/bin/GCT/Makefile.am 2023-02-11 17:56:13.303059452 +0100
+@@ -36,10 +36,10 @@ lalpulsar_HierarchSearchGCT_SOURCES += \
+ $(END_OF_LIST)
+
+ lalpulsar_HierarchSearchGCT_CPPFLAGS += -DHS_OPTIMIZATION -DHIERARCHSEARCHGCT -DGC_SSE2_OPT
+-lalpulsar_HierarchSearchGCT_CFLAGS += $(SSE2_FLAGS)
++lalpulsar_HierarchSearchGCT_CFLAGS += $(SSE2_CFLAGS)
+
+ lalpulsar_HierarchSearchGCT_no_num_count_CPPFLAGS += -DHS_OPTIMIZATION -DHIERARCHSEARCHGCT -DGC_SSE2_OPT
+-lalpulsar_HierarchSearchGCT_no_num_count_CFLAGS += $(SSE2_FLAGS)
++lalpulsar_HierarchSearchGCT_no_num_count_CFLAGS += $(SSE2_CFLAGS)
+
+ endif
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/lal-pulsar.git/commitdiff/ab952be9b6275600d5c4162348f86fd5fc816a74
More information about the pld-cvs-commit
mailing list