SHA256
1
0
forked from pool/gnuradio

Accepting request 612995 from home:adamm:branches:hardware:sdr

- boost_161.patch: fix compilation with Boost 1.67 (bsc#1089806)
- missing_library.patch: hack to fix linking with required
  libraries.
- use memory-constraints package instead of _constraints

OBS-URL: https://build.opensuse.org/request/show/612995
OBS-URL: https://build.opensuse.org/package/show/hardware:sdr/gnuradio?expand=0&rev=16
This commit is contained in:
Martin Pluskal
2018-05-30 09:16:17 +00:00
committed by Git OBS Bridge
parent d79ff38fd0
commit 02432f7c7d
5 changed files with 139 additions and 13 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package gnuradio
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2018 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
@@ -23,7 +23,7 @@ Name: gnuradio
Version: 3.7.12.0
Release: 0
Summary: GNU software radio
License: GPL-3.0+
License: GPL-3.0-or-later
Group: Productivity/Hamradio/Other
URL: http://gnuradio.org
Source: https://github.com/gnuradio/gnuradio/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
@@ -31,6 +31,8 @@ Source1: https://github.com/gnuradio/volk/archive/v%{volk_version}.tar.gz
# http://www.nathanwest.us/grc_to_37.sh
Source2: grc_to_37.sh
Source99: %{name}-rpmlintrc
Patch1: boost_161.patch
Patch2: missing_library.patch
BuildRequires: alsa-devel
BuildRequires: boost-devel
BuildRequires: cmake
@@ -43,6 +45,7 @@ BuildRequires: gsl-devel
BuildRequires: libSDL-devel
BuildRequires: libjack-devel
BuildRequires: libxslt-python
BuildRequires: memory-constraints
BuildRequires: orc
BuildRequires: pkgconfig
BuildRequires: portaudio-devel
@@ -190,14 +193,17 @@ This package contains the examples of using GNU Radio depending on wxWidgets.
%prep
%setup -q
tar xzf %{SOURCE1} -C volk/ --strip-components=1
%patch1 -p1
%patch2 -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
%build
%cmake \
-DCMAKE_SHARED_LINKER_FLAGS=""
make -j2
%limit_build -m 2000
%cmake
# -DCMAKE_SHARED_LINKER_FLAGS=""
%make_jobs
%install
%cmake_install
@@ -245,7 +251,7 @@ rm -rf %{buildroot}%{_prefix}/libexec
%files
%defattr(-,root,root,-)
%doc COPYING
%license COPYING
%{_bindir}/*
%dir %{_datadir}/gnuradio
%{_datadir}/gnuradio/grc/