File gr-inspector-16.0.spec of Package gr-inspector
#
# spec file for package gr-inspector
#
# Copyright (c) 2018-2022 Wojciech Kazubski, wk@ire.pw.edu.pl
#
# 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/
#
%define libname libgnuradio-inspector
%define sover 2_0_0git
Name: gr-inspector
Version: 1.0.0git20220414
Release: 1.1
Summary: Signal analysis modules for GNU Radio
License: GPL-3.0
Group: Productivity/Hamradio/Other
URL: https://github.com/gnuradio/gr-inspector
Source: %{name}-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: cppunit-devel
BuildRequires: doxygen
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: gnuradio-devel >= 3.7.0
BuildRequires: fftw3-devel
BuildRequires: libboost_atomic-devel
BuildRequires: libboost_date_time-devel
BuildRequires: libboost_filesystem-devel
BuildRequires: libboost_program_options-devel
BuildRequires: libboost_regex-devel
BuildRequires: libboost_system-devel
BuildRequires: libboost_test-devel
BuildRequires: libboost_thread-devel
BuildRequires: libQt5Widgets-devel
BuildRequires: libsndfile-devel
BuildRequires: orc
BuildRequires: python3-devel
BuildRequires: python3-numpy-devel
BuildRequires: python3-pybind11-devel
BuildRequires: qwt6-qt5-devel
BuildRequires: qwtplot3d-devel
%description
This GNU Radio module is developed to realize signal analysis abilities in
typical block-structure. The module is capable of the following:
* Energy detection of continuous signals
* Filtering of detected signals
* OFDM parameter estimation (carrier spacing, symbol time)
* Blind OFDM synchronization
* Resampling of signals to constant rate
* 3D Visualisation of FAM data, from gr-specest
* Using TensorFlow models for AMC
%package -n %{libname}%{sover}
Summary: GNU Radio signal analysis module library
Group: Hardware/Other
%description -n %{libname}%{sover}
GNU Radio module library for signal analysis
%package devel
Summary: Headers for gr-inspector
Group: Development/Libraries/Other
Requires: %{name} = %{version}-%{release}
Requires: %{libname}%{sover} = %{version}-%{release}
AutoReq: on
%description devel
Library headers for gr-inspector.
%package doc
Summary: Documentation for gr-inspector
Group: Documentation/Other
BuildArch: noarch
Requires: %{name} = %{version}-%{release}
%description doc
Documentation for gr-inspector module for GNU Radio.
%prep
%setup -q -n %{name}
%build
%cmake -DENABLE_DOXYGEN=1
%cmake_build
%install
%cmake_install
find %{buildroot}%{_libdir}/python*/site-packages/ -name '*.pyo' -exec rm {} \;
#move docs
mkdir -p %{buildroot}%{_docdir}
mv %{buildroot}/%{_datadir}/doc/%{name} %{buildroot}%{_docdir}
%fdupes -s %{buildroot}%{_docdir}
%post -n %{libname}%{sover} -p /sbin/ldconfig
%postun -n %{libname}%{sover} -p /sbin/ldconfig
%files
%doc README.md MANIFEST.md
%{python3_sitearch}/gnuradio/inspector
%{_datadir}/gnuradio/grc/blocks/*.?ml
%exclude %{_docdir}/%{name}/html
%exclude %{_docdir}/%{name}/xml
%files -n %{libname}%{sover}
%{_libdir}/%{libname}.so.*
%files devel
%{_libdir}/%{libname}.so
%{_includedir}/gnuradio/inspector
%{_libdir}/cmake/gnuradio-inspector
%files doc
%{_docdir}/%{name}/html
%{_docdir}/%{name}/xml
%changelog