File casarest.spec of Package casarest
#
# spec file for package casarest
#
# Copyright (c) 2022 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/
#
%global __builder ninja
Name: casarest
Version: 1.9.2
Release: 0
Summary: A suite of C++ libraries for radio astronomy data processing
License: GPL-3.0-or-later
URL: https://github.com/casacore/casarest
Source0: https://github.com/casacore/casarest/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: casacore-devel >= 3.6.1
BuildRequires: cmake
BuildRequires: fftw3-threads-devel
BuildRequires: gcc-c++
BuildRequires: gcc-fortran
BuildRequires: hdf5-devel
BuildRequires: libboost_system-devel
BuildRequires: libboost_thread-devel
BuildRequires: ninja
BuildRequires: pkgconfig
BuildRequires: pkgconfig(cfitsio)
BuildRequires: pkgconfig(wcslib)
BuildRequires: pkgconfig(zlib)
ExcludeArch: %{ix86}
%description
The casarest package is the remainder of the AIPS++ libraries over and above
the casacore library. It consists of the libraries: msvis, calibration,
synthesis, flagging, simulators, and ionosphere.
The prorgram lwimager (part of synthesis) is the main deliverable.
%package libs
Summary: Shared libraries for casarest
%description libs
The casarest package is the remainder of the AIPS++ libraries over and above
the casacore library. It consists of the libraries: msvis, calibration,
synthesis, flagging, simulators, and ionosphere.
This package provides the shared libraries for casarest.
%package devel
Summary: Headers and sources for developing with casarest
Requires: %{name}-libs = %{version}
Requires: casacore-devel
Requires: hdf5-devel
Requires: pkgconfig(cfitsio)
Requires: pkgconfig(wcslib)
%description devel
The casarest package is the remainder of the AIPS++ libraries over and above
the casacore library. It consists of the libraries: msvis, calibration,
synthesis, flagging, simulators, and ionosphere.
This package provides the headers and sources for developing software with
casarest.
%prep
%autosetup -p1
%build
%cmake -DLIBRARY_INSTALL_DIR=%{_lib} \
-DCMAKE_SKIP_INSTALL_RPATH:BOOL=ON
%cmake_build
%install
%cmake_install
%ldconfig_scriptlets -n %{name}-libs
%files
%license LICENSE
%{_bindir}/lwimager
%files libs
%license LICENSE
%{_libdir}/*.so
%files devel
%doc README.md
%license LICENSE
%{_includedir}/casarest/
%changelog