Revision 620d13952083134b5c8d704e3e62b656b83fe766 authored by Bernd Machenschalk on 24 October 2017, 12:38:03 UTC, committed by Duncan Brown on 24 October 2017, 12:38:03 UTC
- It gets increasingly difficult to work with the system's
  Python (and pip) that's linked with a pretty ancient version of
  libssl.  So build an own Python with a newer openssl version.

- pyOpenSSL was probably pinned to version 0.13 by requirements of
  Pegasus, which are now obsolete, so is the pinning

- If pyssl_from=tarball, pyOpenSSL 0.13 and matching openssl-1.01p
  will be installed. Otherwise openssl-1.0.2l will be compiled and
  the latest available versiomn of pyOpenSSL will b einstalled (via
  pip).

- Python compilation: rehash to make sure to use the newly built
  versions of python and pip, check for dbhas early as if it's
  missing, something must have gone wrong already during Pythoni
  compilation / installation
1 parent cdf3255
Raw File
pycbc.spec
Name:           python-pycbc
Summary:        Python tools for CBC data analysis
Version:        0.1
Release:        1
License:        GPL
Group:          Development/Libraries
Source:         %{name}-%{version}.tar.gz
Url:            http://www.lsc-group.phys.uwm.edu/daswg/projects/pycbc.html
BuildRoot:      %{_tmppath}/%{name}-%{version}-root
Requires:       python python-decorator pycbc_glue pycbc_glue-segments lal lal-python lalframe lalframe-python lalsimulation lalsimulation-python lalinspiral lalinspiral-python numpy scipy
BuildRequires:  python-devel lal-devel lalmetaio-devel lalframe-devel lalsimulation-devel lalinspiral-devel numpy pkgconfig
%description
PyCBC is a python toolkit for analysis of data from gravitational-wave
laser interferometer detectors with the goal of detecting and studying
signals from compact binary coalescences (CBCs).

%package common
Summary: Common files
Group: Development/Libraries
Requires: python
%description common
This is the common package, to be complemented by one of the
-nogpu, -cuda or -opencl packages.

%package nogpu
Summary: CPU-only version
Group: Development/Libraries
Requires: python-pycbc-common
%description nogpu
Version supporting CPU computation only.

#%package cuda
#Summary: CUDA version
#Group: Development/Libraries
#Requires: python-pycbc-common
#%description cuda
#Version supporting GPU computation via CUDA.

#%package opencl
#Summary: OpenCL version
#Group: Development/Libraries
#Requires: python-pycbc-common
#%description opencl
#Version supporting GPU computation via OpenCL.

%prep
%setup

%build
CFLAGS="%{optflags}" %{__python} setup.py build

%install
rm -rf %{buildroot}
%{__python} setup.py install \
    --skip-build \
    --root=%{buildroot}

%files common
%defattr(-,root,root)
%exclude /usr/etc/
/usr/

%files nogpu
back to top