OBS-URL: https://build.opensuse.org/package/show/science/cfitsio?expand=0&rev=46
134 lines
4.0 KiB
RPMSpec
134 lines
4.0 KiB
RPMSpec
#
|
|
# spec file for package cfitsio
|
|
#
|
|
# Copyright (c) 2025 SUSE LLC and contributors
|
|
#
|
|
# 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 so_ver 10
|
|
%define __builder ninja
|
|
Name: cfitsio
|
|
Version: 4.6.3
|
|
Release: 0
|
|
Summary: Library for manipulating FITS data files
|
|
License: NASA-1.3
|
|
URL: https://heasarc.gsfc.nasa.gov/fitsio/
|
|
Source0: https://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/%{name}-%{version}.tar.gz
|
|
BuildRequires: cmake >= 3.5
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: gcc-fortran
|
|
BuildRequires: ninja
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: pkgconfig(bzip2)
|
|
BuildRequires: pkgconfig(libcurl)
|
|
BuildRequires: pkgconfig(zlib)
|
|
|
|
%description
|
|
CFITSIO is a library of C and Fortran subroutines for reading and writing data
|
|
files in FITS (Flexible Image Transport System) data format. CFITSIO provides
|
|
simple high-level routines for reading and writing FITS files that insulate the
|
|
programmer from the internal complexities of the FITS format. CFITSIO also
|
|
provides many advanced features for manipulating and filtering the information
|
|
in FITS files.
|
|
|
|
This package contains some FITS image compression and decompression utilities.
|
|
|
|
%package devel
|
|
Summary: Headers required when building programs against cfitsio library
|
|
Requires: libcfitsio%{so_ver} = %{version}
|
|
Suggests: cfitsio-devel-doc = %{version}
|
|
# libcfitsio-devel was last used in openSUSE 13.1 (version 3.350)
|
|
Obsoletes: libcfitsio-devel <= 3.350
|
|
|
|
%description devel
|
|
This package contains headers required when building programs against cfitsio
|
|
library.
|
|
|
|
%package devel-doc
|
|
Summary: Documentation for the cfitsio library
|
|
# libcfitsio-doc was last used in openSUSE 12.1 (version 3.280)
|
|
Obsoletes: libcfitsio-doc <= 3.280
|
|
# libcfitsio-devel-doc was last used in openSUSE 13.1 (version 3.350)
|
|
Provides: libcfitsio-devel-doc = %{version}
|
|
Obsoletes: libcfitsio-devel-doc <= 3.350
|
|
BuildArch: noarch
|
|
|
|
%description devel-doc
|
|
This package contains documentation for the cfitsio library.
|
|
|
|
%package -n libcfitsio%{so_ver}
|
|
Summary: Library for manipulating FITS data files
|
|
|
|
%description -n libcfitsio%{so_ver}
|
|
CFITSIO is a library of C and Fortran subroutines for reading and writing data
|
|
files in FITS (Flexible Image Transport System) data format. CFITSIO provides
|
|
simple high-level routines for reading and writing FITS files that insulate the
|
|
programmer from the internal complexities of the FITS format. CFITSIO also
|
|
provides many advanced features for manipulating and filtering the information
|
|
in FITS files.
|
|
|
|
%prep
|
|
%autosetup -p1
|
|
|
|
%build
|
|
%cmake \
|
|
-DCMAKE_INSTALL_INCLUDEDIR=include/cfitsio \
|
|
-DUSE_BZIP2=ON \
|
|
-DTESTS=ON \
|
|
-DUTILS=ON \
|
|
-DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
|
|
%ifarch x86_64
|
|
-DUSE_SSE2=ON \
|
|
%endif
|
|
%{nil}
|
|
|
|
%cmake_build
|
|
|
|
%install
|
|
%cmake_install
|
|
|
|
%check
|
|
%ctest
|
|
|
|
%ldconfig_scriptlets -n libcfitsio%{so_ver}
|
|
|
|
%files
|
|
%doc README.md docs/{changes.txt,fpackguide.pdf}
|
|
%license licenses/License.txt
|
|
%{_bindir}/fitscopy
|
|
%{_bindir}/fitsverify
|
|
%{_bindir}/fpack
|
|
%{_bindir}/funpack
|
|
%{_bindir}/imcopy
|
|
%{_bindir}/speed
|
|
|
|
%files devel
|
|
%license licenses/License.txt
|
|
%{_bindir}/cookbook
|
|
%{_bindir}/smem
|
|
%{_includedir}/%{name}/
|
|
%{_libdir}/libcfitsio.so
|
|
%{_libdir}/pkgconfig/cfitsio.pc
|
|
%{_libdir}/cmake/%{name}/
|
|
|
|
%files devel-doc
|
|
%doc docs/{cfitsio.ps,cfortran.doc,fitsio.doc,fitsio.ps,quick.ps}
|
|
|
|
%files -n libcfitsio%{so_ver}
|
|
%license licenses/License.txt
|
|
%{_libdir}/libcfitsio.so.%{so_ver}*
|
|
%{_libdir}/libcfitsio.so.%{version}
|
|
|
|
%changelog
|