Accepting request 492740 from hardware:sdr
Automatic submission by obs-autosubmit OBS-URL: https://build.opensuse.org/request/show/492740 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bladeRF?expand=0&rev=3
This commit is contained in:
commit
12ff099a62
@ -1,3 +1,31 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Apr 26 18:15:47 UTC 2017 - mardnh@gmx.de
|
||||||
|
|
||||||
|
- build with support for libtecla
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Apr 23 19:27:32 UTC 2017 - mardnh@gmx.de
|
||||||
|
|
||||||
|
- Update group handling
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Apr 20 11:46:42 UTC 2017 - mpluskal@suse.com
|
||||||
|
|
||||||
|
- Update group handling
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Apr 15 22:22:28 UTC 2017 - mardnh@gmx.de
|
||||||
|
|
||||||
|
- Workaround for generating manpages/documentation on
|
||||||
|
systems emulated via qemu (arm, ppc,...) not longer needed
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Apr 15 17:12:59 UTC 2017 - mardnh@gmx.de
|
||||||
|
|
||||||
|
- Adjust Source-URL
|
||||||
|
- Use proper cmake options
|
||||||
|
- Use group bladerf in the udev-rules
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Mar 30 13:35:57 UTC 2017 - wk@ire.pw.edu.pl
|
Thu Mar 30 13:35:57 UTC 2017 - wk@ire.pw.edu.pl
|
||||||
|
|
||||||
|
34
bladeRF.spec
34
bladeRF.spec
@ -20,6 +20,8 @@
|
|||||||
%define sover 1
|
%define sover 1
|
||||||
%define libname lib%{name}%{sover}
|
%define libname lib%{name}%{sover}
|
||||||
%define release_name 2016.06
|
%define release_name 2016.06
|
||||||
|
%define bladerf_group bladerf
|
||||||
|
%define use_syslog 0
|
||||||
Name: bladeRF
|
Name: bladeRF
|
||||||
Version: 1.4.0
|
Version: 1.4.0
|
||||||
Release: 0
|
Release: 0
|
||||||
@ -27,7 +29,8 @@ Summary: SDR radio receiver
|
|||||||
License: GPL-2.0
|
License: GPL-2.0
|
||||||
Group: Productivity/Hamradio/Other
|
Group: Productivity/Hamradio/Other
|
||||||
Url: http://nuand.com/
|
Url: http://nuand.com/
|
||||||
Source: https://github.com/Nuand/bladeRF/archive/%{release_name}.tar.gz
|
#Git-Clone: https://github.com/Nuand/bladeRF.git
|
||||||
|
Source: https://github.com/Nuand/bladeRF/archive/%{release_name}.tar.gz#/%{name}-%{release_name}.tar.xz
|
||||||
BuildRequires: cmake >= 2.8.4
|
BuildRequires: cmake >= 2.8.4
|
||||||
BuildRequires: doxygen
|
BuildRequires: doxygen
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
@ -35,6 +38,7 @@ BuildRequires: gcc-c++
|
|||||||
BuildRequires: git-core
|
BuildRequires: git-core
|
||||||
BuildRequires: help2man
|
BuildRequires: help2man
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
|
BuildRequires: tecla-devel
|
||||||
BuildRequires: pkgconfig(libusb-1.0)
|
BuildRequires: pkgconfig(libusb-1.0)
|
||||||
BuildRequires: pkgconfig(udev)
|
BuildRequires: pkgconfig(udev)
|
||||||
|
|
||||||
@ -54,6 +58,7 @@ Library for bladeRF, SDR transceiver.
|
|||||||
%package udev
|
%package udev
|
||||||
Summary: Udev rules for bladeRF
|
Summary: Udev rules for bladeRF
|
||||||
Group: Hardware/Other
|
Group: Hardware/Other
|
||||||
|
Requires(pre): shadow
|
||||||
|
|
||||||
%description udev
|
%description udev
|
||||||
Udev rules for bladeRF
|
Udev rules for bladeRF
|
||||||
@ -71,26 +76,29 @@ use of libbladerf.
|
|||||||
%setup -q -n %{name}-%{release_name}
|
%setup -q -n %{name}-%{release_name}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
cd host
|
||||||
%cmake \
|
%cmake \
|
||||||
|
-DCMAKE_INSTALL_LIBDIR:PATH=%{_lib} \
|
||||||
|
-DUDEV_RULES_PATH=%{_udevrulesdir} \
|
||||||
|
-DBLADERF_GROUP=%{bladerf_group} \
|
||||||
|
-DBUILD_DOCUMENTATION=YES \
|
||||||
|
%if 0%{?use_syslog}
|
||||||
|
-DENABLE_LIBBLADERF_SYSLOG=ON \
|
||||||
|
%endif
|
||||||
-DBUILD_DOCUMENTATION=ON
|
-DBUILD_DOCUMENTATION=ON
|
||||||
|
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
cd host
|
||||||
%cmake_install
|
%cmake_install
|
||||||
|
|
||||||
# Move libraries to correct location on 64-bit machines
|
|
||||||
%if %__isa_bits == 64
|
|
||||||
mkdir %{buildroot}%{_libdir}
|
|
||||||
mv %{buildroot}%{_prefix}/lib/* %{buildroot}%{_libdir}
|
|
||||||
rm -rf %{buildroot}%{_prefix}/lib
|
|
||||||
%endif
|
|
||||||
|
|
||||||
# Move udev rules to correct location
|
|
||||||
mkdir -p %{buildroot}%{_udevrulesdir}
|
|
||||||
mv %{buildroot}%{_sysconfdir}/udev/rules.d/88-nuand.rules %{buildroot}%{_udevrulesdir}
|
|
||||||
|
|
||||||
%post -n %{libname} -p /sbin/ldconfig
|
%post -n %{libname} -p /sbin/ldconfig
|
||||||
%postun -n %{libname} -p /sbin/ldconfig
|
%postun -n %{libname} -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%pre udev
|
||||||
|
getent group %{bladerf_group} >/dev/null || groupadd -r %{bladerf_group}
|
||||||
|
|
||||||
%post udev
|
%post udev
|
||||||
%udev_rules_update
|
%udev_rules_update
|
||||||
|
|
||||||
@ -105,7 +113,7 @@ mv %{buildroot}%{_sysconfdir}/udev/rules.d/88-nuand.rules %{buildroot}%{_udevrul
|
|||||||
|
|
||||||
%files udev
|
%files udev
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_prefix}/lib/udev/rules.d/88-nuand.rules
|
%{_udevrulesdir}/88-nuand.rules
|
||||||
|
|
||||||
%files -n %{libname}
|
%files -n %{libname}
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
Loading…
Reference in New Issue
Block a user