File m17-cxx-demod.spec of Package m17-cxx-demod

#
# spec file for package m17-cxx-demod
#
# 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:           m17-cxx-demod
Version:        2.2
Release:        0
Summary:        M17 Modulator & Demodulator
License:        GPL-3.0-or-later
Group:          Productivity/Hamradio/Other
URL:            https://github.com/mobilinkd/m17-cxx-demod
#Git-Clone:     https://github.com/mobilinkd/m17-cxx-demod.git
Source:         https://github.com/mobilinkd/m17-cxx-demod/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Patch0:         x.patch
BuildRequires:  boost-devel
BuildRequires:  cmake
BuildRequires:  gcc-c++
BuildRequires:  libboost_program_options-devel
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(codec2)

%description
M17 Modulator & Demodulator.

* m17-cxx-demod
  This program reads a 48k samples per second 16-bit, little-endian,
  single channel, M17 4-FSK baseband stream from STDIN and writes a
  demodulated/decoded 8k SPS 16-bit, single channel audio stream to
  STDOUT.
  Some diagnostic information is written to STDERR while the
  demodulator is running.

* m17-cxx-mod
  This program reads in an 8k sample per second, 16-bit, 1 channel
  raw audio stream from STDIN and writes out an M17 4-FSK baseband
  stream at 48k SPS, 16-bit, 1 channel to STDOUT.

%package devel
Summary:        Development files for the m17-cxx-demod
Group:          Development/Libraries/C and C++
Requires:       %{name} = %{version}

%description devel
This subpackage contains files for developing applications that
want to make use of m17-cxx-demod.

%prep
%setup -q
%patch0 -p1

%build
%cmake
%make_jobs

%install
%cmake_install

%files
%license LICENSE
%doc README.md
%{_bindir}/m17-demod
%{_bindir}/m17-mod

%files devel
%{_includedir}/m17cxx
%{_libdir}/cmake/m17cxx/

%changelog
openSUSE Build Service is sponsored by