2017-04-30 02:20:37 +02:00
|
|
|
#
|
|
|
|
# spec file for package osmo-iuh
|
|
|
|
#
|
2019-02-21 21:17:49 +01:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2017-04-30 02:20:37 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-12-11 14:47:53 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-04-30 02:20:37 +02:00
|
|
|
#
|
|
|
|
|
2018-03-22 20:27:11 +01:00
|
|
|
|
2017-04-30 02:20:37 +02:00
|
|
|
Name: osmo-iuh
|
2018-12-11 14:47:53 +01:00
|
|
|
%define lname libosmo-ranap2
|
2019-02-21 21:17:49 +01:00
|
|
|
Version: 0.4.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)
|
2018-03-22 20:27:11 +01:00
|
|
|
License: AGPL-3.0-or-later AND GPL-2.0-or-later
|
2017-04-30 02:20:37 +02:00
|
|
|
Group: Hardware/Mobile
|
2018-03-22 20:27:11 +01:00
|
|
|
Url: https://osmocom.org/projects/osmohnbgw/wiki
|
2018-01-02 00:18:08 +01:00
|
|
|
Source: %name-%version.tar.xz
|
2018-01-02 01:45:55 +01:00
|
|
|
Patch3: 0001-iu_client-uses-gprs_msgb.h.patch
|
2017-04-30 02:20:37 +02:00
|
|
|
BuildRequires: automake >= 1.9
|
|
|
|
BuildRequires: libtool >= 2
|
|
|
|
BuildRequires: lksctp-tools-devel
|
2018-01-02 00:18:08 +01:00
|
|
|
BuildRequires: pkg-config >= 0.20
|
2018-01-01 23:01:46 +01:00
|
|
|
# python2 for asn1tostruct.py
|
|
|
|
BuildRequires: python2
|
2017-04-30 02:20:37 +02:00
|
|
|
BuildRequires: xz
|
2018-12-11 14:47:53 +01:00
|
|
|
BuildRequires: pkgconfig(libasn1c) >= 0.9.30
|
|
|
|
BuildRequires: pkgconfig(libosmo-netif) >= 0.2.0
|
|
|
|
BuildRequires: pkgconfig(libosmo-sigtran) >= 0.9.0
|
|
|
|
BuildRequires: pkgconfig(libosmocore) >= 0.11.0
|
|
|
|
BuildRequires: pkgconfig(libosmoctrl) >= 0.11.0
|
2018-01-02 01:45:55 +01:00
|
|
|
BuildRequires: pkgconfig(libosmogb)
|
2018-12-11 14:47:53 +01:00
|
|
|
BuildRequires: pkgconfig(libosmogsm) >= 0.11.0
|
|
|
|
BuildRequires: pkgconfig(libosmovty) >= 0.11.0
|
2017-04-30 02:20:37 +02:00
|
|
|
|
|
|
|
%description
|
2018-01-01 23:01:46 +01:00
|
|
|
Osmocom code for the Iuh interface (HNBAP, RUA, RANAP)
|
|
|
|
|
2018-12-11 14:47:53 +01:00
|
|
|
%package -n %lname
|
2018-01-01 23:01:46 +01:00
|
|
|
Summary: Shared Library part of libosmo-ranap
|
|
|
|
Group: System/Libraries
|
|
|
|
|
2018-12-11 14:47:53 +01:00
|
|
|
%description -n %lname
|
2018-01-01 23:01:46 +01:00
|
|
|
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++
|
2018-12-11 14:47:53 +01:00
|
|
|
Requires: %lname = %version
|
2018-01-01 23:01:46 +01:00
|
|
|
|
|
|
|
%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
|
2018-12-11 14:47:53 +01:00
|
|
|
%autosetup -p1
|
2017-04-30 02:20:37 +02:00
|
|
|
|
|
|
|
%build
|
2019-02-21 21:17:49 +01:00
|
|
|
echo "%{version}" >.tarball-version
|
2017-04-30 02:20:37 +02:00
|
|
|
autoreconf -fi
|
2019-02-21 21:17:49 +01:00
|
|
|
%configure \
|
|
|
|
--disable-static \
|
|
|
|
--docdir="%_docdir/%name" \
|
|
|
|
--with-systemdsystemunitdir=%{_unitdir}
|
2017-04-30 02:20:37 +02:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
2018-01-02 00:18:08 +01:00
|
|
|
find "%buildroot" -type f -name "*.la" -delete -print
|
2019-02-21 21:17:49 +01:00
|
|
|
install -d %{buildroot}/%{_sbindir}
|
|
|
|
ln -s %{_sbindir}/service %{buildroot}/%{_sbindir}/rcosmo-hnbgw
|
2017-04-30 02:20:37 +02:00
|
|
|
|
|
|
|
%check
|
2018-03-22 20:27:11 +01:00
|
|
|
if ! make %{?_smp_mflags} check; then
|
|
|
|
find . -type f -name testsuite.log -exec cat "{}" "+"
|
2018-01-05 21:45:53 +01:00
|
|
|
%ifnarch ppc ppc64
|
2018-03-22 20:27:11 +01:00
|
|
|
exit 1
|
2018-01-05 21:45:53 +01:00
|
|
|
%endif
|
2018-03-22 20:27:11 +01:00
|
|
|
fi
|
2017-04-30 02:20:37 +02:00
|
|
|
|
2018-12-11 14:47:53 +01:00
|
|
|
%post -n %lname -p /sbin/ldconfig
|
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
2019-02-21 21:17:49 +01:00
|
|
|
%pre
|
|
|
|
%service_add_pre osmo-hnbgw.service
|
|
|
|
%post
|
|
|
|
%service_add_post osmo-hnbgw.service
|
|
|
|
%preun
|
|
|
|
%service_del_preun osmo-hnbgw.service
|
|
|
|
%postun
|
|
|
|
%service_del_postun osmo-hnbgw.service
|
2018-01-01 23:01:46 +01:00
|
|
|
|
2017-04-30 02:20:37 +02:00
|
|
|
%files
|
2019-02-21 21:17:49 +01:00
|
|
|
%license COPYING
|
|
|
|
%doc README.md
|
|
|
|
%dir %_sysconfdir/osmocom
|
|
|
|
%config %_sysconfdir/osmocom/osmo-hnbgw.cfg
|
2018-01-02 00:18:08 +01:00
|
|
|
%dir %_docdir/%name/examples
|
|
|
|
%_docdir/%name/examples/osmo-hnbgw.cfg
|
|
|
|
%_bindir/osmo-hnbgw
|
2019-02-21 21:17:49 +01:00
|
|
|
%_unitdir/osmo-hnbgw.service
|
|
|
|
%_sbindir/rcosmo-hnbgw
|
2018-01-01 23:01:46 +01:00
|
|
|
|
2018-12-11 14:47:53 +01:00
|
|
|
%files -n %lname
|
|
|
|
%_libdir/libosmo-ranap.so.2*
|
2018-01-01 23:01:46 +01:00
|
|
|
|
|
|
|
%files -n libosmo-ranap-devel
|
2018-01-02 00:18:08 +01:00
|
|
|
%_includedir/*
|
|
|
|
%_libdir/libosmo-ranap.so
|
|
|
|
%_libdir/pkgconfig/*.pc
|
2018-01-01 23:01:46 +01:00
|
|
|
|
|
|
|
%changelog
|