- Fix cmake syntax error:

* bladeRF-cmake_syntax.patch

OBS-URL: https://build.opensuse.org/package/show/hardware:sdr/bladeRF?expand=0&rev=18
This commit is contained in:
Martin Pluskal 2017-09-05 08:39:52 +00:00 committed by Git OBS Bridge
parent a101b42a50
commit 05ec4b5b22
3 changed files with 30 additions and 7 deletions

View File

@ -0,0 +1,19 @@
From 037e2886f2bfee42af99d77581d3cf9a23c64227 Mon Sep 17 00:00:00 2001
From: Rey Tucker <rey.tucker@nuand.com>
Date: Tue, 1 Aug 2017 15:29:56 -0400
Subject: [PATCH] udev: fix CMakeLists syntax error (#509)
---
host/misc/udev/CMakeLists.txt | 1 -
1 file changed, 1 deletion(-)
diff --git a/host/misc/udev/CMakeLists.txt b/host/misc/udev/CMakeLists.txt
index 317fec4b9..2e25e289a 100644
--- a/host/misc/udev/CMakeLists.txt
+++ b/host/misc/udev/CMakeLists.txt
@@ -41,5 +41,4 @@ else()
if(INSTALL_UDEV_RULES)
message(STATUS "udev rules not supported on this platform. Hide this message via -DINSTALL_UDEV_RULES=Off")
endif(INSTALL_UDEV_RULES)
-else()
endif()

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Sep 5 08:36:54 UTC 2017 - mpluskal@suse.com
- Fix cmake syntax error:
* bladeRF-cmake_syntax.patch
-------------------------------------------------------------------
Thu Jun 1 06:47:30 UTC 2017 - mardnh@gmx.de

View File

@ -33,6 +33,8 @@ Url: http://nuand.com/
Source: https://github.com/Nuand/bladeRF/archive/%{release_name}.tar.gz#/%{name}-%{release_name}.tar.xz
# PATCH-FIX-OPENSUSE bladeRF-add-cflag-Wno-format-truncation.patch boo#1041192
Patch0: bladeRF-add-cflag-Wno-format-truncation.patch
# PATCH-FIX-UPSTREAM bladeRF-cmake_syntax.patch upstream commit 037e288
Patch1: bladeRF-cmake_syntax.patch
BuildRequires: cmake >= 2.8.4
BuildRequires: doxygen
BuildRequires: fdupes
@ -77,6 +79,7 @@ use of libbladerf.
%prep
%setup -q -n %{name}-%{release_name}
%patch0 -p1
%patch1 -p1
%build
cd host
@ -89,8 +92,7 @@ cd host
-DENABLE_LIBBLADERF_SYSLOG=ON \
%endif
-DBUILD_DOCUMENTATION=ON
make %{?_smp_mflags}
%make_jobs
%install
cd host
@ -109,21 +111,17 @@ getent group %{bladerf_group} >/dev/null || groupadd -r %{bladerf_group}
%udev_rules_update
%files
%defattr(-,root,root)
%doc README.md COPYING CONTRIBUTORS
%{_bindir}/bladeRF-cli
%{_mandir}/man1/bladeRF-cli.1%{ext_man}
%files udev
%defattr(-,root,root)
%{_udevrulesdir}/88-nuand.rules
%files -n %{libname}
%defattr(-,root,root)
%{_libdir}/libbladeRF.so.*
%files devel
%defattr(-,root,root)
%{_libdir}/libbladeRF.so
%{_includedir}/libbladeRF.h
%{_libdir}/pkgconfig/libbladeRF.pc