commit e593bd38a5cfc871d0dab0f4b59d6a824fcf2ec068094ced58f2f5c65968c4dd Author: Martin Pluskal Date: Wed Mar 8 15:48:02 2017 +0000 osc copypac from project:hardware:sdr package:bladerf revision:1 OBS-URL: https://build.opensuse.org/package/show/hardware:sdr/bladeRF?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..0d70311 --- /dev/null +++ b/_service @@ -0,0 +1,7 @@ + + + github.com + https + /Nuand/bladeRF/archive/2015.07.tar.gz + + \ No newline at end of file diff --git a/_service:download_url:2015.07.tar.gz b/_service:download_url:2015.07.tar.gz new file mode 100644 index 0000000..a3f2aef --- /dev/null +++ b/_service:download_url:2015.07.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9e15911ab39ba1eb4aa1bcbf518a0eac5396207fc4a58c32b2550fe0a65f9d22 +size 1418766 diff --git a/bladeRF.changes b/bladeRF.changes new file mode 100644 index 0000000..c77a953 --- /dev/null +++ b/bladeRF.changes @@ -0,0 +1,37 @@ +------------------------------------------------------------------- +Fri Feb 19 12:20:13 UTC 2016 - dl8fcl@t-online.de + +- udev_rules_update added for openSUSE + +------------------------------------------------------------------- +Sat Aug 1 22:29:59 UTC 2015 - wk@ire.pw.edu.pl + +- updated to release 2015.07 +- libbladeRF version 1.4.3 +- bladeRF-cli version 1.2.1 + +------------------------------------------------------------------- +Tue Mar 3 10:33:18 UTC 2015 - wk@ire.pw.edu.pl + +- fixed build on armv7l (openSUSE 13.2) + +------------------------------------------------------------------- +Sun Mar 1 19:02:15 UTC 2015 - wk@ire.pw.edu.pl + +- updated to release 2015.02 +- libbladeRF version 1.2.1 +- bladeRF-cli version 1.1.2 + +------------------------------------------------------------------- +Sun Aug 3 20:52:44 UTC 2014 - wk@ire.pw.edu.pl + +- updated to git 20140803 + +------------------------------------------------------------------- +Fri Jul 25 20:24:30 UTC 2014 - wk@ire.pw.edu.pl + +- version 0.16.2 git20140725 + +* Sun Oct 6 2013 Wojciech Kazubski - 0.0.20130915-1.1 +- git 20130915 +- initial spec file. diff --git a/bladeRF.spec b/bladeRF.spec new file mode 100644 index 0000000..bb8e7b9 --- /dev/null +++ b/bladeRF.spec @@ -0,0 +1,157 @@ +# +# spec file for package bladeRF +# +# Copyright (c) 2013-2015 Wojciech Kazubski, wk@ire.pw.edu.pl +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. +# +#norootforbuild + +%define soname 1 +%define release_name 2015.07 + +Name: bladeRF +Version: 1.2.1 +Release: 3.1 +Summary: SDR radio receiver +License: GPL-2.0 +%if 0%{?suse_version} +Group: Productivity/Hamradio/Other +%endif +%if 0%{?fedora} +Group: Applications/Engineering +%endif +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: 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 +%endif +%endif +%if 0%{?fedora} +BuildRequires: libusb1-devel +%endif +%ifarch != armv7l +%if 0%{?suse_version} == 1320 || 0%{?fedora} >= 20 +BuildRequires: pandoc +%endif +%endif + +%description +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} +Version: 1.4.3 +Summary: Library for bladeRF +Group: Hardware/Other +Requires: udev + +%description -n %{libname} +Library for bladeRF, SDR transceiver. + + +%package -n %{libname}-devel +Version: 1.4.3 +Summary: Development files for libbladeRF +Group: Development/Libraries/Other +Requires: %{libname} = %{version}-%{release} +Obsoletes: %{name}-devel + +%description -n %{libname}-devel +Libraries and header files for developing applications that want to make +use of libbladerf. + + +%prep +%setup -q -n %{name}-%{release_name} + + +%build +cd host +mkdir build +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} + + +%install +cd host/build +make DESTDIR=%{buildroot} install + +#move udev rules +%if 0%{?suse_version} >= 1310 || 0%{?fedora} >= 19 +mkdir -p %{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 +%postun -n %{libname} -p /sbin/ldconfig +%endif + +%files +%defattr(-,root,root) +%{_bindir}/bladeRF-* +%if 0%{?suse_version} +%{_mandir}/man1/bladeRF-cli.1.gz +%endif +%doc README.md COPYING CONTRIBUTORS + +%files -n %{libname} +%defattr(-,root,root) +%{_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 +%defattr(-,root,root) +%{_libdir}/libbladeRF.so +%{_includedir}/libbladeRF.h +%{_libdir}/pkgconfig/libbladeRF.pc + + +%changelog