From 96ac13eb01de4bc8617ca806684c7b35ab76ef70e01e9fb1c17e7e6516a2d855 Mon Sep 17 00:00:00 2001 From: Atri Bhattacharya Date: Sun, 3 May 2020 12:10:05 +0000 Subject: [PATCH] Accepting request 796601 from home:badshah400:GW New package: Core library to analyze gravitational-wave data First in a series of package submissions for gravitational wave analysis. OBS-URL: https://build.opensuse.org/request/show/796601 OBS-URL: https://build.opensuse.org/package/show/science/python-PyCBC?expand=0&rev=1 --- .gitattributes | 24 ++++++++++++++ .gitignore | 4 +++ PyCBC-1.15.6.tar.gz | 3 ++ python-PyCBC.changes | 55 ++++++++++++++++++++++++++++++++ python-PyCBC.spec | 75 ++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 161 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 PyCBC-1.15.6.tar.gz create mode 100644 python-PyCBC.changes create mode 100644 python-PyCBC.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..37a8eaa --- /dev/null +++ b/.gitattributes @@ -0,0 +1,24 @@ +*.changes merge=merge-changes +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tar filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8b731c3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.obscpio +*.osc +_build.* +.pbuild diff --git a/PyCBC-1.15.6.tar.gz b/PyCBC-1.15.6.tar.gz new file mode 100644 index 0000000..baf408f --- /dev/null +++ b/PyCBC-1.15.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6cc1e3c419b893fd54faeefbbca1398a547d527ae0a933e2ba61457018cad639 +size 3150499 diff --git a/python-PyCBC.changes b/python-PyCBC.changes new file mode 100644 index 0000000..044f705 --- /dev/null +++ b/python-PyCBC.changes @@ -0,0 +1,55 @@ +------------------------------------------------------------------- +Thu Apr 23 15:50:06 UTC 2020 - Atri Bhattacharya + +- Update to version 1.15.6: + * More functionality for the multi-detector workflow + * A patch to the PSD variation is added to avoid time around + autogated periods is not strongly upranked. + * Steady improvements to the inference toolkit. + +------------------------------------------------------------------- +Mon Feb 3 16:48:32 UTC 2020 - Atri Bhattacharya + +- Update min required version of numpy to 1.16.0 for + BuildRequires. + +------------------------------------------------------------------- +Mon Feb 3 16:41:10 UTC 2020 - Atri Bhattacharya + +- Update to version 1.15.4 + * Workflow code can now run on python3 + * Inference data reading interface is now standardized + * XML segment files can be provided as input in workflow + generation + * Some patches have been applied for PyCBC Live. +- Fix env based hashbangs for exec in bindir; remove the hashbangs + for non-bindir files. +- Drop python-PyCBC-work-with-latest-numpy.patch: no longer needed + as python-numpy >= 1.16.0 is now supported by default. +- Package binaries only for python3 version. + +------------------------------------------------------------------- +Mon Jul 22 11:01:38 UTC 2019 - Atri Bhattacharya + +- Update to version 1.14.1: + * Bug fixed: issues with the dqsegdb integration in the new + dq.py module. +- Changes from version 1.14.0: + * Beta support for python3 (not enabled on openSUSE builds) + * Development towards a multi-ifo offline search code + * Numerous improvements in other code modules +- Add python-PyCBC-work-with-latest-numpy.patch to avoid checking + for max supported numpy version for python2 to get it building + on openSUSE >= 1550 where the current python2-numpy version is + 1.16.x. +- Drop no longer needed sed commands. + +------------------------------------------------------------------- +Thu Feb 7 15:10:46 UTC 2019 - badshah400@gmail.com + +- Add python-numpy Requires. + +------------------------------------------------------------------- +Thu Jan 31 13:37:31 UTC 2019 - badshah400@gmail.com + +- Initial package. diff --git a/python-PyCBC.spec b/python-PyCBC.spec new file mode 100644 index 0000000..cfef978 --- /dev/null +++ b/python-PyCBC.spec @@ -0,0 +1,75 @@ +# +# spec file for package python-PyCBC +# +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# +# 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 http://bugs.opensuse.org/ + +Name: python-PyCBC +Version: 1.15.6 +Release: 0 +License: GPL-3.0-or-later +Summary: Core library to analyze gravitational-wave data +Url: http://www.pycbc.org/ +Group: Development/Languages/Python +Source: https://files.pythonhosted.org/packages/source/p/pycbc/PyCBC-%{version}.tar.gz +BuildRequires: gcc-c++ +BuildRequires: python-rpm-macros +BuildRequires: %{python_module devel} +BuildRequires: %{python_module Cython} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: %{python_module numpy >= 1.16.0} +BuildRequires: %{python_module numpy-devel >= 1.16.0} +Requires: python-numpy >= 1.16.0 + +%python_subpackages + +%description +PyCBC is a software package used to explore astrophysical sources of +gravitational waves. It contains algorithms to analyze +gravitational-wave data from the LIGO and Virgo detectors, detect +coalescing compact binaries, and measure the astrophysical parameters +of detected sources. + +%prep +%setup -q -n PyCBC-%{version} + +# FOR REAL BINARIES SET HASHBANG TO PYTHON3 DIRECTLY +sed -E -i "1{s|^#\!\s*/usr/bin/env python|#\!/usr/bin/python3}|}" \ + bin/pycbc_* \ + bin/*/pycbc_* + +# FOR FILES NOT INSTALLED TO BINDIR, REMOVE HASHBANGS +sed -E -i "1{/^#\!\s*\/usr\/bin/d}" \ + pycbc/fft/fft_callback.py \ + pycbc/filter/fotonfilter.py \ + pycbc/psd/*.py \ + pycbc/results/*.py + +%build +%python_build + +%install +%python_install +sed -E -i "1 s|^#\!\s*/usr/bin/env\s*bash|#\!/bin/bash|" %{buildroot}%{_bindir}/run_pycbc_inference + +%python_expand chmod -x %{buildroot}%{$python_sitearch}/pycbc/results/static/js/fancybox/2.1.5/jquery.fancybox.js +%python_expand chmod -x %{buildroot}%{$python_sitearch}/pycbc/results/static/js/fancybox/2.1.5/jquery.fancybox.pack.js + +%python_expand %fdupes %{buildroot}%{$python_sitearch} + +%files %{python_files} +%python3_only %{_bindir}/* +%{python_sitearch}/* + +%changelog