File libsigmf.spec of Package libsigmf
#
# spec file for package libsigmf
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2021, Martin Hauke <mardnh@gmx.de>
#
# 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: libsigmf
Version: 1.0.2
Release: 0
Summary: A header-only C++ library for working with SigMF metadata
License: Apache-2.0
URL: https://github.com/deepsig/libsigmf
Source0: https://github.com/deepsig/libsigmf/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: flatbuffers-devel
BuildRequires: gcc-c++
BuildRequires: pkgconfig
BuildRequires: pkgconfig(nlohmann_json)
%description
A header-only C++ library for working with SigMF metadata.
%package devel
Summary: A header-only C++ library for working with SigMF metadata
Requires: flatbuffers-devel
%description devel
A header-only C++ library for working with SigMF metadata.
%prep
%setup -q
%build
%cmake \
-DUSE_SYSTEM_FLATBUFFERS=ON \
-DUSE_SYSTEM_JSON=ON \
-DENABLE_EXAMPLES=OFF
%cmake_build
%install
%cmake_install
%check
%files devel
%license LICENSE
%doc README.md
%{_includedir}/sigmf
%dir %{_libdir}/cmake/libsigmf
%{_libdir}/cmake/libsigmf/libsigmfConfig.cmake
%{_libdir}/cmake/libsigmf/libsigmfConfigVersion.cmake
%{_libdir}/cmake/libsigmf/libsigmfTargets.cmake
%changelog