- 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:
parent
a101b42a50
commit
05ec4b5b22
19
bladeRF-cmake_syntax.patch
Normal file
19
bladeRF-cmake_syntax.patch
Normal 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()
|
@ -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
|
Thu Jun 1 06:47:30 UTC 2017 - mardnh@gmx.de
|
||||||
|
|
||||||
|
12
bladeRF.spec
12
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
|
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
|
# PATCH-FIX-OPENSUSE bladeRF-add-cflag-Wno-format-truncation.patch boo#1041192
|
||||||
Patch0: bladeRF-add-cflag-Wno-format-truncation.patch
|
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: cmake >= 2.8.4
|
||||||
BuildRequires: doxygen
|
BuildRequires: doxygen
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
@ -77,6 +79,7 @@ use of libbladerf.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-%{release_name}
|
%setup -q -n %{name}-%{release_name}
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
|
%patch1 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
cd host
|
cd host
|
||||||
@ -89,8 +92,7 @@ cd host
|
|||||||
-DENABLE_LIBBLADERF_SYSLOG=ON \
|
-DENABLE_LIBBLADERF_SYSLOG=ON \
|
||||||
%endif
|
%endif
|
||||||
-DBUILD_DOCUMENTATION=ON
|
-DBUILD_DOCUMENTATION=ON
|
||||||
|
%make_jobs
|
||||||
make %{?_smp_mflags}
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
cd host
|
cd host
|
||||||
@ -100,7 +102,7 @@ cd host
|
|||||||
%postun -n %{libname} -p /sbin/ldconfig
|
%postun -n %{libname} -p /sbin/ldconfig
|
||||||
|
|
||||||
%pre udev
|
%pre udev
|
||||||
getent group %{bladerf_group} >/dev/null || groupadd -r %{bladerf_group}
|
getent group %{bladerf_group} >/dev/null || groupadd -r %{bladerf_group}
|
||||||
|
|
||||||
%post udev
|
%post udev
|
||||||
%udev_rules_update
|
%udev_rules_update
|
||||||
@ -109,21 +111,17 @@ getent group %{bladerf_group} >/dev/null || groupadd -r %{bladerf_group}
|
|||||||
%udev_rules_update
|
%udev_rules_update
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
|
||||||
%doc README.md COPYING CONTRIBUTORS
|
%doc README.md COPYING CONTRIBUTORS
|
||||||
%{_bindir}/bladeRF-cli
|
%{_bindir}/bladeRF-cli
|
||||||
%{_mandir}/man1/bladeRF-cli.1%{ext_man}
|
%{_mandir}/man1/bladeRF-cli.1%{ext_man}
|
||||||
|
|
||||||
%files udev
|
%files udev
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_udevrulesdir}/88-nuand.rules
|
%{_udevrulesdir}/88-nuand.rules
|
||||||
|
|
||||||
%files -n %{libname}
|
%files -n %{libname}
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_libdir}/libbladeRF.so.*
|
%{_libdir}/libbladeRF.so.*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_libdir}/libbladeRF.so
|
%{_libdir}/libbladeRF.so
|
||||||
%{_includedir}/libbladeRF.h
|
%{_includedir}/libbladeRF.h
|
||||||
%{_libdir}/pkgconfig/libbladeRF.pc
|
%{_libdir}/pkgconfig/libbladeRF.pc
|
||||||
|
Loading…
Reference in New Issue
Block a user