File srsLTE.spec of Package srsLTE
#
# spec file for package srsLTE
#
# Copyright (c) 2017, Martin Hauke <mardnh@gmx.de>
#
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
### Conditional build options, enable SIMD optimazation with "--without xxx"
# --without disable_avx
# --without disable_avx2
# --without disable_fma
###
%define realver 19_06
%bcond_without disable_avx
%bcond_without disable_avx2
%bcond_without disable_fma
Name: srsLTE
Version: 19.06
Release: 0
Summary: Open source 3GPP LTE library
# libraries are using GPL2.0 and LGPL-2.0 - see file COPYRIGHT
License: AGPL-3.0-only
Group: Productivity/Hamradio/Other
URL: https://github.com/srsLTE/srsLTE
#Git-Clone: https://github.com/srsLTE/srsLTE.git
Source: https://github.com/srsLTE/srsLTE/archive/release_%{realver}.tar.gz#/%{name}-%{version}.tar.gz
#
%if 0%{?suse_version} > 1325
BuildRequires: libboost_program_options-devel
BuildRequires: libboost_system-devel
%else
BuildRequires: boost-devel
%endif
BuildRequires: chrpath
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: lksctp-tools-devel
BuildRequires: mbedtls-devel
BuildRequires: pkgconfig
BuildRequires: srsgui-devel
BuildRequires: pkgconfig(SoapySDR)
BuildRequires: pkgconfig(fftw3f)
BuildRequires: pkgconfig(libbladeRF)
BuildRequires: pkgconfig(libconfig++)
BuildRequires: pkgconfig(libzmq)
BuildRequires: pkgconfig(libpcsclite)
BuildRequires: pkgconfig(uhd)
BuildRequires: pkgconfig(volk)
ExclusiveArch: %{ix86} x86_64
%description
srsLTE is a free and open-source LTE software suite.
It includes:
* srsUE - a complete SDR LTE UE application featuring all layers
from PHY to IP
* srsENB - a complete SDR LTE eNodeB application
* srsEPC - a light-weight LTE core network implementation with MME,
HSS and S/P-GW
* a highly modular set of common libraries for PHY, MAC, RLC, PDCP,
RRC, NAS, S1AP and GW layers.
The libraries are highly modular with minimum inter-module or external
dependencies.
%package devel
Summary: Development files for the library
Group: Development/Libraries/C and C++
%description devel
This subpackage contains libraries and header files for developing
applications that want to make use of libsrslte.
%prep
%setup -q -n %{name}-release_%{realver}
%build
%cmake \
-DCMAKE_INSTALL_LIBDIR:PATH=%{_lib} \
%if 0%{with disable_avx}
-DENABLE_AVX=OFF \
%endif
%if 0%{with disable_avx2}
-DENABLE_AVX2=OFF \
%endif
%if 0%{with disable_fma}
-DENABLE_FMA=OFF \
%endif
-DENABLE_SRSUE=ON \
-DENABLE_SRSENB=ON \
-DENABLE_VOLK=ON \
-DENABLE_GUI=ON \
-DENABLE_BLADERF=ON
make VERBOSE=1 %{?_smp_mflags}
%install
%cmake_install
install -d %{buildroot}/%{_sysconfdir}/%{name}
## install examples
# FIXME: should be in an other path
mkdir -p "%{buildroot}%{_libdir}/srslte"
for f in $(find build/lib/examples/ -type f -executable); do
chrpath -d "$f"
install -Dpm0755 "$f" "%{buildroot}%{_libdir}/srslte/"
done
%files
%license LICENSE COPYRIGHT
%doc README.md
#
%{_datadir}/srslte
#
%{_sysconfdir}/%{name}
#
%{_bindir}/srsenb
%{_bindir}/srsepc
%{_bindir}/srsue
%{_bindir}/srsmbms
%{_bindir}/srsepc_if_masq.sh
%{_bindir}/srslte_install_configs.sh
#
%{_libdir}/libsrslte_rf.so
#
# examples
%dir %{_libdir}/srslte/
%{_libdir}/srslte/cell_search
%{_libdir}/srslte/pdsch_enodeb
%{_libdir}/srslte/pdsch_ue
%{_libdir}/srslte/synch_file
%{_libdir}/srslte/usrp_capture
%{_libdir}/srslte/usrp_capture_sync
%{_libdir}/srslte/usrp_txrx
%files devel
%{_includedir}/srslte/
%{_libdir}/librrc_asn1.a
%{_libdir}/libsrsenb_mac.a
%{_libdir}/libsrsenb_phy.a
%{_libdir}/libsrsenb_radio.a
%{_libdir}/libsrsenb_rrc.a
%{_libdir}/libsrsenb_stack.a
%{_libdir}/libsrsenb_upper.a
%{_libdir}/libsrsepc_hss.a
%{_libdir}/libsrsepc_mme.a
%{_libdir}/libsrsepc_sgw.a
%{_libdir}/libsrslte_asn1.a
%{_libdir}/libsrslte_common.a
%{_libdir}/libsrslte_phy.a
%{_libdir}/libsrslte_radio.a
%{_libdir}/libsrslte_upper.a
%{_libdir}/libsrsue_mac.a
%{_libdir}/libsrsue_phy.a
%{_libdir}/libsrsue_rrc.a
%{_libdir}/libsrsue_stack.a
%{_libdir}/libsrsue_upper.a
%{_libdir}/libsrsepc_mbms_gw.a
%changelog