File gr-dsd.spec of Package gr-dsd
#
# spec file for package gr-dsd
#
# Copyright (c) 2021-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-dsd
%define sover 1_0_0git
Name: gr-dsd
Version: 1.0.0git20211010
Release: 0.0
Summary: GNU Radio block for Digital Speech Decoder
License: GPL-3.0-or-later
Group: Productivity/Hamradio/Other
URL: https://github.com/argilo/gr-dsd
#Git-Clone: https://github.com/argilo/gr-dsd.git
Source: %{name}-%{version}.tar.gz
Patch1: gr-dsd-Remove-exitflag-and-some-other-header-cruft.patch
BuildRequires: cmake
BuildRequires: cppunit-devel
BuildRequires: doxygen
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: gnuradio-devel >= 3.8.0
BuildRequires: itpp-devel
BuildRequires: libboost_atomic-devel
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: libsndfile-devel
BuildRequires: swig
%description
The goal of this project is to package Digital Speech Decoder (DSD) as a
GNU Radio block, so that it can be easily used with software radio peripherals
such as the Ettus Research USRP or RTL2832U-based USB TV tuners.
%package -n %{libname}%{sover}
Summary: Library for GNU Radio block for Digital Speech Decoder
Group: Hardware/Other
%description -n %{libname}%{sover}
This is library for GNU Radio block for Digital Speech Decoder
%package devel
Summary: Headers for gr-bluetooth
Group: Development/Libraries/Other
Requires: %{name} = %{version}-%{release}
Requires: %{libname}%{sover} = %{version}-%{release}
AutoReq: on
%description devel
Library headers for gr-dsd, the GNU Radio block for Digital Speech Decoder
%package doc
Summary: Documentation for gr-dsd
Group: Documentation/Other
BuildArch: noarch
%description doc
Documentation for gr-dsd GNU Radio.
%prep
%setup -q -n %{name}
pwd
ls -l
%patch1 -p1
%build
%cmake \
-DENABLE_DOXYGEN=1
%cmake_build
%install
%cmake_install
find %{buildroot}%{_libdir}/python*/site-packages/ -name '*.pyo' -exec rm {} \;
mkdir -p %{buildroot}%{_docdir}
mv %{buildroot}/%{_datadir}/doc/%{name} %{buildroot}%{_docdir}
%fdupes -s %{buildroot}%{_docdir}/%{name}
%post -n %{libname}%{sover} -p /sbin/ldconfig
%postun -n %{libname}%{sover} -p /sbin/ldconfig
%files
%license COPYING
%doc README.md MANIFEST.md
%{python3_sitearch}/dsd
%{_datadir}/gnuradio/grc/blocks/*.?ml
%exclude %{_docdir}/%{name}/html
%exclude %{_docdir}/%{name}/xml
%files -n %{libname}%{sover}
%{_libdir}/%{libname}*.so.*
%files devel
%{_includedir}/dsd
%{_libdir}/%{libname}*.so
%{_libdir}/cmake/dsd
%files doc
%dir %{_docdir}/%{name}
%{_docdir}/%{name}/html
%{_docdir}/%{name}/xml
%changelog