forked from pool/libosmo-sccp
libosmo-sigtran 2.1.0
This commit is contained in:
parent
e373731e7d
commit
a1f85bdc6e
@ -5,25 +5,34 @@ Subject: [PATCH] build: fixes
|
|||||||
|
|
||||||
Find and use system talloc, do not rely on OSMO's bundled copy.
|
Find and use system talloc, do not rely on OSMO's bundled copy.
|
||||||
|
|
||||||
Avoid adding .o files into _LDADD, this is nonportable.
|
Fix this link error too:
|
||||||
|
|
||||||
|
[ 12s] libtool: link: gcc -Wall -I/usr/include/libosmo-netif/
|
||||||
|
-I/usr/include/libosmocore/ -I/usr/include/libmnl -I/usr/include/libosmocore/
|
||||||
|
-I/usr/include/libmnl -O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3
|
||||||
|
-fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables
|
||||||
|
-fstack-clash-protection -Werror=return-type -g -fcommon -std=gnu11 -Wall -o
|
||||||
|
xua_test xua_test.o sccp_test_data.o ../../src/.libs/libosmo-sigtran.so
|
||||||
|
-losmogsm -losmoisdn -losmovty -losmocore -ltalloc -lmnl -losmonetif -lsctp
|
||||||
|
-pthread -Wl,-rpath
|
||||||
|
-Wl,/home/abuild/rpmbuild/BUILD/libosmo-sigtran-2.1.0-build/libosmo-sigtran-2.1.0/src/.libs
|
||||||
|
-Wl,-rpath -Wl,/usr/lib64
|
||||||
|
[ 12s] /usr/lib64/gcc/x86_64-suse-linux/14/../../../../x86_64-suse-linux/bin/ld: xua_test.o: warning: relocation against `xua_dialect_sua' in read-only section `.text.startup'
|
||||||
|
[ 12s] /usr/lib64/gcc/x86_64-suse-linux/14/../../../../x86_64-suse-linux/bin/ld: xua_test.o: in function `test_helpers':
|
||||||
|
[ 12s] /home/abuild/rpmbuild/BUILD/libosmo-sigtran-2.1.0-build/libosmo-sigtran-2.1.0/tests/xua/xua_test.c:339:(.text.startup+0x271): undefined reference to `xua_part_add_gt'
|
||||||
|
|
||||||
Rename libmtp to libosmo-mtp, as libmtp is already used by the
|
|
||||||
Multimedia Transfer Protocol library.
|
|
||||||
---
|
---
|
||||||
configure.ac | 1 +
|
configure.ac | 1 +
|
||||||
libosmo-mtp.pc.in | 2 +-
|
src/Makefile.am | 10 ++++++----
|
||||||
libosmo-sccp.pc.in | 2 +-
|
|
||||||
src/Makefile.am | 20 +++++++++++++++-----
|
|
||||||
tests/m2ua/Makefile.am | 2 +-
|
tests/m2ua/Makefile.am | 2 +-
|
||||||
tests/sccp/Makefile.am | 7 ++++---
|
tests/ss7/Makefile.am | 4 ++--
|
||||||
tests/ss7/Makefile.am | 2 +-
|
tests/xua/Makefile.am | 4 ++--
|
||||||
tests/xua/Makefile.am | 7 ++++---
|
5 files changed, 12 insertions(+), 9 deletions(-)
|
||||||
8 files changed, 28 insertions(+), 15 deletions(-)
|
|
||||||
|
|
||||||
Index: libosmo-sccp-1.9.0/configure.ac
|
Index: libosmo-sigtran-2.1.0/configure.ac
|
||||||
===================================================================
|
===================================================================
|
||||||
--- libosmo-sccp-1.9.0.orig/configure.ac
|
--- libosmo-sigtran-2.1.0.orig/configure.ac
|
||||||
+++ libosmo-sccp-1.9.0/configure.ac
|
+++ libosmo-sigtran-2.1.0/configure.ac
|
||||||
@@ -51,6 +51,7 @@ AC_SEARCH_LIBS([sctp_recvmsg], [sctp], [
|
@@ -51,6 +51,7 @@ AC_SEARCH_LIBS([sctp_recvmsg], [sctp], [
|
||||||
], [
|
], [
|
||||||
AC_MSG_ERROR([sctp_recvmsg not found in searched libs])])
|
AC_MSG_ERROR([sctp_recvmsg not found in searched libs])])
|
||||||
@ -32,127 +41,71 @@ Index: libosmo-sccp-1.9.0/configure.ac
|
|||||||
|
|
||||||
AC_ARG_ENABLE(sanitize,
|
AC_ARG_ENABLE(sanitize,
|
||||||
[AS_HELP_STRING(
|
[AS_HELP_STRING(
|
||||||
Index: libosmo-sccp-1.9.0/libosmo-mtp.pc.in
|
Index: libosmo-sigtran-2.1.0/src/Makefile.am
|
||||||
===================================================================
|
===================================================================
|
||||||
--- libosmo-sccp-1.9.0.orig/libosmo-mtp.pc.in
|
--- libosmo-sigtran-2.1.0.orig/src/Makefile.am
|
||||||
+++ libosmo-sccp-1.9.0/libosmo-mtp.pc.in
|
+++ libosmo-sigtran-2.1.0/src/Makefile.am
|
||||||
@@ -6,5 +6,5 @@ includedir=@includedir@
|
@@ -22,13 +22,11 @@ noinst_HEADERS = \
|
||||||
Name: Osmo MTP Lib
|
xua_types.h \
|
||||||
Description: Osmo MTP Lib
|
$(NULL)
|
||||||
Version: @VERSION@
|
|
||||||
-Libs: -L${libdir} -lmtp
|
|
||||||
+Libs: -L${libdir} -losmo-mtp
|
|
||||||
Cflags: -I${includedir}/
|
|
||||||
Index: libosmo-sccp-1.9.0/libosmo-sccp.pc.in
|
|
||||||
===================================================================
|
|
||||||
--- libosmo-sccp-1.9.0.orig/libosmo-sccp.pc.in
|
|
||||||
+++ libosmo-sccp-1.9.0/libosmo-sccp.pc.in
|
|
||||||
@@ -6,5 +6,5 @@ includedir=@includedir@
|
|
||||||
Name: OpenBSC SCCP Lib
|
|
||||||
Description: OpenBSC SCCP Lib
|
|
||||||
Version: @VERSION@
|
|
||||||
-Libs: -L${libdir} -lsccp
|
|
||||||
+Libs: -L${libdir} -losmo-sccp
|
|
||||||
Cflags: -I${includedir}/
|
|
||||||
Index: libosmo-sccp-1.9.0/src/Makefile.am
|
|
||||||
===================================================================
|
|
||||||
--- libosmo-sccp-1.9.0.orig/src/Makefile.am
|
|
||||||
+++ libosmo-sccp-1.9.0/src/Makefile.am
|
|
||||||
@@ -13,15 +13,21 @@ noinst_HEADERS = \
|
|
||||||
# Legacy static libs
|
|
||||||
|
|
||||||
sccpdir = $(libdir)
|
-noinst_LIBRARIES = libxua.a
|
||||||
-sccp_LIBRARIES = libsccp.a libmtp.a libxua.a
|
-
|
||||||
+sccp_LTLIBRARIES = libosmo-sccp.la libosmo-mtp.la libosmo-xua.la
|
|
||||||
|
|
||||||
-libsccp_a_SOURCES = sccp.c
|
|
||||||
-libmtp_a_SOURCES = mtp_pcap.c
|
|
||||||
-libxua_a_SOURCES = xua_msg.c
|
-libxua_a_SOURCES = xua_msg.c
|
||||||
+libosmo_sccp_la_SOURCES = sccp.c
|
+libxua_la_SOURCES = xua_msg.c
|
||||||
+libosmo_mtp_la_SOURCES = mtp_pcap.c
|
|
||||||
+libosmo_xua_la_SOURCES = xua_msg.c
|
|
||||||
# ensure that the file for the static lib is built with different C
|
# ensure that the file for the static lib is built with different C
|
||||||
# flags, working around automake complaining that xua_msg.o is built
|
# flags, working around automake complaining that xua_msg.o is built
|
||||||
# both with libtool (below) and without (here)
|
# both with libtool (below) and without (here)
|
||||||
-libxua_a_CPPFLAGS = $(AM_CPPFLAGS) -DDUMMY -UDUMMY
|
-libxua_a_CPPFLAGS = $(AM_CPPFLAGS) -DDUMMY -UDUMMY
|
||||||
+libosmo_xua_la_CPPFLAGS = ${AM_CPPFLAGS} -DDUMMY -UDUMMY
|
+libxua_la_CPPFLAGS = $(AM_CPPFLAGS) -DDUMMY -UDUMMY
|
||||||
+
|
|
||||||
+libosmo_sccp_la_LIBADD = $(TALLOC_LIBS) $(LIBOSMOCORE_LIBS)
|
|
||||||
+libosmo_sccp_la_LDFLAGS = -release ${PACKAGE_VERSION}
|
|
||||||
+libosmo_mtp_la_LDFLAGS = -release ${PACKAGE_VERSION}
|
|
||||||
+libosmo_xua_la_LIBADD = $(TALLOC_LIBS) $(LIBOSMOCORE_LIBS)
|
|
||||||
+libosmo_xua_la_LDFLAGS = -release ${PACKAGE_VERSION}
|
|
||||||
|
|
||||||
|
lib_LTLIBRARIES = libosmo-sigtran.la
|
||||||
|
|
||||||
# New shared lib
|
@@ -82,3 +80,7 @@ libosmo_sigtran_la_LIBADD = \
|
||||||
@@ -72,3 +78,7 @@ libosmo_sigtran_la_LIBADD = \
|
|
||||||
$(LIBOSMOCORE_LIBS) \
|
$(LIBOSMOCORE_LIBS) \
|
||||||
$(LIBSCTP_LIBS) \
|
$(LIBSCTP_LIBS) \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
+
|
+
|
||||||
+noinst_LTLIBRARIES = libosmo-sigtran-internal.la
|
+noinst_LTLIBRARIES = libxua.la libosmo-sigtran-internal.la
|
||||||
+libosmo_sigtran_internal_la_SOURCES = $(libosmo_sigtran_la_SOURCES)
|
+libosmo_sigtran_internal_la_SOURCES = ${libosmo_sigtran_la_SOURCES}
|
||||||
+libosmo_sigtran_internal_la_LIBADD = $(libosmo_sigtran_la_LIBADD)
|
+libosmo_sigtran_internal_la_LIBADD = ${libosmo_sigtran_la_LIBADD}
|
||||||
Index: libosmo-sccp-1.9.0/tests/m2ua/Makefile.am
|
Index: libosmo-sigtran-2.1.0/tests/m2ua/Makefile.am
|
||||||
===================================================================
|
===================================================================
|
||||||
--- libosmo-sccp-1.9.0.orig/tests/m2ua/Makefile.am
|
--- libosmo-sigtran-2.1.0.orig/tests/m2ua/Makefile.am
|
||||||
+++ libosmo-sccp-1.9.0/tests/m2ua/Makefile.am
|
+++ libosmo-sigtran-2.1.0/tests/m2ua/Makefile.am
|
||||||
@@ -6,4 +6,4 @@ EXTRA_DIST = m2ua_test.ok
|
@@ -6,4 +6,4 @@ EXTRA_DIST = m2ua_test.ok
|
||||||
|
|
||||||
check_PROGRAMS = m2ua_test
|
check_PROGRAMS = m2ua_test
|
||||||
m2ua_test_SOURCES = m2ua_test.c
|
m2ua_test_SOURCES = m2ua_test.c
|
||||||
-m2ua_test_LDADD = $(top_builddir)/src/libxua.a $(LIBOSMOCORE_LIBS)
|
-m2ua_test_LDADD = $(top_builddir)/src/libxua.a $(LIBOSMOCORE_LIBS)
|
||||||
+m2ua_test_LDADD = $(top_builddir)/src/libosmo-xua.la $(LIBOSMOCORE_LIBS) ${TALLOC_LIBS}
|
+m2ua_test_LDADD = $(top_builddir)/src/libxua.la $(LIBOSMOCORE_LIBS) ${TALLOC_LIBS}
|
||||||
Index: libosmo-sccp-1.9.0/tests/sccp/Makefile.am
|
Index: libosmo-sigtran-2.1.0/tests/ss7/Makefile.am
|
||||||
===================================================================
|
===================================================================
|
||||||
--- libosmo-sccp-1.9.0.orig/tests/sccp/Makefile.am
|
--- libosmo-sigtran-2.1.0.orig/tests/ss7/Makefile.am
|
||||||
+++ libosmo-sccp-1.9.0/tests/sccp/Makefile.am
|
+++ libosmo-sigtran-2.1.0/tests/ss7/Makefile.am
|
||||||
@@ -1,14 +1,15 @@
|
@@ -1,8 +1,8 @@
|
||||||
AM_CPPFLAGS = $(all_includes) -I$(top_srcdir)/include
|
AM_CPPFLAGS = $(all_includes) -I$(top_srcdir)/include
|
||||||
-AM_CFLAGS=-Wall -ggdb3 $(LIBOSMOCORE_CFLAGS)
|
AM_CFLAGS=-Wall $(LIBOSMONETIF_CFLAGS) $(LIBOSMOCORE_CFLAGS) $(LIBOSMOVTY_CFLAGS)
|
||||||
+AM_CFLAGS=-Wall -ggdb3
|
|
||||||
+AM_CPPFLAGS += $(LIBOSMOCORE_CFLAGS) ${TALLOC_CFLAGS}
|
|
||||||
AM_LDFLAGS = -no-install
|
|
||||||
|
|
||||||
EXTRA_DIST = sccp_test.ok
|
|
||||||
|
|
||||||
check_PROGRAMS = sccp_test
|
|
||||||
|
|
||||||
-sccp_test_SOURCES = sccp_test.c
|
|
||||||
+sccp_test_SOURCES = sccp_test.c ${top_srcdir}/src/sccp.c
|
|
||||||
sccp_test_LDADD = \
|
|
||||||
$(LIBOSMOCORE_LIBS) \
|
|
||||||
- $(top_builddir)/src/sccp.o \
|
|
||||||
+ ${TALLOC_LIBS} \
|
|
||||||
$(NULL)
|
|
||||||
|
|
||||||
Index: libosmo-sccp-1.9.0/tests/ss7/Makefile.am
|
|
||||||
===================================================================
|
|
||||||
--- libosmo-sccp-1.9.0.orig/tests/ss7/Makefile.am
|
|
||||||
+++ libosmo-sccp-1.9.0/tests/ss7/Makefile.am
|
|
||||||
@@ -1,7 +1,7 @@
|
|
||||||
AM_CPPFLAGS = $(all_includes) -I$(top_srcdir)/include
|
|
||||||
AM_CFLAGS=-Wall $(LIBOSMOCORE_CFLAGS) $(LIBOSMOVTY_CFLAGS)
|
|
||||||
|
|
||||||
-AM_LDFLAGS = -static -no-install
|
|
||||||
+AM_LDFLAGS = -no-install
|
|
||||||
LDADD = $(top_builddir)/src/libosmo-sigtran.la \
|
|
||||||
$(LIBOSMOCORE_LIBS) $(LIBOSMOVTY_LIBS) $(LIBOSMONETIF_LIBS) $(LIBSCTP_LIBS)
|
|
||||||
|
|
||||||
Index: libosmo-sccp-1.9.0/tests/xua/Makefile.am
|
|
||||||
===================================================================
|
|
||||||
--- libosmo-sccp-1.9.0.orig/tests/xua/Makefile.am
|
|
||||||
+++ libosmo-sccp-1.9.0/tests/xua/Makefile.am
|
|
||||||
@@ -1,8 +1,9 @@
|
|
||||||
AM_CPPFLAGS = $(all_includes) -I$(top_srcdir)/include
|
|
||||||
-AM_CFLAGS=-Wall $(LIBOSMOCORE_CFLAGS) $(LIBOSMOVTY_CFLAGS)
|
|
||||||
+AM_CFLAGS=-Wall
|
|
||||||
+AM_CPPFLAGS += $(LIBOSMOCORE_CFLAGS) $(LIBOSMOVTY_CFLAGS) $(LIBOSMONETIF_CFLAGS) $(LIBSCTP_CFLAGS)
|
|
||||||
|
|
||||||
-AM_LDFLAGS = -static -no-install
|
-AM_LDFLAGS = -static -no-install
|
||||||
-LDADD = $(top_builddir)/src/libosmo-sigtran.la \
|
-LDADD = $(top_builddir)/src/libosmo-sigtran.la \
|
||||||
+AM_LDFLAGS = -no-install
|
+AM_LDFLAGS = -no-install
|
||||||
+LDADD = $(top_builddir)/src/libosmo-xua.la $(top_builddir)/src/libosmo-sigtran-internal.la \
|
+LDADD = $(top_builddir)/src/libosmo-sigtran-internal.la \
|
||||||
|
$(LIBOSMOCORE_LIBS) $(LIBOSMOVTY_LIBS) $(LIBOSMONETIF_LIBS) $(LIBSCTP_LIBS)
|
||||||
|
|
||||||
|
EXTRA_DIST = ss7_test.ok ss7_test.err
|
||||||
|
Index: libosmo-sigtran-2.1.0/tests/xua/Makefile.am
|
||||||
|
===================================================================
|
||||||
|
--- libosmo-sigtran-2.1.0.orig/tests/xua/Makefile.am
|
||||||
|
+++ libosmo-sigtran-2.1.0/tests/xua/Makefile.am
|
||||||
|
@@ -1,8 +1,8 @@
|
||||||
|
AM_CPPFLAGS = $(all_includes) -I$(top_srcdir)/include
|
||||||
|
AM_CFLAGS=-Wall $(LIBOSMONETIF_CFLAGS) $(LIBOSMOCORE_CFLAGS) $(LIBOSMOVTY_CFLAGS)
|
||||||
|
|
||||||
|
-AM_LDFLAGS = -static -no-install
|
||||||
|
-LDADD = $(top_builddir)/src/libosmo-sigtran.la \
|
||||||
|
+AM_LDFLAGS = -no-install
|
||||||
|
+LDADD = $(top_builddir)/src/libosmo-sigtran-internal.la \
|
||||||
$(LIBOSMOCORE_LIBS) $(LIBOSMOVTY_LIBS) $(LIBOSMONETIF_LIBS) $(LIBSCTP_LIBS)
|
$(LIBOSMOCORE_LIBS) $(LIBOSMOVTY_LIBS) $(LIBOSMONETIF_LIBS) $(LIBSCTP_LIBS)
|
||||||
|
|
||||||
EXTRA_DIST = xua_test.ok xua_test.err
|
EXTRA_DIST = xua_test.ok xua_test.err
|
||||||
|
BIN
1.9.0.tar.gz
(Stored with Git LFS)
BIN
1.9.0.tar.gz
(Stored with Git LFS)
Binary file not shown.
@ -1,3 +1,9 @@
|
|||||||
|
From: Johannes Segitz <jsegitz@suse.com>
|
||||||
|
Date: 2021-10-05 15:27:56 +0000
|
||||||
|
|
||||||
|
Automatic systemd hardening effort by the security team. This has not been
|
||||||
|
tested. For details please see
|
||||||
|
https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
|
||||||
---
|
---
|
||||||
contrib/systemd/osmo-stp.service | 13 +++++++++++++
|
contrib/systemd/osmo-stp.service | 13 +++++++++++++
|
||||||
1 file changed, 13 insertions(+)
|
1 file changed, 13 insertions(+)
|
||||||
|
@ -1,246 +0,0 @@
|
|||||||
#
|
|
||||||
# spec file for package libosmo-sccp
|
|
||||||
#
|
|
||||||
# Copyright (c) 2024 SUSE LLC
|
|
||||||
#
|
|
||||||
# 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 https://bugs.opensuse.org/
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
||||||
Name: libosmo-sccp
|
|
||||||
Version: 1.9.0
|
|
||||||
Release: 0
|
|
||||||
%define libversion %(echo "%version" | sed 's/\\./_/g')
|
|
||||||
Summary: Osmocom library for the A-bis interface between BTS and BSC
|
|
||||||
License: AGPL-3.0-or-later AND GPL-2.0-or-later
|
|
||||||
Group: Hardware/Mobile
|
|
||||||
URL: https://projects.osmocom.org/projects/libosmo-sccp
|
|
||||||
#Git-Clone: https://git.osmocom.org/libosmo-sccp
|
|
||||||
Source: https://github.com/osmocom/libosmo-sccp/archive/%version.tar.gz
|
|
||||||
Patch1: 0001-build-fixes.patch
|
|
||||||
Patch2: harden_osmo-stp.service.patch
|
|
||||||
BuildRequires: automake >= 1.6
|
|
||||||
BuildRequires: libtool >= 2
|
|
||||||
BuildRequires: lksctp-tools-devel
|
|
||||||
BuildRequires: pkg-config >= 0.20
|
|
||||||
BuildRequires: systemd-rpm-macros
|
|
||||||
BuildRequires: pkgconfig(libosmo-netif) >= 1.5.0
|
|
||||||
BuildRequires: pkgconfig(libosmocore) >= 1.10.0
|
|
||||||
BuildRequires: pkgconfig(libosmogsm) >= 1.10.0
|
|
||||||
BuildRequires: pkgconfig(libosmovty) >= 1.10.0
|
|
||||||
|
|
||||||
%description
|
|
||||||
SCCP is a network layer protocol that provides extended routing, flow
|
|
||||||
control, segmentation, connection-orientation, and error correction
|
|
||||||
facilities in Signaling System 7 telecommunications networks. SCCP is
|
|
||||||
heavily used in cellular networks such as GSM.
|
|
||||||
|
|
||||||
%package -n libosmo-mtp-%libversion
|
|
||||||
Summary: Osmocom Message Transfer Part library
|
|
||||||
License: GPL-2.0-or-later
|
|
||||||
Group: System/Libraries
|
|
||||||
|
|
||||||
%description -n libosmo-mtp-%libversion
|
|
||||||
The Message Transfer Part (MTP) is part of the Signaling System 7
|
|
||||||
(SS7) used for communication in Public Switched Telephone Networks.
|
|
||||||
MTP is responsible for reliable, unduplicated and in-sequence
|
|
||||||
transport of SS7 messages between communication partners.
|
|
||||||
|
|
||||||
%package -n libosmo-mtp-devel
|
|
||||||
Summary: Development files for the Osmocom MTP library
|
|
||||||
License: GPL-2.0-or-later
|
|
||||||
Group: Development/Libraries/C and C++
|
|
||||||
Requires: libosmo-mtp-%libversion = %version
|
|
||||||
|
|
||||||
%description -n libosmo-mtp-devel
|
|
||||||
MTP is part of SS7 used for communication in Public Switched
|
|
||||||
Telephone Networks.
|
|
||||||
|
|
||||||
This subpackage contains the development files for the Osmocom MTP
|
|
||||||
library.
|
|
||||||
|
|
||||||
%package -n libosmo-sccp-%libversion
|
|
||||||
Summary: Osmocom Signalling Connection Control Part library
|
|
||||||
License: GPL-2.0-or-later
|
|
||||||
Group: System/Libraries
|
|
||||||
|
|
||||||
%description -n libosmo-sccp-%libversion
|
|
||||||
The Signalling Connection Control Part (SCCP) is a network layer
|
|
||||||
protocol that provides extended routing, flow control, segmentation,
|
|
||||||
connection-orientation, and error correction facilities in Signaling
|
|
||||||
System 7 telecommunications networks. SCCP relies on the services of
|
|
||||||
MTP for basic routing and error detection.
|
|
||||||
|
|
||||||
%package -n libosmo-sccp-devel
|
|
||||||
Summary: Development files for the Osmocom SCCP library
|
|
||||||
License: GPL-2.0-or-later
|
|
||||||
Group: Development/Libraries/C and C++
|
|
||||||
Requires: libosmo-sccp-%libversion = %version
|
|
||||||
# previously wrongly shipped .so file
|
|
||||||
Conflicts: libosmo-sccp-1_0_0
|
|
||||||
|
|
||||||
%description -n libosmo-sccp-devel
|
|
||||||
SCCP is a network layer protocol that provides routing, flow control,
|
|
||||||
segmentation, connection-orientation, and error correction facilities
|
|
||||||
in SS7 telecommunications networks.
|
|
||||||
|
|
||||||
This subpackage contains the development files for the Osmocom SCCP
|
|
||||||
library.
|
|
||||||
|
|
||||||
%package -n libosmo-sigtran10
|
|
||||||
Summary: Osmocom SIGTRAN library
|
|
||||||
License: GPL-2.0-or-later
|
|
||||||
Group: System/Libraries
|
|
||||||
|
|
||||||
%description -n libosmo-sigtran10
|
|
||||||
Osmocom implementation of (parts of) SIGTRAN.
|
|
||||||
|
|
||||||
%package -n libosmo-sigtran-devel
|
|
||||||
Summary: Development files for the Osmocom sigtran library
|
|
||||||
License: GPL-2.0-or-later
|
|
||||||
Group: Development/Libraries/C and C++
|
|
||||||
Requires: libosmo-sigtran10 = %version
|
|
||||||
|
|
||||||
%description -n libosmo-sigtran-devel
|
|
||||||
Osmocom implementation of (parts of) SIGTRAN.
|
|
||||||
|
|
||||||
This subpackage contains the development files for the Osmocom
|
|
||||||
SIGTRAN library.
|
|
||||||
|
|
||||||
%package -n libosmo-xua-%libversion
|
|
||||||
Summary: Osmocom Message Transfer Part 2 User Adaptation library
|
|
||||||
License: GPL-2.0-or-later
|
|
||||||
Group: System/Libraries
|
|
||||||
|
|
||||||
%description -n libosmo-xua-%libversion
|
|
||||||
M2UA (RFC 3331) provides an SCTP (RFC 3873) adaptation layer for the
|
|
||||||
seamless backhaul of MTP Level 2 user messages and service interface
|
|
||||||
across an IP network.
|
|
||||||
|
|
||||||
%package -n libosmo-xua-devel
|
|
||||||
Summary: Development files for the Osmocom M2UA library
|
|
||||||
License: GPL-2.0-or-later
|
|
||||||
Group: Development/Libraries/C and C++
|
|
||||||
Requires: libosmo-sigtran-devel = %version
|
|
||||||
Requires: libosmo-xua-%libversion = %version
|
|
||||||
|
|
||||||
%description -n libosmo-xua-devel
|
|
||||||
M2UA provides an SCTP adaptation layer for MTP level 2 user messages
|
|
||||||
and service interface across an IP network.
|
|
||||||
|
|
||||||
This subpackage contains the development files for the Osmocom M2UA
|
|
||||||
library.
|
|
||||||
|
|
||||||
%package -n osmo-stp
|
|
||||||
Summary: Osmocom SIGTRAN STP (Signaling Transfer Point)
|
|
||||||
License: GPL-2.0-or-later
|
|
||||||
Group: Productivity/Telephony/Servers
|
|
||||||
|
|
||||||
%description -n osmo-stp
|
|
||||||
This is the Osmocom (Open Source Mobile Communications)
|
|
||||||
implementation of a Signaling Transfer Point (STP) for SS7/SIGTRAN
|
|
||||||
telecommunication networks. At this point, it is a minimal
|
|
||||||
implementation, missing lots of the functionality usually present in
|
|
||||||
a STP, such as Global Title Routing, Global Title Translation.
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%autosetup -p1
|
|
||||||
|
|
||||||
%build
|
|
||||||
echo "%version" >.tarball-version
|
|
||||||
autoreconf -fiv
|
|
||||||
# bugzilla.opensuse.org/795968 for rationale
|
|
||||||
%configure --includedir="%_includedir/%name" \
|
|
||||||
--docdir="%_defaultdocdir/%name" \
|
|
||||||
--with-systemdsystemunitdir="%_unitdir" \
|
|
||||||
--disable-static CFLAGS="%optflags -fcommon"
|
|
||||||
%make_build
|
|
||||||
|
|
||||||
%install
|
|
||||||
%make_install
|
|
||||||
find "%buildroot/%_libdir" -type f -name "*.la" -delete
|
|
||||||
install -d "%buildroot/%_unitdir" "%buildroot/%_sbindir"
|
|
||||||
ln -s service "%buildroot/%_sbindir/rcosmo-stp"
|
|
||||||
|
|
||||||
%check
|
|
||||||
if ! %make_build check; then
|
|
||||||
find . -name testsuite.log -exec cat "{}" "+"
|
|
||||||
%ifnarch ppc64 sparc64 s390x
|
|
||||||
# still BE problems?
|
|
||||||
exit 1
|
|
||||||
%endif
|
|
||||||
fi
|
|
||||||
|
|
||||||
%ldconfig_scriptlets -n libosmo-mtp-%libversion
|
|
||||||
%ldconfig_scriptlets -n libosmo-sccp-%libversion
|
|
||||||
%ldconfig_scriptlets -n libosmo-sigtran10
|
|
||||||
%ldconfig_scriptlets -n libosmo-xua-%libversion
|
|
||||||
|
|
||||||
%preun -n osmo-stp
|
|
||||||
%service_del_preun osmo-stp.service
|
|
||||||
|
|
||||||
%postun -n osmo-stp
|
|
||||||
%service_del_postun osmo-stp.service
|
|
||||||
|
|
||||||
%pre -n osmo-stp
|
|
||||||
%service_add_pre osmo-stp.service
|
|
||||||
|
|
||||||
%post -n osmo-stp
|
|
||||||
%service_add_post osmo-stp.service
|
|
||||||
|
|
||||||
%files -n libosmo-mtp-%libversion
|
|
||||||
%_libdir/libosmo-mtp-%version.so
|
|
||||||
|
|
||||||
%files -n libosmo-mtp-devel
|
|
||||||
%dir %_includedir/%name/
|
|
||||||
%dir %_includedir/%name/osmocom/
|
|
||||||
%_includedir/%name/osmocom/mtp/
|
|
||||||
%_libdir/libosmo-mtp.so
|
|
||||||
%_libdir/pkgconfig/libosmo-mtp.pc
|
|
||||||
|
|
||||||
%files -n libosmo-sccp-%libversion
|
|
||||||
%_libdir/libosmo-sccp-%version.so
|
|
||||||
|
|
||||||
%files -n libosmo-sccp-devel
|
|
||||||
%dir %_includedir/%name/
|
|
||||||
%dir %_includedir/%name/osmocom/
|
|
||||||
%_includedir/%name/osmocom/sccp/
|
|
||||||
%_libdir/libosmo-sccp.so
|
|
||||||
%_libdir/pkgconfig/libosmo-sccp.pc
|
|
||||||
|
|
||||||
%files -n libosmo-sigtran10
|
|
||||||
%_libdir/libosmo-sigtran.so.*
|
|
||||||
|
|
||||||
%files -n libosmo-sigtran-devel
|
|
||||||
%dir %_includedir/%name/
|
|
||||||
%dir %_includedir/%name/osmocom/
|
|
||||||
%_includedir/%name/osmocom/sigtran/
|
|
||||||
%_libdir/libosmo-sigtran.so
|
|
||||||
%_libdir/pkgconfig/libosmo-sigtran.pc
|
|
||||||
|
|
||||||
%files -n libosmo-xua-%libversion
|
|
||||||
%_libdir/libosmo-xua-%version.so
|
|
||||||
|
|
||||||
%files -n libosmo-xua-devel
|
|
||||||
%_libdir/libosmo-xua.so
|
|
||||||
%_libdir/pkgconfig/libosmo-xua.pc
|
|
||||||
|
|
||||||
%files -n osmo-stp
|
|
||||||
%dir %_sysconfdir/osmocom
|
|
||||||
%config %_sysconfdir/osmocom/osmo-stp.cfg
|
|
||||||
%_bindir/osmo-stp
|
|
||||||
%_sbindir/rcosmo-stp
|
|
||||||
%_unitdir/osmo-stp.service
|
|
||||||
%_defaultdocdir/%name/
|
|
||||||
%license COPYING
|
|
||||||
|
|
||||||
%changelog
|
|
BIN
libosmo-sigtran-2.1.0.tar.xz
(Stored with Git LFS)
Normal file
BIN
libosmo-sigtran-2.1.0.tar.xz
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -1,3 +1,12 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Feb 13 14:40:54 UTC 2025 - Jan Engelhardt <jengelh@inai.de>
|
||||||
|
|
||||||
|
- Renamed libosmo-sccp to libosmo-sigtran
|
||||||
|
- Update to release 2.1.0
|
||||||
|
* ss7_as: Avoid dispatch event to asp with uninitialized FSM
|
||||||
|
* Reject M3UA with "M3UA Network Appearance"
|
||||||
|
* SS7: Support secondary point codes
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Oct 26 14:11:25 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
|
Sat Oct 26 14:11:25 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
|
||||||
|
|
142
libosmo-sigtran.spec
Normal file
142
libosmo-sigtran.spec
Normal file
@ -0,0 +1,142 @@
|
|||||||
|
#
|
||||||
|
# spec file for package libosmo-sigtran
|
||||||
|
#
|
||||||
|
# Copyright (c) 2025 SUSE LLC
|
||||||
|
#
|
||||||
|
# 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 https://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
Name: libosmo-sigtran
|
||||||
|
Version: 2.1.0
|
||||||
|
Release: 0
|
||||||
|
%define libversion 2_0_0
|
||||||
|
Summary: Osmocom library for the A-bis interface between BTS and BSC
|
||||||
|
License: AGPL-3.0-or-later AND GPL-2.0-or-later
|
||||||
|
Group: Productivity/Telephony/Utilities
|
||||||
|
URL: https://gitea.osmocom.org/osmocom/libosmo-sigtran
|
||||||
|
Source: %name-%version.tar.xz
|
||||||
|
#server broken#Source: https://gitea.osmocom.org/osmocom/libosmo-sigtran/archive/%%version.tar.gz
|
||||||
|
Patch2: 0001-build-fixes.patch
|
||||||
|
Patch3: harden_osmo-stp.service.patch
|
||||||
|
BuildRequires: automake >= 1.6
|
||||||
|
BuildRequires: libtool >= 2
|
||||||
|
BuildRequires: lksctp-tools-devel
|
||||||
|
BuildRequires: pkg-config >= 0.20
|
||||||
|
BuildRequires: systemd-rpm-macros
|
||||||
|
BuildRequires: pkgconfig(libosmo-netif) >= 1.6.0
|
||||||
|
BuildRequires: pkgconfig(libosmocore) >= 1.11.0
|
||||||
|
BuildRequires: pkgconfig(libosmogsm) >= 1.11.0
|
||||||
|
BuildRequires: pkgconfig(libosmovty) >= 1.11.0
|
||||||
|
|
||||||
|
%description
|
||||||
|
libosmo-sigtran is a C-language library implementation of a variety
|
||||||
|
of telecom signaling protocols, such as M3UA, SUA, SCCP.
|
||||||
|
|
||||||
|
%package -n libosmo-sigtran11
|
||||||
|
Summary: Osmocom SIGTRAN library
|
||||||
|
License: GPL-2.0-or-later
|
||||||
|
Group: System/Libraries
|
||||||
|
|
||||||
|
%description -n libosmo-sigtran11
|
||||||
|
libosmo-sigtran is a C-language library implementation of a variety
|
||||||
|
of telecom signaling protocols, such as M3UA, SUA, SCCP (connection
|
||||||
|
oriented and connectionless). SCCP is a network layer protocol that
|
||||||
|
provides extended routing, flow control, segmentation,
|
||||||
|
connection-orientation, and error correction facilities in Signaling
|
||||||
|
System 7 telecommunications networks. SCCP is heavily used in
|
||||||
|
cellular networks such as GSM.
|
||||||
|
|
||||||
|
OsmoSTP is a SS7 Transfer Point that can be used to act as router and
|
||||||
|
translator between M3UA, SUA and/or SCCPlite.
|
||||||
|
|
||||||
|
%package -n libosmo-sigtran-devel
|
||||||
|
Summary: Development files for the Osmocom sigtran library
|
||||||
|
License: GPL-2.0-or-later
|
||||||
|
Group: Development/Libraries/C and C++
|
||||||
|
Requires: libosmo-sigtran11 = %version
|
||||||
|
|
||||||
|
%description -n libosmo-sigtran-devel
|
||||||
|
Osmocom implementation of (parts of) SIGTRAN.
|
||||||
|
|
||||||
|
This subpackage contains the development files for the Osmocom
|
||||||
|
SIGTRAN library.
|
||||||
|
|
||||||
|
%package -n osmo-stp
|
||||||
|
Summary: Osmocom SIGTRAN STP (Signaling Transfer Point)
|
||||||
|
License: GPL-2.0-or-later
|
||||||
|
Group: Productivity/Telephony/Servers
|
||||||
|
|
||||||
|
%description -n osmo-stp
|
||||||
|
This is the Osmocom (Open Source Mobile Communications)
|
||||||
|
implementation of a Signaling Transfer Point (STP) for SS7/SIGTRAN
|
||||||
|
telecommunication networks. At this point, it is a minimal
|
||||||
|
implementation, missing lots of the functionality usually present in
|
||||||
|
a STP, such as Global Title Routing, Global Title Translation.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -p1
|
||||||
|
|
||||||
|
%build
|
||||||
|
echo "%version" >.tarball-version
|
||||||
|
autoreconf -fiv
|
||||||
|
# bugzilla.opensuse.org/795968 for rationale
|
||||||
|
%configure --includedir="%_includedir/%name" \
|
||||||
|
--docdir="%_defaultdocdir/%name" \
|
||||||
|
--with-systemdsystemunitdir="%_unitdir" \
|
||||||
|
--disable-static CFLAGS="%optflags -fcommon"
|
||||||
|
%make_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
%make_install
|
||||||
|
find "%buildroot/%_libdir" -type f -name "*.la" -delete
|
||||||
|
|
||||||
|
%check
|
||||||
|
if ! %make_build check; then
|
||||||
|
find . -name testsuite.log -exec cat "{}" "+"
|
||||||
|
%ifnarch ppc64 sparc64 s390x
|
||||||
|
# still BE problems?
|
||||||
|
exit 1
|
||||||
|
%endif
|
||||||
|
fi
|
||||||
|
|
||||||
|
%ldconfig_scriptlets -n libosmo-sigtran11
|
||||||
|
|
||||||
|
%preun -n osmo-stp
|
||||||
|
%service_del_preun osmo-stp.service
|
||||||
|
|
||||||
|
%postun -n osmo-stp
|
||||||
|
%service_del_postun osmo-stp.service
|
||||||
|
|
||||||
|
%pre -n osmo-stp
|
||||||
|
%service_add_pre osmo-stp.service
|
||||||
|
|
||||||
|
%post -n osmo-stp
|
||||||
|
%service_add_post osmo-stp.service
|
||||||
|
|
||||||
|
%files -n libosmo-sigtran11
|
||||||
|
%_libdir/libosmo-sigtran.so.*
|
||||||
|
|
||||||
|
%files -n libosmo-sigtran-devel
|
||||||
|
%_includedir/%name/
|
||||||
|
%_libdir/libosmo-sigtran.so
|
||||||
|
%_libdir/pkgconfig/libosmo-sigtran.pc
|
||||||
|
|
||||||
|
%files -n osmo-stp
|
||||||
|
%dir %_sysconfdir/osmocom
|
||||||
|
%config %_sysconfdir/osmocom/osmo-stp.cfg
|
||||||
|
%_bindir/osmo-stp
|
||||||
|
%_unitdir/osmo-stp.service
|
||||||
|
%_defaultdocdir/%name/
|
||||||
|
%license COPYING
|
||||||
|
|
||||||
|
%changelog
|
Loading…
x
Reference in New Issue
Block a user