Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
science
lalapps
lalapps.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File lalapps.spec of Package lalapps
# # spec file for package lalapps # # Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %define skip_python2 1 # NEP 29: astropy, numpy, scipy do not have a python36 flavor package in TW %define skip_python36 1 Name: lalapps Version: 9.2.2 Release: 0 Summary: LSC Algorithm Library Applications License: GPL-2.0-or-later Group: Productivity/Scientific/Physics URL: https://wiki.ligo.org/Computing/DASWG/LALSuite Source: https://software.igwn.org/sources/source/lalsuite/%{name}-%{version}.tar.xz # PATCH-FIX-UPSTREAM lalapps-fix-uninitialised-var.patch badshah400@gmail.com -- Fix usage of uninitialised variable Patch0: lalapps-fix-uninitialised-var.patch # PATCH-FIX-UPSTREAM lalapps-disable-testWeave-for-non-x86_64.patch badshah400@gmail.com -- Disable Weave related tests on all but x86_64 where tolerance errors show up, see https://git.ligo.org/lscsoft/lalsuite/-/issues/105 Patch2: lalapps-disable-testWeave-for-non-x86_64.patch BuildRequires: %{python_module astropy} BuildRequires: %{python_module devel} BuildRequires: %{python_module glue} BuildRequires: %{python_module lal >= 7.3.0} BuildRequires: %{python_module lalburst >= 2.0.1} BuildRequires: %{python_module lalframe >= 3.0.1} BuildRequires: %{python_module lalinference >= 4.1.3} BuildRequires: %{python_module lalmetaio >= 4.0.1} BuildRequires: %{python_module lalpulsar >= 6.0.1} BuildRequires: %{python_module matplotlib} BuildRequires: %{python_module numpy-devel} BuildRequires: %{python_module numpy} BuildRequires: %{python_module scipy} BuildRequires: cfitsio-devel BuildRequires: fdupes BuildRequires: openmpi-devel BuildRequires: pkgconfig BuildRequires: python-rpm-macros BuildRequires: swig BuildRequires: pkgconfig(fftw3) BuildRequires: pkgconfig(framel) >= 8.39.2 BuildRequires: pkgconfig(gsl) BuildRequires: pkgconfig(lal) >= 7.3.0 BuildRequires: pkgconfig(lalburst) >= 2.0.1 BuildRequires: pkgconfig(lalframe) >= 3.0.1 BuildRequires: pkgconfig(lalinference) >= 4.1.3 BuildRequires: pkgconfig(lalinspiral) >= 4.0.2 BuildRequires: pkgconfig(lalmetaio) >= 4.0.1 BuildRequires: pkgconfig(lalpulsar) >= 6.0.1 BuildRequires: pkgconfig(lalsimulation) >= 5.2.0 # SECTION For tests BuildRequires: %{python_module pytest} BuildRequires: bc BuildRequires: lalpulsar-data Requires: python3-%{name} = %{version} # /SECTION # SECTION Required for Patch2 BuildRequires: libtool # /SECTION # 32-bit no longer supported upstream ExcludeArch: %{ix86} %define python_subpackage_only 1 %python_subpackages %description The LSC Algorithm Library Applications for gravitational wave data analysis. This package contains applications that are built on tools in the LSC Algorithm Library. %package -n python-%{name} Summary: LSC Algorithm Library Applications Group: Productivity/Scientific/Physics Requires: python-h5py Requires: python-lal >= 7.3.0 Requires: python-lalburst >= 2.0.1 Requires: python-lalframe >= 3.0.1 Requires: python-lalinference >= 4.1.3 Requires: python-lalmetaio >= 4.0.1 Requires: python-lalpulsar >= 6.0.1 Requires: python-ligo-lw Requires: python-ligo-segments Requires: python-matplotlib Requires: python-numpy Requires: python-scipy %description -n python-%{name} The LSC Algorithm Library Applications for gravitational wave data analysis. This package contains applications that are built on tools in the LSC Algorithm Library. This package contains the python files %prep %autosetup -p1 %build # Patch2 touches autotool files autoreconf -fvi %{python_expand # Necessary to run %%configure for all active python flavors export PYTHON=%{_bindir}/$python mkdir ../$python cp -pr ./ ../$python pushd ../$python %configure --enable-swig %make_build popd } %install %{python_expand # install for all active python flavors export PYTHON=$python pushd ../$python %make_install popd } # env-based hashbang /usr/bin/env tclsh => /usr/bin/tclsh sed -Ei "1{s/env //}" %{buildroot}%{_bindir}/lalapps_CopySFTs # SECTION EXPORT LAL SPECIFIC ENV VARIABLES # We do not use upstream's env files because they also set more generic # variables (e.g. PATH) which may ruin setups # NUKE UPSTREAM ENV SCRIPTS rm %{buildroot}%{_sysconfdir}/%{name}-user-env.* cat << EOF >> %{name}.sh export LALAPPS_PREFIX=%{_prefix} export LALAPPS_DATADIR=%{_datadir}/%{name} EOF cat << EOF >> %{name}.csh setenv LALAPPS_PREFIX "%{_prefix}" setenv LALAPPS_DATADIR "%{_datadir}/%{name}" EOF cat << EOF >> %{name}.fish set LALAPPS_PREFIX (echo "%{_prefix}" | %{_bindir}/sed -e 's| |:|g;') set LALAPPS_DATADIR (echo "%{_datadir}/%{name}" | %{_bindir}/sed -e 's| |:|g;') EOF install -D -m0644 %{name}.sh %{buildroot}%{_sysconfdir}/profile.d/%{name}.sh install -D -m0644 %{name}.csh %{buildroot}%{_sysconfdir}/profile.d/%{name}.csh install -D -m0644 %{name}.fish %{buildroot}%{_sysconfdir}/profile.d/%{name}.fish # /SECTION # SECTION REMOVE STATIC LIB AND LIBTOOL ARCHIVE find %{buildroot}%{_libdir}/ -name "*.a" -delete -print find %{buildroot} -type f -name "*.la" -delete -print # /SECTION %python_expand %fdupes %{buildroot}%{$python_sitearch}/%{name}/ %fdupes %{buildroot}/%{_datadir}/%{name}/ %check %{python_expand # export PYTHON=$python pushd ../$python %make_build check popd } %files -n %{name} %license COPYING %{_bindir}/* %{_datadir}/lalapps/ %{_mandir}/man1/* %config %{_sysconfdir}/profile.d/%{name}.* %files %{python_files %{name}} %{python_sitearch}/* %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor