2017-04-30 02:20:37 +02:00
|
|
|
#
|
|
|
|
# spec file for package osmo-iuh
|
|
|
|
#
|
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
Name: osmo-iuh
|
2018-01-01 23:01:46 +01:00
|
|
|
Version: 0.2.0
|
2017-04-30 02:20:37 +02:00
|
|
|
Release: 0
|
2018-01-01 23:01:46 +01:00
|
|
|
Summary: Osmocom code for the Iuh interface (HNBAP, RUA, RANAP)
|
|
|
|
License: AGPL-3.0+ AND GPL-2.0+
|
2017-04-30 02:20:37 +02:00
|
|
|
Group: Hardware/Mobile
|
2018-01-01 23:01:46 +01:00
|
|
|
URL: https://osmocom.org/projects/osmohnbgw/wiki
|
|
|
|
Source: %{name}-%{version}.tar.xz
|
|
|
|
Patch0: 0001-fix-compiler-warning-implicit-function-declaration-i.patch
|
2017-04-30 02:20:37 +02:00
|
|
|
BuildRequires: automake >= 1.9
|
|
|
|
BuildRequires: libtool >= 2
|
|
|
|
BuildRequires: lksctp-tools-devel
|
2018-01-01 23:01:46 +01:00
|
|
|
BuildRequires: pkgconfig
|
|
|
|
# python2 for asn1tostruct.py
|
|
|
|
BuildRequires: python2
|
2017-04-30 02:20:37 +02:00
|
|
|
BuildRequires: xz
|
2018-01-01 23:01:46 +01:00
|
|
|
BuildRequires: pkgconfig(libasn1c)
|
|
|
|
BuildRequires: pkgconfig(libosmo-netif)
|
|
|
|
BuildRequires: pkgconfig(libosmo-sigtran)
|
2017-04-30 02:20:37 +02:00
|
|
|
BuildRequires: pkgconfig(libosmocore)
|
2018-01-01 23:01:46 +01:00
|
|
|
BuildRequires: pkgconfig(libosmogb)
|
2017-04-30 02:20:37 +02:00
|
|
|
BuildRequires: pkgconfig(libosmogsm)
|
|
|
|
BuildRequires: pkgconfig(libosmovty)
|
|
|
|
|
|
|
|
%description
|
2018-01-01 23:01:46 +01:00
|
|
|
Osmocom code for the Iuh interface (HNBAP, RUA, RANAP)
|
|
|
|
|
|
|
|
%package -n libosmo-ranap1
|
|
|
|
Summary: Shared Library part of libosmo-ranap
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n libosmo-ranap1
|
|
|
|
Osmocom code for the Iuh interface (HNBAP, RUA, RANAP)
|
|
|
|
|
|
|
|
%package -n libosmo-ranap-devel
|
|
|
|
Summary: Development files for Osmocom RANAP library
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: libosmo-ranap1 = %{version}
|
|
|
|
|
|
|
|
%description -n libosmo-ranap-devel
|
|
|
|
Osmocom code for the Iuh interface (HNBAP, RUA, RANAP)
|
|
|
|
|
|
|
|
This subpackage contains libraries and header files for developing
|
|
|
|
applications that want to make use of libosmoranap.
|
2017-04-30 02:20:37 +02:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2018-01-01 23:01:46 +01:00
|
|
|
%patch0 -p1
|
2017-04-30 02:20:37 +02:00
|
|
|
|
|
|
|
%build
|
2018-01-01 23:01:46 +01:00
|
|
|
echo "%{version}" >.tarball-version
|
2017-04-30 02:20:37 +02:00
|
|
|
autoreconf -fi
|
2018-01-01 23:01:46 +01:00
|
|
|
# FIXME: set CFLAGS for workaround lots of rpm post-build-check errors: "no-return-in-nonvoid-function"
|
|
|
|
export CFLAGS="%{optflags} -Wno-return-type"
|
|
|
|
%configure \
|
|
|
|
--disable-static \
|
|
|
|
--docdir=%{_docdir}/%{name}
|
2017-04-30 02:20:37 +02:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
2018-01-01 23:01:46 +01:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2017-04-30 02:20:37 +02:00
|
|
|
|
|
|
|
%check
|
|
|
|
make %{?_smp_mflags} check
|
|
|
|
|
2018-01-01 23:01:46 +01:00
|
|
|
%post -n libosmo-ranap1 -p /sbin/ldconfig
|
|
|
|
%postun -n libosmo-ranap1 -p /sbin/ldconfig
|
|
|
|
|
2017-04-30 02:20:37 +02:00
|
|
|
%files
|
2018-01-01 23:01:46 +01:00
|
|
|
%doc COPYING README.md
|
|
|
|
%dir %{_docdir}/%{name}/examples
|
|
|
|
%{_docdir}/%{name}/examples/osmo-hnbgw.cfg
|
|
|
|
%{_bindir}/osmo-hnbgw
|
|
|
|
|
|
|
|
%files -n libosmo-ranap1
|
|
|
|
%{_libdir}/libosmo-ranap.so.1*
|
|
|
|
|
|
|
|
%files -n libosmo-ranap-devel
|
|
|
|
%dir %{_includedir}/osmocom
|
|
|
|
%dir %{_includedir}/osmocom/ranap
|
|
|
|
%{_includedir}/osmocom/ranap/RANAP_*.h
|
|
|
|
%{_includedir}/osmocom/ranap/ranap_*.h
|
|
|
|
%{_includedir}/osmocom/ranap/iu_helpers.h
|
|
|
|
%{_includedir}/osmocom/ranap/iu_client.h
|
|
|
|
%{_libdir}/libosmo-ranap.so
|
|
|
|
%{_libdir}/pkgconfig/libosmo-ranap.pc
|
|
|
|
|
|
|
|
%changelog
|