- Update to version 3.8.1.0: * Changed on Project Scope + clang-tidy improvements - throw exceptions by value, catch by reference - emplace_back where applicable - empty() instead of vector::size() == 0 + use CMake to check for endianness instead of BOOST_BIG_ENDIAN * gr-fec + scipy becomes optional dependency (for polar channel code construction) * gr_modtool + use Boost.UTF instead of cppunit * Fixed on Project Scope + FindQwt paths + floatAlmostEqual unittest assert function wrongly passing on sequence types + Only require boost unittest when testing is enabled + FindLOG4CPP typo + numpy.fft(pack) imports + several scipy imports that can be done with numpy alone * gnuradio-runtime + block gateway shadowed system port + Flaky message passing unit test contained timeout (not the test's job) + ctrlport/rpcaggregator & Co: removed storage of references to scope-lifetime objects + Sine table generation python was wrong + get_tags_in_range for delay < (end-start) + premature tag pruning + release flattened flowgraph after stopping; fixes restartability/shutdown issues * gr-analog + clipping in FM receiver: remove superfluous gain + C++ generation for multiple blocks * gr-audio + portaudio source: lock acquisition * gr-blocks + rotator VOLK workaround * gr-digital + map_bb buffer overflow + map_bb thread safety + additive_scrambler count based reset * gr-fec + heap corruption in async_decoder + cc_encoder was broken for constraint lengths > 8 * gr-fft + restore Boost 1.53 compat * gr-qtgui + no longer requiring unnecessary key in edit_box_msg * gr-uhd + fixed examples under Py3 + multichannel objects not populating channels * gr_modtool + wrong use of input -> raw_input + allow empty argument list + testing + check for and deny TSB under Python + QA addition bugs + correct path for C++ QA tests * GRC + several issues with YAML files + nested objects now properly populate namespaces + comments now included in block bounds calculation + Wiki documentation link removed from OOT blocks' docs tab + Dragging connections to auto-hide ports works now + generated and re-generated several example flowgraphs + bokeh_layout module name + Revert toggle buttons to text entry for bool block props, allowing GRC + variables to be used * Added on Project Scope + Codec2 development branch / future compat + Boost 1.71 compat + CI now checks for formatting + gnuradio-runtime + dot graphs now contain message edges + Python wrapping for blocks' set_affinity and {g,s}et_alias * gr-uhd + UHD Filter API * GRC + block affinity, buffer sizes available as advanced options for blocks + testing + Python snippets (please snippet responsibly!) + show_id flag added to embedded python blocks, Probes + global option to toggle showing of IDs + Help "Keyboard Shortcut" entry OBS-URL: https://build.opensuse.org/request/show/799206 OBS-URL: https://build.opensuse.org/package/show/hardware:sdr/gnuradio?expand=0&rev=78
257 lines
8.4 KiB
RPMSpec
257 lines
8.4 KiB
RPMSpec
#
|
|
# spec file for package gnuradio
|
|
#
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# 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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%bcond_without docs
|
|
|
|
%define sover 3_8_1
|
|
Name: gnuradio
|
|
Version: 3.8.1.0
|
|
Release: 0
|
|
Summary: GNU software radio
|
|
License: GPL-3.0-or-later
|
|
Group: Productivity/Hamradio/Other
|
|
URL: https://gnuradio.org
|
|
Source0: https://github.com/gnuradio/gnuradio/releases/download/v%{version}/gnuradio-%{version}.tar.xz
|
|
#Source1: https://github.com/gnuradio/gnuradio/releases/download/v%{version}/gnuradio-%{version}.tar.xz.asc
|
|
Source2: %{name}.keyring
|
|
# http://www.nathanwest.us/grc_to_37.sh
|
|
Source4: grc_to_37.sh
|
|
Source99: %{name}-rpmlintrc
|
|
Patch0: missing_library.patch
|
|
BuildRequires: alsa-devel
|
|
BuildRequires: cmake >= 3.8
|
|
BuildRequires: cppunit-devel
|
|
BuildRequires: cppzmq-devel
|
|
%if %{with docs}
|
|
BuildRequires: doxygen
|
|
# TeX is required for formula rendering
|
|
BuildRequires: texlive-dvips
|
|
BuildRequires: texlive-latex
|
|
BuildRequires: tex(newunicodechar.sty)
|
|
%endif
|
|
BuildRequires: fdupes
|
|
BuildRequires: fftw3-threads-devel
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: gmp-devel
|
|
BuildRequires: gsl-devel
|
|
BuildRequires: libSDL-devel
|
|
BuildRequires: libboost_atomic-devel >= 1.53
|
|
BuildRequires: libboost_filesystem-devel >= 1.53
|
|
BuildRequires: libboost_system-devel
|
|
BuildRequires: libgsm-devel
|
|
BuildRequires: libjack-devel
|
|
BuildRequires: libmpir-devel
|
|
BuildRequires: log4cpp-devel
|
|
BuildRequires: memory-constraints
|
|
BuildRequires: orc
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: portaudio-devel
|
|
BuildRequires: python-rpm-macros
|
|
BuildRequires: python3-Sphinx
|
|
BuildRequires: python3-click
|
|
BuildRequires: python3-click-plugins
|
|
BuildRequires: python3-gobject
|
|
BuildRequires: python3-gobject-cairo
|
|
BuildRequires: python3-mako >= 0.9.1
|
|
BuildRequires: python3-numpy
|
|
BuildRequires: python3-pyaml >= 3.11
|
|
BuildRequires: python3-qt5-devel
|
|
BuildRequires: python3-six
|
|
BuildRequires: qwt6-qt5-devel
|
|
BuildRequires: swig >= 3.0.8
|
|
BuildRequires: uhd-devel
|
|
BuildRequires: update-desktop-files
|
|
BuildRequires: pkgconfig(codec2)
|
|
BuildRequires: pkgconfig(libusb-1.0)
|
|
BuildRequires: pkgconfig(libxml-2.0)
|
|
BuildRequires: pkgconfig(py3cairo)
|
|
BuildRequires: pkgconfig(volk) >= 2.0
|
|
BuildRequires: typelib(Gtk) = 3.0
|
|
BuildRequires: typelib(PangoCairo) = 1.0
|
|
BuildRequires: typelib(cairo) = 1.0
|
|
Requires: python3-numpy
|
|
Requires: python3-qt5
|
|
Requires: python3-pyaml >= 3.11
|
|
# gr_modtool dependencies
|
|
Requires: python3-click
|
|
Requires: python3-click-plugins
|
|
Requires: python3-mako
|
|
|
|
%description
|
|
GNU Radio is a collection of software that when combined with minimal
|
|
hardware, allows the construction of radios where the actual waveforms
|
|
transmitted and received are defined by software. What this means is
|
|
that it turns the digital modulation schemes used in today's high
|
|
performance wireless devices into software problems.
|
|
|
|
%package -n libgnuradio-%{sover}
|
|
Summary: Libraries for GNU Radio
|
|
Group: System/Libraries
|
|
Obsoletes: libgnuradio0
|
|
|
|
%description -n libgnuradio-%{sover}
|
|
GNU Radio is a collection of software that when combined with minimal
|
|
hardware, allows the construction of radios where the actual waveforms
|
|
transmitted and received are defined by software. What this means is
|
|
that it turns the digital modulation schemes used in today's high
|
|
performance wireless devices into software problems.
|
|
|
|
This package contains the libraries for GNU Radio.
|
|
|
|
%package devel
|
|
Summary: Deveopment files for GNU Radio
|
|
Group: Development/Libraries/C and C++
|
|
Requires: %{name} = %{version}
|
|
Requires: gmp-devel
|
|
Requires: log4cpp-devel
|
|
|
|
%description devel
|
|
GNU Radio is a collection of software that when combined with minimal
|
|
hardware, allows the construction of radios where the actual waveforms
|
|
transmitted and received are defined by software. What this means is
|
|
that it turns the digital modulation schemes used in today's high
|
|
performance wireless devices into software problems.
|
|
|
|
This package contains libraries and header files for developing
|
|
applications that use GNU Radio.
|
|
|
|
%package doc
|
|
Summary: GNU Radio documentation
|
|
Group: Documentation/HTML
|
|
Requires: %{name} = %{version}
|
|
BuildArch: noarch
|
|
|
|
%description doc
|
|
GNU Radio is a collection of software that when combined with minimal
|
|
hardware, allows the construction of radios where the actual waveforms
|
|
transmitted and received are defined by software. What this means is
|
|
that it turns the digital modulation schemes used in today's high
|
|
performance wireless devices into software problems.
|
|
|
|
This package contains documentation for GNU Radio.
|
|
|
|
%package examples
|
|
Summary: GNU Radio examples
|
|
Group: Productivity/Hamradio/Other
|
|
Requires: %{name} = %{version}
|
|
|
|
%description examples
|
|
GNU Radio is a collection of software that when combined with minimal
|
|
hardware, allows the construction of radios where the actual waveforms
|
|
transmitted and received are defined by software. What this means is
|
|
that it turns the digital modulation schemes used in today's high
|
|
performance wireless devices into software problems.
|
|
|
|
This package contains some examples of using GNU Radio.
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch0 -p1
|
|
|
|
# remove buildtime from documentation
|
|
sed -i 's|^HTML_TIMESTAMP = YES|HTML_TIMESTAMP = NO|' docs/doxygen/Doxyfile.in
|
|
sed -i 's|^HTML_TIMESTAMP = YES|HTML_TIMESTAMP = NO|' docs/doxygen/Doxyfile.swig_doc.in
|
|
|
|
# protect the template files from %%cmake macro magic / mangling
|
|
find gr-utils/python/modtool/templates/gr-newmod -name CMakeLists.txt -exec mv '{}' '{}.tmpl' \;
|
|
|
|
%build
|
|
%limit_build -m 2000
|
|
%cmake \
|
|
%ifarch armv6l armv6hl
|
|
-Dhave_mfpu_neon=0 \
|
|
%endif
|
|
-DGR_PYTHON_DIR=%{python3_sitearch} \
|
|
-DENABLE_INTERNAL_VOLK:BOOL=OFF
|
|
%cmake_build
|
|
|
|
%install
|
|
# move the template files back
|
|
find gr-utils/python/modtool/templates/gr-newmod -name CMakeLists.txt.tmpl -execdir mv '{}' 'CMakeLists.txt' \;
|
|
|
|
%cmake_install
|
|
|
|
install -d %{buildroot}%{_docdir}/%{name}
|
|
mv %{buildroot}/%{_datadir}/doc/%{name}-*/* %{buildroot}%{_docdir}/%{name}/
|
|
|
|
%suse_update_desktop_file -r %{buildroot}%{_datadir}/applications/gnuradio-grc.desktop Network HamRadio
|
|
|
|
install -Dpm 0755 %{SOURCE4} %{buildroot}/%{_bindir}
|
|
|
|
# Compiled examples are installed as "data", but are arch dependent
|
|
install -dm 0755 %{buildroot}%{_libdir}/gnuradio
|
|
mv %{buildroot}%{_datadir}/gnuradio/examples %{buildroot}%{_libdir}/gnuradio/
|
|
|
|
# remove duplicate icons (just keep hicolor)
|
|
rm -rf %{buildroot}%{_datadir}/%{name}/grc/freedesktop
|
|
rm -rf %{buildroot}%{_datadir}/icons/gnome
|
|
|
|
%fdupes %{buildroot}%{_docdir}
|
|
%fdupes %{buildroot}%{_includedir}
|
|
%fdupes %{buildroot}%{_libdir}
|
|
|
|
%post -n libgnuradio-%{sover} -p /sbin/ldconfig
|
|
%postun -n libgnuradio-%{sover} -p /sbin/ldconfig
|
|
|
|
%files
|
|
%license COPYING
|
|
%{_bindir}/*
|
|
%dir %{_datadir}/gnuradio
|
|
%{_datadir}/gnuradio/grc/
|
|
%{_datadir}/gnuradio/modtool/
|
|
%{_datadir}/gnuradio/themes/
|
|
%{_datadir}/gnuradio/fec/
|
|
%{_datadir}/icons/hicolor/*/apps/gnuradio-grc.png
|
|
%{_datadir}/applications/gnuradio-grc.desktop
|
|
%{_datadir}/mime/packages/gnuradio-grc.xml
|
|
%{python3_sitearch}/*
|
|
%dir %{_sysconfdir}/gnuradio
|
|
%dir %{_sysconfdir}/gnuradio/conf.d
|
|
%config(noreplace) %{_sysconfdir}/gnuradio/conf.d/*.conf
|
|
%dir %{_docdir}/%{name}/
|
|
%{_docdir}/%{name}/README*
|
|
%{_docdir}/%{name}/CHANGELOG*
|
|
# doc package
|
|
%exclude %{_docdir}/%{name}/html/
|
|
%exclude %{_docdir}/%{name}/xml/
|
|
%exclude %{_docdir}/%{name}/*.py
|
|
%exclude %{_docdir}/%{name}/*.grc
|
|
|
|
%files -n libgnuradio-%{sover}
|
|
%{_libdir}/libgnuradio*.so.*
|
|
|
|
%files devel
|
|
%{_includedir}/%{name}/
|
|
%{_includedir}/pmt/
|
|
%{_libdir}/lib*.so
|
|
%{_libdir}/pkgconfig/*.pc
|
|
%{_libdir}/cmake/gnuradio/
|
|
|
|
%files doc
|
|
%dir %{_docdir}/%{name}
|
|
%{_docdir}/%{name}/html/
|
|
%{_docdir}/%{name}/xml/
|
|
%{_docdir}/%{name}/*.py
|
|
%{_docdir}/%{name}/*.grc
|
|
|
|
%files examples
|
|
%dir %{_libdir}/gnuradio
|
|
%{_libdir}/gnuradio/examples/
|
|
|
|
%changelog
|