File gr-rds.spec of Package gr-rds
#
# spec file for package gr-rds
#
# Copyright (c) 2015-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-rds
%define sover 1
%define examplesdir %{_libdir}/gnuradio/examples
Name: gr-rds
Version: 1.1.0git20211122
Release: 1.1
Summary: GNU Radio module for RDS decoder
License: GPL-2.0
Group: Productivity/Hamradio/Other
Source: %{name}-%{version}gr38.tar.gz
URL: https://github.com/bastibl/gr-rds
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: doxygen
BuildRequires: fdupes
BuildRequires: gnuradio-devel >= 3.8.0.0
BuildRequires: gnuradio-examples
BuildRequires: libboost_atomic-devel
BuildRequires: libboost_date_time-devel
BuildRequires: libboost_program_options-devel
BuildRequires: libboost_filesystem-devel
BuildRequires: libboost_regex-devel
BuildRequires: libboost_system-devel
BuildRequires: libboost_thread-devel
BuildRequires: libboost_test-devel
BuildRequires: orc
BuildRequires: python3-devel
BuildRequires: swig
%description
GNU Radio module implementing input block for RDS decoder.
%package -n %{libname}%{sover}
Summary: Driver for FunCube Dongle pro+
Group: Hardware/Other
%description -n %{libname}%{sover}
Library to run FunCube Dongle pro+.
%package devel
Summary: Development files for gr-rds
Group: Development/Libraries/Other
Requires: %{name} = %{version}-%{release}
Requires: %{libname}%{sover} = %{version}-%{release}
AutoReq: on
%description devel
Library headers for gr-rds RDS decoder.
%package doc
Summary: Documentation for gnuradio-rds
Group: Documentation/Other
BuildArch: noarch
Requires: %{name}
%description doc
Documentation for gr-rds module for GNU Radio.
%package examples
Summary: RDS examples for GNU Radio
Group: Hardware/Other
Requires: %{name}
Requires: gnuradio-examples
%description examples
Example RDS flowgraphs for GNU Radio Companion
%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 {} \;
%fdupes -s %{buildroot}%{_docdir}
#install examples
install -m 644 -D examples/*.grc -t %{buildroot}%{examplesdir}/rds
install -m 644 -D examples/*.py -t %{buildroot}%{examplesdir}/rds
%post -n %{libname}%{sover} -p /sbin/ldconfig
%postun -n %{libname}%{sover} -p /sbin/ldconfig
%files
%doc README.md
%{python3_sitearch}/rds
%{_datadir}/gnuradio/grc/blocks/*.yml
%files -n %{libname}%{sover}
%{_libdir}/%{libname}*.so.*
%files devel
%{_libdir}/%{libname}*.so
%{_includedir}/rds
%{_libdir}/cmake/rds
%files examples
%{examplesdir}/rds
%changelog