forked from pool/bladeRF
- Update to version 1.4.0
- Cleanup spec file with spec-cleaner OBS-URL: https://build.opensuse.org/package/show/hardware:sdr/bladeRF?expand=0&rev=2
This commit is contained in:
committed by
Git OBS Bridge
parent
e593bd38a5
commit
d1e0c18776
3
2016.06.tar.gz
Normal file
3
2016.06.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:6e6333fd0f17e85f968a6180942f889705c4f2ac16507b2f86c80630c55032e8
|
||||||
|
size 1654784
|
7
_service
7
_service
@@ -1,7 +0,0 @@
|
|||||||
<services>
|
|
||||||
<service name="download_url">
|
|
||||||
<param name="host">github.com</param>
|
|
||||||
<param name="protocol">https</param>
|
|
||||||
<param name="path">/Nuand/bladeRF/archive/2015.07.tar.gz</param>
|
|
||||||
</service>
|
|
||||||
</services>
|
|
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:9e15911ab39ba1eb4aa1bcbf518a0eac5396207fc4a58c32b2550fe0a65f9d22
|
|
||||||
size 1418766
|
|
@@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Mar 9 09:10:30 UTC 2017 - mpluskal@suse.com
|
||||||
|
|
||||||
|
- Update to version 1.4.0
|
||||||
|
- Cleanup spec file with spec-cleaner
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Feb 19 12:20:13 UTC 2016 - dl8fcl@t-online.de
|
Fri Feb 19 12:20:13 UTC 2016 - dl8fcl@t-online.de
|
||||||
|
|
||||||
|
135
bladeRF.spec
135
bladeRF.spec
@@ -1,6 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package bladeRF
|
# spec file for package bladeRF
|
||||||
#
|
#
|
||||||
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
# Copyright (c) 2013-2015 Wojciech Kazubski, wk@ire.pw.edu.pl
|
# Copyright (c) 2013-2015 Wojciech Kazubski, wk@ire.pw.edu.pl
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
@@ -11,147 +12,109 @@
|
|||||||
# case the license is the MIT License). An "Open Source License" is a
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
#norootforbuild
|
|
||||||
|
|
||||||
%define soname 1
|
%define soname 1
|
||||||
%define release_name 2015.07
|
%define libname lib%{name}%{soname}
|
||||||
|
%define release_name 2016.06
|
||||||
Name: bladeRF
|
Name: bladeRF
|
||||||
Version: 1.2.1
|
Version: 1.4.0
|
||||||
Release: 3.1
|
Release: 0
|
||||||
Summary: SDR radio receiver
|
Summary: SDR radio receiver
|
||||||
License: GPL-2.0
|
License: GPL-2.0
|
||||||
%if 0%{?suse_version}
|
|
||||||
Group: Productivity/Hamradio/Other
|
Group: Productivity/Hamradio/Other
|
||||||
%endif
|
Url: http://nuand.com/
|
||||||
%if 0%{?fedora}
|
|
||||||
Group: Applications/Engineering
|
|
||||||
%endif
|
|
||||||
Source: https://github.com/Nuand/bladeRF/archive/%{release_name}.tar.gz
|
Source: https://github.com/Nuand/bladeRF/archive/%{release_name}.tar.gz
|
||||||
URL: http://nuand.com/
|
|
||||||
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
|
||||||
BuildRequires: cmake >= 2.8.4
|
BuildRequires: cmake >= 2.8.4
|
||||||
BuildRequires: doxygen
|
BuildRequires: doxygen
|
||||||
BuildRequires: gcc-c++
|
|
||||||
BuildRequires: pkg-config
|
|
||||||
BuildRequires: udev
|
|
||||||
%if 0%{?suse_version}
|
|
||||||
BuildRequires: libusb-1_0-devel
|
|
||||||
#BuildRequires: libtecla-devel
|
|
||||||
BuildRequires: help2man
|
|
||||||
%if 0%{?suse_version} > 1010
|
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
%endif
|
BuildRequires: gcc-c++
|
||||||
%endif
|
BuildRequires: git-core
|
||||||
%if 0%{?fedora}
|
BuildRequires: help2man
|
||||||
BuildRequires: libusb1-devel
|
|
||||||
%endif
|
|
||||||
%ifarch != armv7l
|
|
||||||
%if 0%{?suse_version} == 1320 || 0%{?fedora} >= 20
|
|
||||||
BuildRequires: pandoc
|
BuildRequires: pandoc
|
||||||
%endif
|
BuildRequires: pkgconfig
|
||||||
%endif
|
BuildRequires: pkgconfig(libusb-1.0)
|
||||||
|
BuildRequires: pkgconfig(udev)
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The software for bladeRF USB 3.0 Superspeed Software Defined Radio
|
The software for bladeRF USB 3.0 Superspeed Software Defined Radio.
|
||||||
|
|
||||||
|
|
||||||
%if 0%{?suse_version}
|
|
||||||
%define libname libbladeRF%{soname}
|
|
||||||
%else
|
|
||||||
%define libname libbladeRF
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%package -n %{libname}
|
%package -n %{libname}
|
||||||
Version: 1.4.3
|
Version: 1.4.3
|
||||||
Summary: Library for bladeRF
|
Summary: Library for bladeRF
|
||||||
Group: Hardware/Other
|
Group: Hardware/Other
|
||||||
Requires: udev
|
Requires: %{name}-udev
|
||||||
|
|
||||||
%description -n %{libname}
|
%description -n %{libname}
|
||||||
Library for bladeRF, SDR transceiver.
|
Library for bladeRF, SDR transceiver.
|
||||||
|
|
||||||
|
%package udev
|
||||||
|
Summary: Udev rules for bladeRF
|
||||||
|
Group: Hardware/Other
|
||||||
|
|
||||||
%package -n %{libname}-devel
|
%description udev
|
||||||
Version: 1.4.3
|
Udev rules for bladeRF
|
||||||
|
|
||||||
|
%package devel
|
||||||
Summary: Development files for libbladeRF
|
Summary: Development files for libbladeRF
|
||||||
Group: Development/Libraries/Other
|
Group: Development/Libraries/Other
|
||||||
Requires: %{libname} = %{version}-%{release}
|
Requires: %{libname} = %{version}
|
||||||
Obsoletes: %{name}-devel
|
|
||||||
|
|
||||||
%description -n %{libname}-devel
|
%description devel
|
||||||
Libraries and header files for developing applications that want to make
|
Libraries and header files for developing applications that want to make
|
||||||
use of libbladerf.
|
use of libbladerf.
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-%{release_name}
|
%setup -q -n %{name}-%{release_name}
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
cd host
|
%cmake \
|
||||||
mkdir build
|
-DBUILD_DOCUMENTATION=ON
|
||||||
cd build
|
|
||||||
cmake .. \
|
|
||||||
%ifarch x86_64
|
|
||||||
-DLIB_SUFFIX=64 \
|
|
||||||
%endif
|
|
||||||
%if 0%{?suse_version}
|
|
||||||
-DBUILD_DOCUMENTATION=ON \
|
|
||||||
%endif
|
|
||||||
-DCMAKE_INSTALL_PREFIX=%{_prefix}
|
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
cd host/build
|
%cmake_install
|
||||||
make DESTDIR=%{buildroot} install
|
|
||||||
|
|
||||||
#move udev rules
|
# Move libraries to correct location on 64-bit machines
|
||||||
%if 0%{?suse_version} >= 1310 || 0%{?fedora} >= 19
|
%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}
|
mkdir -p %{buildroot}%{_udevrulesdir}
|
||||||
mv %{buildroot}%{_sysconfdir}/udev/rules.d/88-nuand.rules %{buildroot}%{_udevrulesdir}
|
mv %{buildroot}%{_sysconfdir}/udev/rules.d/88-nuand.rules %{buildroot}%{_udevrulesdir}
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf %{buildroot}
|
|
||||||
|
|
||||||
%if 0%{?suse_version}
|
|
||||||
%post -n %{libname}
|
|
||||||
/sbin/ldconfig
|
|
||||||
%udev_rules_update
|
|
||||||
%postun -n %{libname}
|
|
||||||
/sbin/ldconfig
|
|
||||||
%udev_rules_update
|
|
||||||
%else
|
|
||||||
%post -n %{libname} -p /sbin/ldconfig
|
%post -n %{libname} -p /sbin/ldconfig
|
||||||
%postun -n %{libname} -p /sbin/ldconfig
|
%postun -n %{libname} -p /sbin/ldconfig
|
||||||
%endif
|
%post udev
|
||||||
|
%udev_rules_update
|
||||||
|
|
||||||
|
%postun udev
|
||||||
|
%udev_rules_update
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_bindir}/bladeRF-*
|
|
||||||
%if 0%{?suse_version}
|
|
||||||
%{_mandir}/man1/bladeRF-cli.1.gz
|
|
||||||
%endif
|
|
||||||
%doc README.md COPYING CONTRIBUTORS
|
%doc README.md COPYING CONTRIBUTORS
|
||||||
|
%{_bindir}/bladeRF-cli
|
||||||
|
%{_mandir}/man1/bladeRF-cli.1%{ext_man}
|
||||||
|
|
||||||
|
%files udev
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{_prefix}/lib/udev/rules.d/88-nuand.rules
|
||||||
|
|
||||||
%files -n %{libname}
|
%files -n %{libname}
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_libdir}/libbladeRF.so.*
|
%{_libdir}/libbladeRF.so.*
|
||||||
%if 0%{?suse_version} >= 1310 || 0%{?fedora} >= 19
|
|
||||||
%{_udevrulesdir}/88-nuand.rules
|
|
||||||
%else
|
|
||||||
%config(noreplace) %{_sysconfdir}/udev/rules.d/88-nuand.rules
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%files -n %{libname}-devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_libdir}/libbladeRF.so
|
%{_libdir}/libbladeRF.so
|
||||||
%{_includedir}/libbladeRF.h
|
%{_includedir}/libbladeRF.h
|
||||||
%{_libdir}/pkgconfig/libbladeRF.pc
|
%{_libdir}/pkgconfig/libbladeRF.pc
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user