- 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:
Martin Pluskal 2017-03-09 09:10:43 +00:00 committed by Git OBS Bridge
parent e593bd38a5
commit d1e0c18776
5 changed files with 58 additions and 96 deletions

3
2016.06.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6e6333fd0f17e85f968a6180942f889705c4f2ac16507b2f86c80630c55032e8
size 1654784

View File

@ -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>

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9e15911ab39ba1eb4aa1bcbf518a0eac5396207fc4a58c32b2550fe0a65f9d22
size 1418766

View File

@ -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

View File

@ -1,6 +1,7 @@
#
# spec file for package bladeRF
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2013-2015 Wojciech Kazubski, wk@ire.pw.edu.pl
#
# 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
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
#norootforbuild
%define soname 1
%define release_name 2015.07
%define libname lib%{name}%{soname}
%define release_name 2016.06
Name: bladeRF
Version: 1.2.1
Release: 3.1
Version: 1.4.0
Release: 0
Summary: SDR radio receiver
License: GPL-2.0
%if 0%{?suse_version}
Group: Productivity/Hamradio/Other
%endif
%if 0%{?fedora}
Group: Applications/Engineering
%endif
Url: http://nuand.com/
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: gcc-c++
BuildRequires: git-core
BuildRequires: help2man
BuildRequires: pandoc
%endif
%endif
BuildRequires: pkgconfig
BuildRequires: pkgconfig(libusb-1.0)
BuildRequires: pkgconfig(udev)
%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
The software for bladeRF USB 3.0 Superspeed Software Defined Radio.
%package -n %{libname}
Version: 1.4.3
Summary: Library for bladeRF
Group: Hardware/Other
Requires: udev
Requires: %{name}-udev
%description -n %{libname}
Library for bladeRF, SDR transceiver.
%package udev
Summary: Udev rules for bladeRF
Group: Hardware/Other
%package -n %{libname}-devel
Version: 1.4.3
%description udev
Udev rules for bladeRF
%package devel
Summary: Development files for libbladeRF
Group: Development/Libraries/Other
Requires: %{libname} = %{version}-%{release}
Obsoletes: %{name}-devel
Requires: %{libname} = %{version}
%description -n %{libname}-devel
%description 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}
%cmake \
-DBUILD_DOCUMENTATION=ON
make %{?_smp_mflags}
%install
cd host/build
make DESTDIR=%{buildroot} install
%cmake_install
#move udev rules
%if 0%{?suse_version} >= 1310 || 0%{?fedora} >= 19
# 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}
%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
%post udev
%udev_rules_update
%postun udev
%udev_rules_update
%files
%defattr(-,root,root)
%{_bindir}/bladeRF-*
%if 0%{?suse_version}
%{_mandir}/man1/bladeRF-cli.1.gz
%endif
%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}
%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
%files devel
%defattr(-,root,root)
%{_libdir}/libbladeRF.so
%{_includedir}/libbladeRF.h
%{_libdir}/pkgconfig/libbladeRF.pc
%changelog