File kvak.spec of Package kvak
#
# spec file for package kvak
#
# Copyright (c) 2018-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 http://bugs.opensuse.org/
#
Name: kvak
Version: 0.0.0+git.20180225
Release: 0
Summary: Pi/4-DQPSK Demodulator
License: MIT
Group: Productivity/Hamradio/Other
URL: https://brmlab.cz/project/sdr/tetra
Source: %{name}-%{version}.tar.xz
Patch0: fix-build.patch
BuildRequires: capnproto
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: pkgconfig
BuildRequires: python3-numpy
BuildRequires: pkgconfig(capnp)
%description
Pi/4-DQPSK multi-channel demodulator.
%prep
%setup -q
%patch0 -p1
sed -i 's|#! /usr/bin/env python3|#!/usr/bin/python3|g' control/control.py
%build
%cmake \
-DWITH_OPTIMIZATION=ON \
-DWITH_FAST_MATH=ON \
-DWITH_NATIVE=OFF
make VERBOSE=1 %{?_smp_mflags}
%install
%cmake_install
%files
%license LICENSE
%doc README.md
%{_bindir}/kvak
%{_bindir}/kvakctl
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/schema.capnp
%changelog