File gnsstk.spec of Package gnsstk
#
# spec file for package gnsstk
#
# Copyright (c) 2022-2025 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/
#
%define libver 14
Name: gnsstk
Version: 14.3.0
Release: 0
Summary: The GNSS Toolkit
License: LGPL-3.0-only
Group: Development/Libraries/C and C++
Url: http://www.gpstk.org/
Source: https://codeload.github.com/SGL-UT/gnsstk/tar.gz/refs/tags/v%{version}#/%{name}-%{version}.tar.gz
Patch0: gnsstk-fix-build-with-gcc13.patch
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: python3-devel
BuildRequires: swig
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
The GNSS Toolkit (GNSSTk) is an open-source (LGPL) project sponsored by the
Space and Geophysics Laboratory (SGL), part of the Applied Research Laboratories
(ARL) at The University of Texas at Austin.
The primary goals of the GNSSTk project are to:
- provide applications for use by the GNSS and satellite navigation community.
- provide a core library to facilitate the development of GNSS applications.
%package devel
Summary: Development files for gnsstk
Group: Development/Libraries/C and C++
Requires: lib%{name}%{libver} = %{version}
%description devel
This package contains the development files for the GNSS Toolkit.
%package -n lib%{name}%{libver}
Summary: Library files for gnsstk
Group: System/Libraries
%description -n lib%{name}%{libver}
This package contains the library files for the GNSS Toolkit.
%prep
%autosetup -p1
chmod 644 RELNOTES.md
%build
%cmake \
-DCMAKE_INSTALL_DATADIR=%{_libdir}/ \
-DBUILD_EXT=ON \
-DUSE_RPATH=OFF \
-DVERSIONED_HEADER_INSTALL=ON
%cmake_build
%install
%cmake_install
%post -n lib%{name}%{libver} -p /sbin/ldconfig
%postun -n lib%{name}%{libver} -p /sbin/ldconfig
%files
%license COPYING.md COPYING.LESSER.md
%doc ChangeLog.md AUTHORS.md LICENSE.md README.md RELNOTES.md DOCUMENTATION.md
%{_bindir}/*
%files -n lib%{name}%{libver}
%{_libdir}/lib%{name}.so.*
%files devel
%license COPYING.md COPYING.LESSER.md
%doc ChangeLog.md AUTHORS.md LICENSE.md README.md RELNOTES.md DOCUMENTATION.md
%doc examples
%{_includedir}/%{name}%{libver}
%{_libdir}/lib%{name}.so
%{_libdir}/cmake/GNSSTK
%changelog