diff --git a/0001-build-fixes.patch b/0001-build-fixes.patch index bf9722c..189c817 100644 --- a/0001-build-fixes.patch +++ b/0001-build-fixes.patch @@ -8,35 +8,33 @@ Find and use system talloc, do not rely on OSMO's bundled copy. Rename libmtp to libosmo-mtp, as libmtp is already used by the Multimedia Transfer Protocol library. --- - configure.ac | 3 ++- - libosmo-mtp.pc.in | 2 +- - libosmo-sccp.pc.in | 2 +- - src/Makefile.am | 14 +++++++++----- - tests/m2ua/Makefile.am | 2 +- - tests/sccp/Makefile.am | 4 ++-- + configure.ac | 3 ++- + libosmo-mtp.pc.in | 2 +- + libosmo-sccp.pc.in | 2 +- + src/Makefile.am | 14 +++++++++----- + tests/m2ua/Makefile.am | 2 +- + tests/sccp/Makefile.am | 4 ++-- 6 files changed, 16 insertions(+), 11 deletions(-) -diff --git a/configure.ac b/configure.ac -index 702941a..fe596d2 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -14,10 +14,11 @@ AC_PROG_MAKE_SET +Index: libosmo-sccp/configure.ac +=================================================================== +--- libosmo-sccp.orig/configure.ac ++++ libosmo-sccp/configure.ac +@@ -14,8 +14,9 @@ AC_PROG_MAKE_SET AC_PROG_CC AC_PROG_INSTALL LT_INIT -AC_PROG_LIBTOOL - PKG_CHECK_MODULES(LIBOSMOCORE, libosmocore >= 0.3.0) - PKG_CHECK_MODULES(LIBOSMONETIF, libosmo-netif >= 0.0.6.1) +PKG_CHECK_MODULES([LIBOSMOGSM], [libosmogsm]) +PKG_CHECK_MODULES([TALLOC], [talloc]) + PKG_CHECK_MODULES(LIBOSMOCORE, libosmocore >= 0.3.0) + PKG_CHECK_MODULES(LIBOSMONETIF, libosmo-netif >= 0.0.6) - # The following test is taken from WebKit's webkit.m4 - saved_CFLAGS="$CFLAGS" -diff --git a/libosmo-mtp.pc.in b/libosmo-mtp.pc.in -index 675d0d3..5e99dd3 100644 ---- a/libosmo-mtp.pc.in -+++ b/libosmo-mtp.pc.in +Index: libosmo-sccp/libosmo-mtp.pc.in +=================================================================== +--- libosmo-sccp.orig/libosmo-mtp.pc.in ++++ libosmo-sccp/libosmo-mtp.pc.in @@ -6,5 +6,5 @@ includedir=@includedir@ Name: Osmo MTP Lib Description: Osmo MTP Lib @@ -44,10 +42,10 @@ index 675d0d3..5e99dd3 100644 -Libs: -L${libdir} -lmtp +Libs: -L${libdir} -losmo-mtp Cflags: -I${includedir}/ -diff --git a/libosmo-sccp.pc.in b/libosmo-sccp.pc.in -index eda8d49..9dd18c1 100644 ---- a/libosmo-sccp.pc.in -+++ b/libosmo-sccp.pc.in +Index: libosmo-sccp/libosmo-sccp.pc.in +=================================================================== +--- libosmo-sccp.orig/libosmo-sccp.pc.in ++++ libosmo-sccp/libosmo-sccp.pc.in @@ -6,5 +6,5 @@ includedir=@includedir@ Name: OpenBSC SCCP Lib Description: OpenBSC SCCP Lib @@ -55,11 +53,11 @@ index eda8d49..9dd18c1 100644 -Libs: -L${libdir} -lsccp +Libs: -L${libdir} -losmo-sccp Cflags: -I${includedir}/ -diff --git a/src/Makefile.am b/src/Makefile.am -index ba55162..f48deb7 100644 ---- a/src/Makefile.am -+++ b/src/Makefile.am -@@ -4,15 +4,19 @@ AM_CFLAGS=-Wall $(LIBOSMOCORE_CFLAGS) +Index: libosmo-sccp/src/Makefile.am +=================================================================== +--- libosmo-sccp.orig/src/Makefile.am ++++ libosmo-sccp/src/Makefile.am +@@ -4,15 +4,19 @@ AM_CFLAGS=-Wall $(LIBOSMOCORE_CFLAGS) $( # Legacy static libs sccpdir = $(libdir) @@ -84,20 +82,20 @@ index ba55162..f48deb7 100644 # New shared lib -diff --git a/tests/m2ua/Makefile.am b/tests/m2ua/Makefile.am -index 33618ef..a04145f 100644 ---- a/tests/m2ua/Makefile.am -+++ b/tests/m2ua/Makefile.am +Index: libosmo-sccp/tests/m2ua/Makefile.am +=================================================================== +--- libosmo-sccp.orig/tests/m2ua/Makefile.am ++++ libosmo-sccp/tests/m2ua/Makefile.am @@ -5,4 +5,4 @@ EXTRA_DIST = m2ua_test.ok noinst_PROGRAMS = m2ua_test m2ua_test_SOURCES = m2ua_test.c -m2ua_test_LDADD = $(top_builddir)/src/libxua.a $(LIBOSMOCORE_LIBS) +m2ua_test_LDADD = $(top_builddir)/src/libosmo-xua.la $(LIBOSMOCORE_LIBS) ${TALLOC_LIBS} -diff --git a/tests/sccp/Makefile.am b/tests/sccp/Makefile.am -index 8cce20c..50624ce 100644 ---- a/tests/sccp/Makefile.am -+++ b/tests/sccp/Makefile.am +Index: libosmo-sccp/tests/sccp/Makefile.am +=================================================================== +--- libosmo-sccp.orig/tests/sccp/Makefile.am ++++ libosmo-sccp/tests/sccp/Makefile.am @@ -1,4 +1,4 @@ -AM_CPPFLAGS = $(all_includes) -I$(top_srcdir)/include +AM_CPPFLAGS = $(all_includes) -I$(top_srcdir)/include ${TALLOC_CFLAGS} @@ -111,6 +109,3 @@ index 8cce20c..50624ce 100644 -sccp_test_LDADD = $(LIBOSMOCORE_LIBS) +sccp_test_LDADD = $(LIBOSMOCORE_LIBS) ${TALLOC_LIBS} --- -2.4.3 - diff --git a/libosmo-sccp-0.7.0.11.tar.xz b/libosmo-sccp-0.7.0.11.tar.xz new file mode 100644 index 0000000..1475ec6 --- /dev/null +++ b/libosmo-sccp-0.7.0.11.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2c2c91f70c1a6534a58716f44a68f08f7c003c7c38e7589372bdcfdb758b9f51 +size 45664 diff --git a/libosmo-sccp-0.7.0.6.tar.xz b/libosmo-sccp-0.7.0.6.tar.xz deleted file mode 100644 index bd66c9a..0000000 --- a/libosmo-sccp-0.7.0.6.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:bb213700bf2defa9075bd48eee01473dd339a22fab2212afc0499308d63fdd0b -size 45624 diff --git a/libosmo-sccp.changes b/libosmo-sccp.changes index 4808dda..77c4de6 100644 --- a/libosmo-sccp.changes +++ b/libosmo-sccp.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Fri Jan 22 18:33:36 UTC 2016 - jengelh@inai.de + +- Update to new upstream snapshot 0.7.0.11 +* Add missing OSMO_SCCP_SSN_RANAP for RANAP SSN +* Properly define SCCP_SAP_USER without random magic number +* Import SUA (SCCP User Adaptation) and SCCP User SAP + ------------------------------------------------------------------- Thu Sep 10 21:34:08 UTC 2015 - jengelh@inai.de diff --git a/libosmo-sccp.spec b/libosmo-sccp.spec index 9dd3201..b24e5ee 100644 --- a/libosmo-sccp.spec +++ b/libosmo-sccp.spec @@ -1,7 +1,7 @@ # # spec file for package libosmo-sccp # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2016 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 @@ -17,7 +17,7 @@ Name: libosmo-sccp -Version: 0.7.0.6 +Version: 0.7.0.11 Release: 0 Summary: Osmocom library for the A-bis interface between BTS and BSC License: AGPL-3.0+ and GPL-2.0+ @@ -25,7 +25,7 @@ Group: Hardware/Mobile Url: http://openbsc.osmocom.org/ #Git-Clone: git://git.osmocom.org/libosmo-sccp -#Snapshot: 0.7.0-6-g8209bc8 +#Snapshot: 0.7.0-11-gf440267 (--tags) Source: %name-%version.tar.xz Patch1: 0001-build-fixes.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -141,7 +141,7 @@ Requires: libosmo-sigtran0 = %version %build echo "%version" >.tarball-version autoreconf -fiv -%configure --enable-shared --disable-static +%configure --enable-shared --disable-static --includedir="%_includedir/%name" make %{?_smp_mflags} %install @@ -173,8 +173,9 @@ make %{?_smp_mflags} check %files -n libosmo-mtp-devel %defattr(-,root,root) -%dir %_includedir/osmocom -%_includedir/osmocom/mtp/ +%dir %_includedir/%name +%dir %_includedir/%name/osmocom +%_includedir/%name/osmocom/mtp/ %_libdir/libosmo-mtp.so %_libdir/pkgconfig/libosmo-mtp.pc @@ -185,8 +186,9 @@ make %{?_smp_mflags} check %files -n libosmo-sccp-devel %defattr(-,root,root) -%dir %_includedir/osmocom -%_includedir/osmocom/sccp/ +%dir %_includedir/%name +%dir %_includedir/%name/osmocom +%_includedir/%name/osmocom/sccp/ %_libdir/pkgconfig/libosmo-sccp.pc %files -n libosmo-sigtran0 @@ -195,8 +197,9 @@ make %{?_smp_mflags} check %files -n libosmo-sigtran-devel %defattr(-,root,root) -%dir %_includedir/osmocom -%_includedir/osmocom/sigtran/ +%dir %_includedir/%name +%dir %_includedir/%name/osmocom +%_includedir/%name/osmocom/sigtran/ %_libdir/libosmo-sigtran.so %_libdir/pkgconfig/libosmo-sigtran.pc