1
0
forked from pool/libosmo-abis
libosmo-abis/libosmo-abis.spec

150 lines
4.8 KiB
RPMSpec
Raw Normal View History

#
# spec file for package libosmo-abis
#
# 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-abis
2024-10-26 15:58:34 +02:00
Version: 1.6.0
Release: 0
Summary: Osmocom library for 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://osmocom.org/projects/libosmo-abis/wiki/Libosmo-abis
Source: https://github.com/osmocom/libosmo-abis/archive/%version.tar.gz
Patch1: osmo-talloc.diff
BuildRequires: automake >= 1.6
BuildRequires: libtool >= 2
BuildRequires: pkg-config >= 0.20
BuildRequires: xz
2024-10-26 15:58:34 +02:00
BuildRequires: pkgconfig(libosmo-e1d) >= 0.7.0
BuildRequires: pkgconfig(libosmocodec) >= 1.10.0
BuildRequires: pkgconfig(libosmocore) >= 1.10.0
BuildRequires: pkgconfig(libosmogsm) >= 1.10.0
BuildRequires: pkgconfig(libosmovty) >= 1.10.0
BuildRequires: pkgconfig(ortp) >= 0.22
BuildRequires: pkgconfig(talloc)
%description
In GSM, A-bis is a BSS-internal interface link between the BTS and
BSC. This interface allows control of the radio equipment and radio
frequency allocation in the BTS.
%package -n libosmoabis13
Summary: Osmocom GSM A-bis interface library
License: AGPL-3.0-or-later
Group: System/Libraries
%description -n libosmoabis13
In the GSM system architecture, A-bis is a Base Station
System-internal interface linking the Base Transceiver Stations (BTS)
and Base Station Controller (BSC). This interface allows control of
the radio equipment and radio frequency allocation in the BTS.
This library contains common/shared code regarding this A-bis
interface. It also implements drivers for mISDN and DAHDI-based E1
cards, as well as some A-bis/IP dialects.
%package -n libosmoabis-devel
Summary: Development files for the Osmocom GSM A-bis library
License: AGPL-3.0-or-later
Group: Development/Libraries/C and C++
Requires: libosmoabis13 = %version
Requires: libosmocore-devel >= 1.4.0
Requires: libosmogsm-devel >= 1.4.0
%description -n libosmoabis-devel
This library contains common/shared code regarding the GSM A-bis
interface. It also implements drivers for mISDN and DAHDI-based E1
cards, as well as some A-bis/IP dialects.
This subpackage contains libraries and header files for developing
applications that want to make use of libosmoabis.
2024-10-26 15:58:34 +02:00
%package -n libosmotrau10
Summary: Osmocom GSM TRAU (E1/RTP) library
License: GPL-2.0-or-later
Group: System/Libraries
2024-10-26 15:58:34 +02:00
%description -n libosmotrau10
This library implements the Transcoder and Rate Adaptation Unit (TRAU) for
GSM systems.
The TRAU enables the use of lower rates (32, 16 or 8 kbps) over the
A-bis interface instead of the 64 kbps ISDN rate for which the Mobile
Switching Center (MSC) is designed.
%package -n libosmotrau-devel
Summary: Development files for the Osmocom TRAU (E1/RTP) library
License: GPL-2.0-or-later
Group: Development/Libraries/C and C++
2024-10-26 15:58:34 +02:00
Requires: libosmotrau10 = %version-%release
%description -n libosmotrau-devel
This library implements the Transcoder and Rate Adaptation Unit
(TRAU) for GSM systems.
This subpackage contains libraries and header files for developing
applications that want to make use of libosmotrau.
%prep
%autosetup -p1
%build
echo "%version" >.tarball-version
autoreconf -fiv
# bugzilla.opensuse.org/795968 for rationale
%configure --includedir="%_includedir/%name" \
--enable-shared --disable-static --disable-dahdi --enable-e1d
%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 "{}" "+"
%ifarch %ix86 x86_64
exit 1
%endif
fi
2024-10-26 15:58:34 +02:00
%ldconfig_scriptlets -n libosmoabis13
%ldconfig_scriptlets -n libosmotrau10
%files -n libosmoabis13
%_libdir/libosmoabis.so.*
%files -n libosmoabis-devel
%license COPYING
%dir %_includedir/%name/
%dir %_includedir/%name/osmocom/
%_includedir/%name/osmocom/abis/
%_libdir/libosmoabis.so
%_libdir/pkgconfig/libosmoabis.pc
2024-10-26 15:58:34 +02:00
%files -n libosmotrau10
%_libdir/libosmotrau.so.*
%files -n libosmotrau-devel
%license COPYING
%dir %_includedir/%name/
%dir %_includedir/%name/osmocom/
%_includedir/%name/osmocom/trau/
%_libdir/libosmotrau.so
%_libdir/pkgconfig/libosmotrau.pc
%changelog