File gr-gpredict-doppler.spec of Package gr-gpredict-doppler

#
# spec file for package gr-gpredict-doppler
#
# Copyright (c) 2021 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 ver 0git20200213
%define examplesdir %{_libdir}/gnuradio/examples

Name:           gr-gpredict-doppler
Version:        0git20200213
Release:        0
Summary:        Doppler shift correction for satellites using Gpredict
License:        Apache-2.0
Group:          Productivity/Hamradio/Other
Source:         %{name}-%{version}.tar.gz
URL:            https://github.com/ghostop14/gr-gpredict-doppler
BuildRequires:  cmake
BuildRequires:  doxygen
BuildRequires:  gcc-c++
BuildRequires:  gnuradio-devel >= 3.8.0.0
BuildRequires:  libboost_date_time-devel
BuildRequires:  libboost_filesystem-devel
BuildRequires:  libboost_program_options-devel
BuildRequires:  libboost_system-devel
BuildRequires:  libboost_regex-devel
BuildRequires:  libboost_test-devel
BuildRequires:  libboost_thread-devel
BuildRequires:  python3-devel
BuildRequires:  gnuradio-examples

%description
Python block that updates a GNU Radio variable with the absolute frequency as
provided by Gpredict. This allows for Doppler shift corrected reception of
satellite signals.

%package        examples
Summary:        Examples for gr-predict-doppler
Group:          Productivity/Hamradio/Other
Requires:       %{name} = %{version}
Requires:       gnuradio-examples

%description    examples
Python block that updates a GNU Radio variable with the absolute frequency as
provided by Gpredict. This allows for Doppler shift corrected reception of
satellite signals.


%prep
%setup -q -n %{name}


%build
%cmake
%cmake_build


%install
%cmake_install
find %{buildroot}%{_libdir}/python*/site-packages/ -name '*.pyo' -exec rm {} \;

#install examples
install -dm 0755 %{buildroot}%{examplesdir}/gpredict
install -pm 0755 examples/*.grc %{buildroot}%{examplesdir}/gpredict


%files
%doc README.md
%{python3_sitearch}/gpredict
%{_datadir}/gnuradio/grc/blocks/*.?ml

%files examples
%{examplesdir}/gpredict

%changelog
openSUSE Build Service is sponsored by