Jan Engelhardt 2016-03-11 10:48:49 +00:00 committed by Git OBS Bridge
parent 0aa0e7ce8f
commit 5be83a576a
5 changed files with 405 additions and 6 deletions

13
_service Normal file
View File

@ -0,0 +1,13 @@
<services>
<service name="tar_scm">
<param name="scm">git</param>
<param name="url">git://git.osmocom.org/libosmocore</param>
<param name="revision">master</param>
<param name="versionformat">@PARENT_TAG@.@TAG_OFFSET@</param>
</service>
<service name="recompress">
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
<service name="set_version"/>
</services>

View File

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

View File

@ -0,0 +1,387 @@
#
# spec file for package libosmocore
#
# 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
# 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: libosmocore
Version: 0.9.0.91
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+
Group: Productivity/Telephony/Utilities
Url: http://bb.osmocom.org/trac/wiki/libosmocore
#Git-Clone: git://git.osmocom.org/libosmocore
Source: %name-%version.tar.xz
Patch1: osmo-pkgconfig.diff
Patch2: test.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: autoconf
BuildRequires: automake >= 1.6
BuildRequires: gcc-c++
BuildRequires: libtool
BuildRequires: pkg-config
BuildRequires: xz
BuildRequires: pkgconfig(libpcsclite)
BuildRequires: pkgconfig(talloc)
%description
libosmocore is a library with various utility functions that were
originally developed as part of the OpenBSC project, but which are of
a more generic nature and thus useful to (at least) other programs
that we develop in the sphere of Free Software / Open Source mobile
communications.
There is no clear scope of it. It simply houses all code shared
between OsmocomBB and OpenBSC to avoid code duplication.
%package tools
Summary: GSM utilities from the osmocore project
License: GPL-2.0 and GPL-2.0+ and LGPL-3.0+ and AGPL-3.0+
Group: Productivity/Telephony/Utilities
%description tools
libosmocore is a library with various utility functions that were
originally developed as part of the OpenBSC project, but which are of
a more generic nature and thus useful to (at least) other programs
that we develop in the sphere of Free Software / Open Source mobile
communications.
This package contains GSM utilities from libosmocore.
%package -n libosmocodec0
Summary: Library for Osmocom codec-related utilities
License: GPL-2.0+
Group: System/Libraries
%description -n libosmocodec0
libosmocore is a library with various utility functions that were
originally developed as part of the OpenBSC project, but which are of
a more generic nature and thus useful to (at least) other programs
that we develop in the sphere of Free Software / Open Source mobile
communications.
%package -n libosmocodec-devel
Summary: Development files for the Osmocom codec library
License: GPL-2.0+
Group: Development/Libraries/C and C++
Requires: libosmocodec0 = %version
%description -n libosmocodec-devel
libosmocore is a library with various utility functions that were
originally developed as part of the OpenBSC project, but which are of
a more generic nature and thus useful to (at least) other programs
that we develop in the sphere of Free Software / Open Source mobile
communications.
This subpackage contains libraries and header files for developing
applications that want to make use of libosmocodec.
%package -n libosmocore7
Summary: Osmocom core library
License: GPL-2.0 and GPL-2.0+
Group: System/Libraries
# crc16.c has GPL2-only clauses, the rest (*.c) is GPL-2.0+
# talloc.c (LGPL-3.0+) is not part of libosmocore.so
%description -n libosmocore7
libosmocore is a library with various utility functions shared
between OpenBSC and OsmocomBB.
%package -n libosmocore-devel
Summary: Development files for the Osmocom core library
License: GPL-2.0 and GPL-2.0+
Group: Development/Libraries/C and C++
# crc16.h has GPL2-only clauses, the rest (*.h) is GPL-2.0+
Requires: libosmocore7 = %version
Requires: libtalloc-devel
%description -n libosmocore-devel
libosmocore is a library with various utility functions shared
between OpenBSC and OsmocomBB.
This subpackage contains libraries and header files for developing
applications that want to make use of libosmocore.
%package -n libosmoctrl0
Summary: Osmocom SNMP-like control interface library
License: GPL-2.0+
Group: System/Libraries
%description -n libosmoctrl0
libosmocore is a library with various utility functions shared
between OpenBSC and OsmocomBB.
libosmoctrl is an SNMP-like control interface. In contrast to the VTY
interface, the control interface is meant to be used by programs.
%package -n libosmoctrl-devel
Summary: Osmocom control interface library
License: GPL-2.0+
Group: Development/Libraries/C and C++
Requires: libosmocore-devel = %version
Requires: libosmoctrl0 = %version
Requires: libosmovty-devel = %version
%description -n libosmoctrl-devel
libosmoctrl is an SNMP-like control interface. In contrast to the VTY
interface, the control interface is meant to be used by programs.
This subpackage contains libraries and header files for developing
applications that want to make use of libosmoctrl.
%package -n libosmogb4
Summary: Osmocom GPRS Gb Interface (NS/BSSGP) library
License: AGPL-3.0+
Group: System/Libraries
%description -n libosmogb4
libosmocore is a library with various utility functions that were
originally developed as part of the OpenBSC project, but which are of
a more generic nature and thus useful to (at least) other programs
that we develop in the sphere of Free Software / Open Source mobile
communications.
%package -n libosmogb-devel
Summary: Development files for the Osmocom GPRS Gb interface library
License: AGPL-3.0+
Group: Development/Libraries/C and C++
Requires: libosmocore-devel = %version
Requires: libosmogb4 = %version
Requires: libosmogsm-devel = %version
%description -n libosmogb-devel
libosmocore is a library with various utility functions that were
originally developed as part of the OpenBSC project, but which are of
a more generic nature and thus useful to (at least) other programs
that we develop in the sphere of Free Software / Open Source mobile
communications.
This subpackage contains libraries and header files for developing
applications that want to make use of libosmogb.
%package -n libosmogsm5
Summary: Osmocom GSM core library
License: GPL-2.0+ and AGPL-3.0+
Group: System/Libraries
%description -n libosmogsm5
libosmocore is a library with various utility functions that were
originally developed as part of the OpenBSC project, but which are of
a more generic nature and thus useful to (at least) other programs
that we develop in the sphere of Free Software / Open Source mobile
communications.
%package -n libosmogsm-devel
Summary: Development files for the Osmocom GSM core library
License: GPL-2.0+ and AGPL-3.0+
Group: Development/Libraries/C and C++
Requires: libosmocore-devel = %version
Requires: libosmogsm5 = %version
%description -n libosmogsm-devel
libosmocore is a library with various utility functions that were
originally developed as part of the OpenBSC project, but which are of
a more generic nature and thus useful to (at least) other programs
that we develop in the sphere of Free Software / Open Source mobile
communications.
This subpackage contains libraries and header files for developing
applications that want to make use of libosmogsm.
%package -n libosmosim0
Summary: Osmocom SIM card related utility library
License: GPL-2.0+
Group: System/Libraries
%description -n libosmosim0
libosmocore is a library with various utility functions that were
originally developed as part of the OpenBSC project, but which are of
a more generic nature and thus useful to (at least) other programs
that we develop in the sphere of Free Software / Open Source mobile
communications.
%package -n libosmosim-devel
Summary: Development files for the Osmocom SIM card utility library
License: GPL-2.0+
Group: Development/Libraries/C and C++
Requires: libosmocore-devel = %version
Requires: libosmosim0 = %version
%description -n libosmosim-devel
libosmocore is a library with various utility functions that were
originally developed as part of the OpenBSC project, but which are of
a more generic nature and thus useful to (at least) other programs
that we develop in the sphere of Free Software / Open Source mobile
communications.
This subpackage contains libraries and header files for developing
applications that want to make use of libosmosim.
%package -n libosmovty3
Summary: Osmocom VTY interface library
License: GPL-2.0+
Group: System/Libraries
%description -n libosmovty3
libosmocore is a library with various utility functions that were
originally developed as part of the OpenBSC project, but which are of
a more generic nature and thus useful to (at least) other programs
that we develop in the sphere of Free Software / Open Source mobile
communications.
%package -n libosmovty-devel
Summary: Development files for the Osmocom VTY interface library
License: GPL-2.0+
Group: Development/Libraries/C and C++
Requires: libosmocore-devel = %version
Requires: libosmovty3 = %version
%description -n libosmovty-devel
libosmocore is a library with various utility functions that were
originally developed as part of the OpenBSC project, but which are of
a more generic nature and thus useful to (at least) other programs
that we develop in the sphere of Free Software / Open Source mobile
communications.
This subpackage contains libraries and header files for developing
applications that want to make use of libosmovty.
%prep
%setup -q
%patch -P 1 -P 2 -p1
%build
echo "%version" >.tarball-version
autoreconf -fiv
%configure --enable-shared --disable-static \
--includedir="%_includedir/%name"
make %{?_smp_mflags}
%install
b="%buildroot"
make %{?_smp_mflags} install DESTDIR="$b"
find "$b/%_libdir" -type f -name "*.la" -delete
%check
# susceptible to timing issues
make %{?_smp_mflags} check || :
%post -n libosmocodec0 -p /sbin/ldconfig
%postun -n libosmocodec0 -p /sbin/ldconfig
%post -n libosmocore7 -p /sbin/ldconfig
%postun -n libosmocore7 -p /sbin/ldconfig
%post -n libosmoctrl0 -p /sbin/ldconfig
%postun -n libosmoctrl0 -p /sbin/ldconfig
%post -n libosmogb4 -p /sbin/ldconfig
%postun -n libosmogb4 -p /sbin/ldconfig
%post -n libosmogsm5 -p /sbin/ldconfig
%postun -n libosmogsm5 -p /sbin/ldconfig
%post -n libosmosim0 -p /sbin/ldconfig
%postun -n libosmosim0 -p /sbin/ldconfig
%post -n libosmovty3 -p /sbin/ldconfig
%postun -n libosmovty3 -p /sbin/ldconfig
%files tools
%defattr(-,root,root)
%_bindir/osmo-*
%files -n libosmocodec0
%defattr(-,root,root)
%_libdir/libosmocodec.so.0*
%files -n libosmocodec-devel
%defattr(-,root,root)
%dir %_includedir/%name
%dir %_includedir/%name/osmocom
%_includedir/%name/osmocom/codec/
%_libdir/libosmocodec.so
%_libdir/pkgconfig/libosmocodec.pc
%files -n libosmocore7
%defattr(-,root,root)
%_libdir/libosmocore.so.7*
%files -n libosmocore-devel
%defattr(-,root,root)
%dir %_includedir/%name
%dir %_includedir/%name/osmocom
%_includedir/%name/osmocom/core/
%_libdir/libosmocore.so
%_libdir/pkgconfig/libosmocore.pc
%files -n libosmoctrl0
%defattr(-,root,root)
%_libdir/libosmoctrl.so.0*
%files -n libosmoctrl-devel
%defattr(-,root,root)
%dir %_includedir/%name
%dir %_includedir/%name/osmocom
%_includedir/%name/osmocom/ctrl/
%_libdir/libosmoctrl.so
%_libdir/pkgconfig/libosmoctrl.pc
%files -n libosmogb4
%defattr(-,root,root)
%_libdir/libosmogb.so.4*
%files -n libosmogb-devel
%defattr(-,root,root)
%dir %_includedir/%name
%dir %_includedir/%name/osmocom
%_includedir/%name/osmocom/gprs/
%_libdir/libosmogb.so
%_libdir/pkgconfig/libosmogb.pc
%files -n libosmogsm5
%defattr(-,root,root)
%_libdir/libosmogsm.so.5*
%files -n libosmogsm-devel
%defattr(-,root,root)
%dir %_includedir/%name
%dir %_includedir/%name/osmocom
%_includedir/%name/osmocom/gsm/
%_includedir/%name/osmocom/crypt/
%_libdir/libosmogsm.so
%_libdir/pkgconfig/libosmogsm.pc
%files -n libosmosim0
%defattr(-,root,root)
%_libdir/libosmosim.so.0*
%files -n libosmosim-devel
%defattr(-,root,root)
%dir %_includedir/%name
%dir %_includedir/%name/osmocom/
%_includedir/%name/osmocom/sim/
%_libdir/libosmosim.so
%_libdir/pkgconfig/libosmosim.pc
%files -n libosmovty3
%defattr(-,root,root)
%_libdir/libosmovty.so.3*
%files -n libosmovty-devel
%defattr(-,root,root)
%dir %_includedir/%name
%dir %_includedir/%name/osmocom
%_includedir/%name/osmocom/vty/
%_libdir/libosmovty.so
%_libdir/pkgconfig/libosmovty.pc
%changelog

View File

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

View File

@ -17,7 +17,7 @@
Name: libosmocore
Version: 0.9.0.58
Version: 0.9.0.91
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,7 +25,6 @@ Group: Productivity/Telephony/Utilities
Url: http://bb.osmocom.org/trac/wiki/libosmocore
#Git-Clone: git://git.osmocom.org/libosmocore
#Snapshot: 0.9.0-58-gfb7e683
Source: %name-%version.tar.xz
Patch1: osmo-pkgconfig.diff
Patch2: test.diff
@ -262,7 +261,7 @@ This subpackage contains libraries and header files for developing
applications that want to make use of libosmovty.
%prep
%setup -qn %name
%setup -q
%patch -P 1 -P 2 -p1
%build