blob: 8add588e4e6a37397f33edf3ff887c332ddcb670 [file] [log] [blame]
Oliver Smith39dffb62020-05-14 11:28:06 +02001#
2# spec file for package libosmo-abis
3#
4# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
5#
6# All modifications and additions to the file contributed by third parties
7# remain the property of their copyright owners, unless otherwise agreed
8# upon. The license for this file, and modifications and additions to the
9# file, is the same license as for the pristine package itself (unless the
10# license for the pristine package is not an Open Source License, in which
11# case the license is the MIT License). An "Open Source License" is a
12# license that conforms to the Open Source Definition (Version 1.9)
13# published by the Open Source Initiative.
14
Oliver Smith39dffb62020-05-14 11:28:06 +020015Name: libosmo-abis
Oliver Smith85887b22020-05-14 11:30:01 +020016Version: @VERSION@
Oliver Smith39dffb62020-05-14 11:28:06 +020017Release: 0
18Summary: Osmocom library for A-bis interface between BTS and BSC
19License: AGPL-3.0-or-later AND GPL-2.0-or-later
20Group: Productivity/Telephony/Utilities
21Url: https://osmocom.org/projects/libosmo-abis/wiki/Libosmo-abis
22
23Source: %name-%version.tar.xz
Oliver Smith39dffb62020-05-14 11:28:06 +020024BuildRoot: %{_tmppath}/%{name}-%{version}-build
25BuildRequires: automake >= 1.6
26#BuildRequires: dahdi-linux-devel
27BuildRequires: libtool >= 2
28BuildRequires: pkgconfig >= 0.20
29BuildRequires: xz
Pau Espin Pedrola6eda5a2021-11-16 14:18:45 +010030BuildRequires: pkgconfig(libosmocore) >= 1.6.0
31BuildRequires: pkgconfig(libosmogsm) >= 1.6.0
32BuildRequires: pkgconfig(libosmovty) >= 1.6.0
33BuildRequires: pkgconfig(libosmocodec) >= 1.6.0
34BuildRequires: pkgconfig(ortp) >= 0.22.0
Oliver Smith39dffb62020-05-14 11:28:06 +020035BuildRequires: pkgconfig(talloc)
36
37%description
38In GSM, A-bis is a BSS-internal interface link between the BTS and
39BSC. This interface allows control of the radio equipment and radio
40frequency allocation in the BTS.
41
Pau Espin Pedrolde169192021-02-23 16:21:49 +010042%package -n libosmoabis10
Oliver Smith39dffb62020-05-14 11:28:06 +020043Summary: Osmocom GSM A-bis interface library
44License: AGPL-3.0-or-later
45Group: System/Libraries
46
Pau Espin Pedrolde169192021-02-23 16:21:49 +010047%description -n libosmoabis10
Oliver Smith39dffb62020-05-14 11:28:06 +020048In the GSM system architecture, A-bis is a Base Station
49System-internal interface linking the Base Transceiver Stations (BTS)
50and Base Station Controller (BSC). This interface allows control of
51the radio equipment and radio frequency allocation in the BTS.
52
53This library contains common/shared code regarding this A-bis
54interface. It also implements drivers for mISDN and DAHDI-based E1
55cards, as well as some A-bis/IP dialects.
56
57%package -n libosmoabis-devel
58Summary: Development files for the Osmocom GSM A-bis library
59License: AGPL-3.0-or-later
60Group: Development/Libraries/C and C++
Pau Espin Pedrolde169192021-02-23 16:21:49 +010061Requires: libosmoabis10 = %version
Pau Espin Pedrola6eda5a2021-11-16 14:18:45 +010062Requires: libosmocore-devel >= 1.6.0
63Requires: libosmogsm-devel >= 1.6.0
Oliver Smith39dffb62020-05-14 11:28:06 +020064
65%description -n libosmoabis-devel
66This library contains common/shared code regarding the GSM A-bis
67interface. It also implements drivers for mISDN and DAHDI-based E1
68cards, as well as some A-bis/IP dialects.
69
70This subpackage contains libraries and header files for developing
71applications that want to make use of libosmoabis.
72
73%package -n libosmotrau2
74Summary: Osmocom GSM TRAU (E1/RTP) library
75License: GPL-2.0-or-later
76Group: System/Libraries
77
78%description -n libosmotrau2
79This library implements the Transcoder and Rate Adaptation Unit (TRAU) for
80GSM systems.
81The TRAU enables the use of lower rates (32, 16 or 8 kbps) over the
82A-bis interface instead of the 64 kbps ISDN rate for which the Mobile
83Switching Center (MSC) is designed.
84
85%package -n libosmotrau-devel
86Summary: Development files for the Osmocom TRAU (E1/RTP) library
87License: GPL-2.0-or-later
88Group: Development/Libraries/C and C++
89Requires: libosmotrau2 = %version
90
91%description -n libosmotrau-devel
92This library implements the Transcoder and Rate Adaptation Unit
93(TRAU) for GSM systems.
94
95This subpackage contains libraries and header files for developing
96applications that want to make use of libosmotrau.
97
98%prep
99%setup -q
Oliver Smith39dffb62020-05-14 11:28:06 +0200100
101%build
102echo "%version" >.tarball-version
103autoreconf -fiv
104# FIXME: Compiler warnings with ortp 0.24.2 result in hard-errors during rpm-postbuild-checks - should be fixed upstream
105%if 0%{?sle_version}
106export CFLAGS='%{optflags} -Wno-int-conversion'
107%endif
108%configure \
109 --enable-shared \
110 --disable-static \
111 --disable-dahdi \
112 --includedir="%_includedir/%name"
113make %{?_smp_mflags}
114
115%install
116b="%buildroot"
117make %{?_smp_mflags} install DESTDIR="$b"
118find "$b/%_libdir" -type f -name "*.la" -delete
119
120%check
121make %{?_smp_mflags} check || (find . -name testsuite.log -exec cat {} +)
122
Pau Espin Pedrolde169192021-02-23 16:21:49 +0100123%post -n libosmoabis10 -p /sbin/ldconfig
124%postun -n libosmoabis10 -p /sbin/ldconfig
Oliver Smith39dffb62020-05-14 11:28:06 +0200125%post -n libosmotrau2 -p /sbin/ldconfig
126%postun -n libosmotrau2 -p /sbin/ldconfig
127
Pau Espin Pedrolde169192021-02-23 16:21:49 +0100128%files -n libosmoabis10
Oliver Smith39dffb62020-05-14 11:28:06 +0200129%defattr(-,root,root)
Harald Welte95665642021-02-24 09:29:59 +0100130%_libdir/libosmoabis.so.10*
Oliver Smith39dffb62020-05-14 11:28:06 +0200131
132%files -n libosmoabis-devel
133%defattr(-,root,root)
134%doc COPYING
135%dir %_includedir/%name
136%dir %_includedir/%name/osmocom
137%_includedir/%name/osmocom/abis/
138%_libdir/libosmoabis.so
139%_libdir/pkgconfig/libosmoabis.pc
140
141%files -n libosmotrau2
142%defattr(-,root,root)
143%_libdir/libosmotrau.so.2*
144
145%files -n libosmotrau-devel
146%defattr(-,root,root)
147%doc COPYING
148%dir %_includedir/%name
149%dir %_includedir/%name/osmocom
150%_includedir/%name/osmocom/trau
151%_libdir/libosmotrau.so
152%_libdir/pkgconfig/libosmotrau.pc
153
154%changelog