File gnsstk-apps.spec of Package gnsstk-apps

#
# spec file for package gnsstk-apps
#
# Copyright (c) 2022-2024 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/
#

Name:           gnsstk-apps
Version:        14.1.1
Release:        0
License:        LGPL-3.0-only
Summary:        GNSS Toolkit
Group:          Development/Libraries
URL:            https://github.com/SGL-UT/GNSSTk
Source:         https://github.com/SGL-UT/%{name}/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires:  cmake
BuildRequires:  gcc-c++
BuildRequires:  ncurses-devel
BuildRequires:  gnsstk-devel >= %{version}

%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.

%prep
%setup -q
chmod 644 RELNOTES.md

%build
%cmake .. \
    -DCMAKE_INSTALL_DATADIR=%{_libdir}/ \
    -DBUILD_EXT=ON \
    -DUSE_RPATH=OFF
%cmake_build

%install
%cmake_install
rm -rf $RPM_BUILD_ROOT/usr/README.md
rm -rf $RPM_BUILD_ROOT/usr/include

%files
%doc README.md COPYING.md RELNOTES.md
%{_bindir}/*
%{_libdir}/cmake/GNSSTK_Apps

%changelog
openSUSE Build Service is sponsored by