|
|
388c3a |
#
|
|
|
388c3a |
# spec file for package casacore
|
|
|
388c3a |
#
|
|
|
388c3a |
# Copyright (c) 2020 SUSE LLC
|
|
|
388c3a |
#
|
|
|
388c3a |
# All modifications and additions to the file contributed by third parties
|
|
|
388c3a |
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
388c3a |
# upon. The license for this file, and modifications and additions to the
|
|
|
388c3a |
# file, is the same license as for the pristine package itself (unless the
|
|
|
388c3a |
# license for the pristine package is not an Open Source License, in which
|
|
|
388c3a |
# case the license is the MIT License). An "Open Source License" is a
|
|
|
388c3a |
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
388c3a |
# published by the Open Source Initiative.
|
|
|
388c3a |
|
|
|
388c3a |
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
388c3a |
#
|
|
|
388c3a |
|
|
|
388c3a |
|
|
|
388c3a |
# ninja too old on openSUSE Leap 15.1
|
|
|
388c3a |
%if 0%{?suse_version} == 1500 && 0%{?sle_version} == 150100
|
|
|
388c3a |
%bcond_with ninja
|
|
|
388c3a |
%else
|
|
|
388c3a |
%bcond_without ninja
|
|
|
388c3a |
%endif
|
|
|
388c3a |
|
|
|
388c3a |
%if %{with ninja}
|
|
|
388c3a |
%global __builder ninja
|
|
|
388c3a |
%endif
|
|
|
388c3a |
|
|
|
388c3a |
Name: casarest
|
|
|
388c3a |
Version: 1.7.0
|
|
|
388c3a |
Release: 0
|
|
|
388c3a |
Summary: A suite of C++ libraries for radio astronomy data processing
|
|
|
388c3a |
License: GPL-3.0-or-later
|
|
|
388c3a |
URL: https://github.com/casacore/casarest
|
|
|
388c3a |
Source0: https://github.com/casacore/casarest/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
|
388c3a |
Source1: https://raw.githubusercontent.com/casacore/casarest/master/LICENSE
|
|
|
388c3a |
# PATCH-FIX-UPSTREAM casarest-no-return-in-non-void.patch badshah400@gmail.com -- Fix non-void functions function not returning anything
|
|
|
388c3a |
Patch0: casarest-no-return-in-non-void.patch
|
|
|
388c3a |
BuildRequires: casacore-devel
|
|
|
388c3a |
BuildRequires: cmake
|
|
|
388c3a |
BuildRequires: fftw3-threads-devel
|
|
|
388c3a |
BuildRequires: gcc-c++
|
|
|
388c3a |
BuildRequires: gcc-fortran
|
|
|
388c3a |
BuildRequires: hdf5-devel
|
|
|
388c3a |
BuildRequires: libboost_system-devel
|
|
|
388c3a |
BuildRequires: libboost_thread-devel
|
|
|
388c3a |
BuildRequires: pkgconfig
|
|
|
388c3a |
BuildRequires: pkgconfig(cfitsio)
|
|
|
388c3a |
BuildRequires: pkgconfig(wcslib)
|
|
|
388c3a |
BuildRequires: pkgconfig(zlib)
|
|
|
388c3a |
%if %{with ninja}
|
|
|
388c3a |
BuildRequires: ninja
|
|
|
388c3a |
%endif
|
|
|
388c3a |
|
|
|
388c3a |
%description
|
|
|
388c3a |
The casarest package is the remainder of the AIPS++ libraries over and above
|
|
|
388c3a |
the casacore library. It consists of the libraries: msvis, calibration,
|
|
|
388c3a |
synthesis, flagging, simulators, and ionosphere.
|
|
|
388c3a |
|
|
|
388c3a |
The prorgram lwimager (part of synthesis) is the main deliverable.
|
|
|
388c3a |
|
|
|
388c3a |
%package libs
|
|
|
388c3a |
Summary: Shared libraries for casarest
|
|
|
388c3a |
|
|
|
388c3a |
%description libs
|
|
|
388c3a |
The casarest package is the remainder of the AIPS++ libraries over and above
|
|
|
388c3a |
the casacore library. It consists of the libraries: msvis, calibration,
|
|
|
388c3a |
synthesis, flagging, simulators, and ionosphere.
|
|
|
388c3a |
|
|
|
388c3a |
This package provides the shared libraries for casarest.
|
|
|
388c3a |
|
|
|
388c3a |
%package devel
|
|
|
388c3a |
Summary: Headers and sources for developing with casarest
|
|
|
388c3a |
Requires: hdf5-devel
|
|
|
388c3a |
Requires: pkgconfig(cfitsio)
|
|
|
388c3a |
Requires: pkgconfig(wcslib)
|
|
|
388c3a |
Requires: casacore-devel
|
|
|
388c3a |
Requires: %{name}-libs = %{version}
|
|
|
388c3a |
|
|
|
388c3a |
%description devel
|
|
|
388c3a |
The casarest package is the remainder of the AIPS++ libraries over and above
|
|
|
388c3a |
the casacore library. It consists of the libraries: msvis, calibration,
|
|
|
388c3a |
synthesis, flagging, simulators, and ionosphere.
|
|
|
388c3a |
|
|
|
388c3a |
This package provides the headers and sources for developing software with
|
|
|
388c3a |
casarest.
|
|
|
388c3a |
|
|
|
388c3a |
%prep
|
|
|
388c3a |
%autosetup -p1
|
|
|
388c3a |
cp %{SOURCE1} ./
|
|
|
388c3a |
|
|
|
388c3a |
%build
|
|
|
388c3a |
%cmake -DLIBRARY_INSTALL_DIR=%{_lib} \
|
|
|
388c3a |
-DCMAKE_SKIP_INSTALL_RPATH:BOOL=ON
|
|
|
388c3a |
|
|
|
388c3a |
%cmake_build
|
|
|
388c3a |
|
|
|
388c3a |
%install
|
|
|
388c3a |
%cmake_install
|
|
|
388c3a |
|
|
|
388c3a |
%post -n %{name}-libs -p %run_ldconfig
|
|
|
388c3a |
%postun -n %{name}-libs -p %run_ldconfig
|
|
|
388c3a |
|
|
|
388c3a |
%files
|
|
|
388c3a |
%license LICENSE
|
|
|
388c3a |
%{_bindir}/lwimager
|
|
|
388c3a |
|
|
|
388c3a |
%files libs
|
|
|
388c3a |
%license LICENSE
|
|
|
388c3a |
%{_libdir}/*.so
|
|
|
388c3a |
|
|
|
388c3a |
%files devel
|
|
|
388c3a |
%doc README.md
|
|
|
388c3a |
%license LICENSE
|
|
|
388c3a |
%{_includedir}/casarest/
|
|
|
388c3a |
|
|
|
388c3a |
%changelog
|