diff --git a/bladeRF-cmake_syntax.patch b/bladeRF-cmake_syntax.patch new file mode 100644 index 0000000..ec3cd3a --- /dev/null +++ b/bladeRF-cmake_syntax.patch @@ -0,0 +1,19 @@ +From 037e2886f2bfee42af99d77581d3cf9a23c64227 Mon Sep 17 00:00:00 2001 +From: Rey Tucker +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() diff --git a/bladeRF.changes b/bladeRF.changes index 90b5e09..4a824c4 100644 --- a/bladeRF.changes +++ b/bladeRF.changes @@ -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 diff --git a/bladeRF.spec b/bladeRF.spec index eaa5817..2fa2e9d 100644 --- a/bladeRF.spec +++ b/bladeRF.spec @@ -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 @@ -100,7 +102,7 @@ cd host %postun -n %{libname} -p /sbin/ldconfig %pre udev -getent group %{bladerf_group} >/dev/null || groupadd -r %{bladerf_group} +getent group %{bladerf_group} >/dev/null || groupadd -r %{bladerf_group} %post udev %udev_rules_update @@ -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