Name:     liberfa
Version:  2.0.1
Release:  alt1

Summary:  Essential Routines for Fundamental Astronomy
License:  BSD-3-Clause
Group:    Sciences/Astronomy
Url:      https://github.com/liberfa/erfa
Packager: Alexander Lubyagin <dfpl@altlinux.org>

# https://github.com/liberfa/erfa/releases/download/v%{version}/erfa-%{version}.tar.xz
Source:   %name-%version.tar

BuildRequires(pre): meson
BuildRequires: pkgconfig

%description
ERFA (Essential Routines for Fundamental Astronomy) is a C library containing
key algorithms for astronomy, and is based on the SOFA library published
by the International Astronomical Union (IAU).

ERFA is intended to replicate the functionality of SOFA (aside from possible
bugfixes in ERFA that have not yet been included in SOFA), but is licensed
under a three-clause BSD license to enable its compatibility with a wide range
of open source licenses. Permission for this release has been obtained from
the SOFA board, and is available in the LICENSE file included in this source
distribution.

%package  devel
Summary:  Development files for erfa
Group:    Development/C++
Requires: %name = %version

%description devel
This package contains libraries and header files for developing
applications that use %name.

%prep
%setup -q

%build
%meson
%meson_build

%install
%meson_install

%files
%doc README.rst INFO LICENSE
%_libdir/liberfa.so.1
%_libdir/liberfa.so.1.*

%files devel
%_includedir/*.h
%_libdir/liberfa.so
%_libdir/pkgconfig/erfa.pc

%changelog
* Fri Jul 26 2024 Alexander Lubyagin <dfpl@altlinux.org> 2.0.1-alt1
- First release
