File gr-iqbalance.spec of Package gr-iqbalance

#
# spec file for package gr-iqbalance
#
# Copyright (c) 2013-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-iqbalance
%define sover 3_9_0

Name:           gr-iqbalance
Version:        0.38.3
Release:        18.1
Summary:        GNU Radio IQ balancing
License:        GPL-3.0
Group:          Productivity/Hamradio/Other
Source:         gr-iqbal-%{version}.tar.gz
Patch0:         gr-iqbal-boost.patch
URL:            http://cgit.osmocom.org/gr-iqbal/
BuildRequires:  cmake
BuildRequires:  doxygen
BuildRequires:  fdupes
BuildRequires:  fftw-devel
BuildRequires:  gcc-c++
BuildRequires:  gnuradio-devel >= 3.9.0
BuildRequires:  libboost_atomic-devel
BuildRequires:  libboost_date_time-devel
BuildRequires:  libboost_filesystem-devel
BuildRequires:  libboost_program_options-devel
BuildRequires:  libboost_regex-devel
%if 0%{?suse_version} <= 1600
BuildRequires:  libboost_system-devel
%endif
BuildRequires:  libboost_test-devel
BuildRequires:  libboost_thread-devel
BuildRequires:  libosmo-dsp-devel
BuildRequires:  orc
BuildRequires:  pkg-config
BuildRequires:  python3-devel
BuildRequires:  python3-numpy-devel >= 1.13.3
BuildRequires:  python3-pybind11-devel >= 2.4.3
BuildRequires:  python3-six
BuildRequires:  texlive-latex 
BuildRequires:  texlive-latex-bin-bin
BuildRequires:  texlive-dvips

%description
IQ balancing module for GNU Radio.


%package -n python3-gr-iqbalance
Summary:        Python bindings for gr-iqbalance
Group:          Development/Libraries/Python
Requires:       %{libname} = %{version}

%description -n python3-gr-iqbalance
The Python Bindings for gr-iqbalance.


%package -n %{libname}%{sover}
Summary:        IQ balance module for GNU Radio
Group:          Hardware/Other

%description -n %{libname}%{sover}
Library to balance I ad Q channels in GNU Radio


%package -n %{libname}-devel
Summary:        Development files for gnuradio-osmosdr
Group:          Development/Libraries/Other
Requires:       %{libname}%{sover} = %{version}-%{release}
Provides:       %{libname}%{sover}-devel = %{version}-%{release}
Provides:       %{name}-devel = %{version}-%{release}

%description -n %{libname}-devel
Headers for gnuradio-iqbalance module for GNU Radio.


%package doc
Summary:        Documentation for gnuradio-iqbalance
Group:          Documentation/Other
BuildArch:      noarch
Requires:       %{libname}%{sover} = %{version}-%{release}

%description doc
Documentation for gnuradio-iqbalance module for GNU Radio.


%prep
%setup -q -n gr-iqbal-%{version}
%patch -P 0 -p1


%build
%cmake -DENABLE_DOXYGEN=1
%cmake_build
make -C docs


%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}


%check


%post -n %{libname}%{sover} -p /sbin/ldconfig
%postun  -n %{libname}%{sover} -p /sbin/ldconfig


%files
%doc AUTHORS
%license COPYING
%{_datadir}/gnuradio/grc/blocks/*.?ml
%dir %{_docdir}/%{name}
%exclude %{_docdir}/%{name}/html
%exclude %{_docdir}/%{name}/xml

%files -n python3-gr-iqbalance
%{python3_sitearch}/gnuradio/iqbalance

%files -n %{libname}%{sover}
%{_libdir}/%{libname}.so.*

%files -n %{libname}-devel
%{_libdir}/%{libname}.so
%{_includedir}/gnuradio/iqbalance
%dir %{_libdir}/cmake/gnuradio
%{_libdir}/cmake/gnuradio/gnuradio-iqbalance*

%files doc
%{_docdir}/%{name}/html
%{_docdir}/%{name}/xml


%changelog
openSUSE Build Service is sponsored by