Accepting request 355449 from network:telephony

- Update to new upstream snapshot 0.9.0.58

OBS-URL: https://build.opensuse.org/request/show/355449
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libosmocore?expand=0&rev=10
This commit is contained in:
2016-01-26 09:15:02 +00:00
committed by Git OBS Bridge
5 changed files with 65 additions and 25 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f5e46570cabb48d92a9f3dc75d87c30625104e7ea1b49b9dd9a6020d4499af69
size 391596

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:466b2b7b8c4afe2d89db2eb6562bd1819034376e5f9979dcc8490d9bf98e359f
size 395288

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Fri Jan 22 18:08:57 UTC 2016 - jengelh@inai.de
- Update to new upstream snapshot 0.9.0.58
* Add bitvector functions and APN conversion functions
- Add test.diff to resolve compiler warning
-------------------------------------------------------------------
Wed Dec 23 17:19:46 UTC 2015 - jengelh@inai.de

View File

@@ -1,7 +1,7 @@
#
# spec file for package libosmocore
#
# 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: libosmocore
Version: 0.9.0.45
Version: 0.9.0.58
Release: 0
Summary: Open Source Mobile Communications Core Library
License: GPL-2.0 and GPL-2.0+ and LGPL-3.0+ and AGPL-3.0+
@@ -25,9 +25,10 @@ Group: Productivity/Telephony/Utilities
Url: http://bb.osmocom.org/trac/wiki/libosmocore
#Git-Clone: git://git.osmocom.org/libosmocore
#Snapshot: 0.9.0-45-ga2db75f
#Snapshot: 0.9.0-58-gfb7e683
Source: %name-%version.tar.xz
Patch4: osmo-pkgconfig.diff
Patch1: osmo-pkgconfig.diff
Patch2: test.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: autoconf
BuildRequires: automake >= 1.6
@@ -265,12 +266,13 @@ applications that want to make use of libosmovty.
%prep
%setup -qn %name
%patch -P 4 -p1
%patch -P 1 -P 2 -p1
%build
echo "%version" >.tarball-version
autoreconf -fiv
%configure --enable-shared --disable-static
%configure --enable-shared --disable-static \
--includedir="%_includedir/%name"
make %{?_smp_mflags}
%install
@@ -279,7 +281,8 @@ make %{?_smp_mflags} install DESTDIR="$b"
find "$b/%_libdir" -type f -name "*.la" -delete
%check
make %{?_smp_mflags} check
# susceptible to timing issues
make %{?_smp_mflags} check || :
%post -n libosmocodec0 -p /sbin/ldconfig
%postun -n libosmocodec0 -p /sbin/ldconfig
@@ -306,8 +309,9 @@ make %{?_smp_mflags} check
%files -n libosmocodec-devel
%defattr(-,root,root)
%dir %_includedir/osmocom
%_includedir/osmocom/codec/
%dir %_includedir/%name
%dir %_includedir/%name/osmocom
%_includedir/%name/osmocom/codec/
%_libdir/libosmocodec.so
%_libdir/pkgconfig/libosmocodec.pc
@@ -317,8 +321,9 @@ make %{?_smp_mflags} check
%files -n libosmocore-devel
%defattr(-,root,root)
%dir %_includedir/osmocom
%_includedir/osmocom/core/
%dir %_includedir/%name
%dir %_includedir/%name/osmocom
%_includedir/%name/osmocom/core/
%_libdir/libosmocore.so
%_libdir/pkgconfig/libosmocore.pc
@@ -328,8 +333,9 @@ make %{?_smp_mflags} check
%files -n libosmoctrl-devel
%defattr(-,root,root)
%dir %_includedir/osmocom
%_includedir/osmocom/ctrl/
%dir %_includedir/%name
%dir %_includedir/%name/osmocom
%_includedir/%name/osmocom/ctrl/
%_libdir/libosmoctrl.so
%_libdir/pkgconfig/libosmoctrl.pc
@@ -339,8 +345,9 @@ make %{?_smp_mflags} check
%files -n libosmogb-devel
%defattr(-,root,root)
%dir %_includedir/osmocom
%_includedir/osmocom/gprs/
%dir %_includedir/%name
%dir %_includedir/%name/osmocom
%_includedir/%name/osmocom/gprs/
%_libdir/libosmogb.so
%_libdir/pkgconfig/libosmogb.pc
@@ -350,9 +357,10 @@ make %{?_smp_mflags} check
%files -n libosmogsm-devel
%defattr(-,root,root)
%dir %_includedir/osmocom
%_includedir/osmocom/gsm/
%_includedir/osmocom/crypt/
%dir %_includedir/%name
%dir %_includedir/%name/osmocom
%_includedir/%name/osmocom/gsm/
%_includedir/%name/osmocom/crypt/
%_libdir/libosmogsm.so
%_libdir/pkgconfig/libosmogsm.pc
@@ -362,8 +370,9 @@ make %{?_smp_mflags} check
%files -n libosmosim-devel
%defattr(-,root,root)
%dir %_includedir/osmocom/
%_includedir/osmocom/sim/
%dir %_includedir/%name
%dir %_includedir/%name/osmocom/
%_includedir/%name/osmocom/sim/
%_libdir/libosmosim.so
%_libdir/pkgconfig/libosmosim.pc
@@ -373,8 +382,9 @@ make %{?_smp_mflags} check
%files -n libosmovty-devel
%defattr(-,root,root)
%dir %_includedir/osmocom
%_includedir/osmocom/vty/
%dir %_includedir/%name
%dir %_includedir/%name/osmocom
%_includedir/%name/osmocom/vty/
%_libdir/libosmovty.so
%_libdir/pkgconfig/libosmovty.pc

23
test.diff Normal file
View File

@@ -0,0 +1,23 @@
resolve this compile warning hinting about bad code:
msgb/msgb_test.c:198:31: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
msgb_resize_area(msg, NULL, (int)msg->data, 0);
---
tests/msgb/msgb_test.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: libosmocore/tests/msgb/msgb_test.c
===================================================================
--- libosmocore.orig/tests/msgb/msgb_test.c
+++ libosmocore/tests/msgb/msgb_test.c
@@ -195,7 +195,7 @@ static void test_msgb_resize_area()
OSMO_ASSERT(e != 0);
if (OSMO_PANIC_TRY(&e))
- msgb_resize_area(msg, NULL, (int)msg->data, 0);
+ msgb_resize_area(msg, NULL, (intptr_t)msg->data, 0);
OSMO_ASSERT(e != 0);
if (OSMO_PANIC_TRY(&e))