blob: 3ad36b1a4c20ed35cf1fdcb28f25d74b1ad66994 [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
30BuildRequires: pkgconfig(libosmocore) >= 1.0.0
31BuildRequires: pkgconfig(libosmogsm) >= 1.0.0
32BuildRequires: pkgconfig(libosmovty) >= 1.0.0
33BuildRequires: pkgconfig(ortp) >= 0.22
34BuildRequires: pkgconfig(talloc)
35
36%description
37In GSM, A-bis is a BSS-internal interface link between the BTS and
38BSC. This interface allows control of the radio equipment and radio
39frequency allocation in the BTS.
40
41%package -n libosmoabis6
42Summary: Osmocom GSM A-bis interface library
43License: AGPL-3.0-or-later
44Group: System/Libraries
45
46%description -n libosmoabis6
47In the GSM system architecture, A-bis is a Base Station
48System-internal interface linking the Base Transceiver Stations (BTS)
49and Base Station Controller (BSC). This interface allows control of
50the radio equipment and radio frequency allocation in the BTS.
51
52This library contains common/shared code regarding this A-bis
53interface. It also implements drivers for mISDN and DAHDI-based E1
54cards, as well as some A-bis/IP dialects.
55
56%package -n libosmoabis-devel
57Summary: Development files for the Osmocom GSM A-bis library
58License: AGPL-3.0-or-later
59Group: Development/Libraries/C and C++
60Requires: libosmoabis6 = %version
61Requires: libosmocore-devel >= 0.3.0
62Requires: libosmogsm-devel >= 0.3.10
63
64%description -n libosmoabis-devel
65This library contains common/shared code regarding the GSM A-bis
66interface. It also implements drivers for mISDN and DAHDI-based E1
67cards, as well as some A-bis/IP dialects.
68
69This subpackage contains libraries and header files for developing
70applications that want to make use of libosmoabis.
71
72%package -n libosmotrau2
73Summary: Osmocom GSM TRAU (E1/RTP) library
74License: GPL-2.0-or-later
75Group: System/Libraries
76
77%description -n libosmotrau2
78This library implements the Transcoder and Rate Adaptation Unit (TRAU) for
79GSM systems.
80The TRAU enables the use of lower rates (32, 16 or 8 kbps) over the
81A-bis interface instead of the 64 kbps ISDN rate for which the Mobile
82Switching Center (MSC) is designed.
83
84%package -n libosmotrau-devel
85Summary: Development files for the Osmocom TRAU (E1/RTP) library
86License: GPL-2.0-or-later
87Group: Development/Libraries/C and C++
88Requires: libosmotrau2 = %version
89
90%description -n libosmotrau-devel
91This library implements the Transcoder and Rate Adaptation Unit
92(TRAU) for GSM systems.
93
94This subpackage contains libraries and header files for developing
95applications that want to make use of libosmotrau.
96
97%prep
98%setup -q
Oliver Smith39dffb62020-05-14 11:28:06 +020099
100%build
101echo "%version" >.tarball-version
102autoreconf -fiv
103# FIXME: Compiler warnings with ortp 0.24.2 result in hard-errors during rpm-postbuild-checks - should be fixed upstream
104%if 0%{?sle_version}
105export CFLAGS='%{optflags} -Wno-int-conversion'
106%endif
107%configure \
108 --enable-shared \
109 --disable-static \
110 --disable-dahdi \
111 --includedir="%_includedir/%name"
112make %{?_smp_mflags}
113
114%install
115b="%buildroot"
116make %{?_smp_mflags} install DESTDIR="$b"
117find "$b/%_libdir" -type f -name "*.la" -delete
118
119%check
120make %{?_smp_mflags} check || (find . -name testsuite.log -exec cat {} +)
121
122%post -n libosmoabis6 -p /sbin/ldconfig
123%postun -n libosmoabis6 -p /sbin/ldconfig
124%post -n libosmotrau2 -p /sbin/ldconfig
125%postun -n libosmotrau2 -p /sbin/ldconfig
126
127%files -n libosmoabis6
128%defattr(-,root,root)
129%_libdir/libosmoabis.so.6*
130
131%files -n libosmoabis-devel
132%defattr(-,root,root)
133%doc COPYING
134%dir %_includedir/%name
135%dir %_includedir/%name/osmocom
136%_includedir/%name/osmocom/abis/
137%_libdir/libosmoabis.so
138%_libdir/pkgconfig/libosmoabis.pc
139
140%files -n libosmotrau2
141%defattr(-,root,root)
142%_libdir/libosmotrau.so.2*
143
144%files -n libosmotrau-devel
145%defattr(-,root,root)
146%doc COPYING
147%dir %_includedir/%name
148%dir %_includedir/%name/osmocom
149%_includedir/%name/osmocom/trau
150%_libdir/libosmotrau.so
151%_libdir/pkgconfig/libosmotrau.pc
152
153%changelog