Oliver Smith | 39dffb6 | 2020-05-14 11:28:06 +0200 | [diff] [blame] | 1 | # |
| 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 Smith | 39dffb6 | 2020-05-14 11:28:06 +0200 | [diff] [blame] | 15 | Name: libosmo-abis |
Oliver Smith | 85887b2 | 2020-05-14 11:30:01 +0200 | [diff] [blame] | 16 | Version: @VERSION@ |
Oliver Smith | 39dffb6 | 2020-05-14 11:28:06 +0200 | [diff] [blame] | 17 | Release: 0 |
| 18 | Summary: Osmocom library for A-bis interface between BTS and BSC |
| 19 | License: AGPL-3.0-or-later AND GPL-2.0-or-later |
| 20 | Group: Productivity/Telephony/Utilities |
| 21 | Url: https://osmocom.org/projects/libosmo-abis/wiki/Libosmo-abis |
| 22 | |
| 23 | Source: %name-%version.tar.xz |
Oliver Smith | 39dffb6 | 2020-05-14 11:28:06 +0200 | [diff] [blame] | 24 | BuildRoot: %{_tmppath}/%{name}-%{version}-build |
| 25 | BuildRequires: automake >= 1.6 |
| 26 | #BuildRequires: dahdi-linux-devel |
| 27 | BuildRequires: libtool >= 2 |
| 28 | BuildRequires: pkgconfig >= 0.20 |
| 29 | BuildRequires: xz |
Pau Espin Pedrol | 5196cd5 | 2020-07-14 17:52:09 +0200 | [diff] [blame] | 30 | BuildRequires: pkgconfig(libosmocore) >= 1.1.0 |
| 31 | BuildRequires: pkgconfig(libosmogsm) >= 1.1.0 |
| 32 | BuildRequires: pkgconfig(libosmovty) >= 1.1.0 |
Harald Welte | dbb429c | 2020-08-04 09:50:24 +0200 | [diff] [blame] | 33 | BuildRequires: pkgconfig(libosmocodec) >= 1.1.0 |
Oliver Smith | 39dffb6 | 2020-05-14 11:28:06 +0200 | [diff] [blame] | 34 | BuildRequires: pkgconfig(ortp) >= 0.22 |
| 35 | BuildRequires: pkgconfig(talloc) |
| 36 | |
| 37 | %description |
| 38 | In GSM, A-bis is a BSS-internal interface link between the BTS and |
| 39 | BSC. This interface allows control of the radio equipment and radio |
| 40 | frequency allocation in the BTS. |
| 41 | |
Harald Welte | 2a8a34c | 2020-08-13 12:09:39 +0200 | [diff] [blame] | 42 | %package -n libosmoabis9 |
Oliver Smith | 39dffb6 | 2020-05-14 11:28:06 +0200 | [diff] [blame] | 43 | Summary: Osmocom GSM A-bis interface library |
| 44 | License: AGPL-3.0-or-later |
| 45 | Group: System/Libraries |
| 46 | |
Harald Welte | 2a8a34c | 2020-08-13 12:09:39 +0200 | [diff] [blame] | 47 | %description -n libosmoabis9 |
Oliver Smith | 39dffb6 | 2020-05-14 11:28:06 +0200 | [diff] [blame] | 48 | In the GSM system architecture, A-bis is a Base Station |
| 49 | System-internal interface linking the Base Transceiver Stations (BTS) |
| 50 | and Base Station Controller (BSC). This interface allows control of |
| 51 | the radio equipment and radio frequency allocation in the BTS. |
| 52 | |
| 53 | This library contains common/shared code regarding this A-bis |
| 54 | interface. It also implements drivers for mISDN and DAHDI-based E1 |
| 55 | cards, as well as some A-bis/IP dialects. |
| 56 | |
| 57 | %package -n libosmoabis-devel |
| 58 | Summary: Development files for the Osmocom GSM A-bis library |
| 59 | License: AGPL-3.0-or-later |
| 60 | Group: Development/Libraries/C and C++ |
Harald Welte | 2a8a34c | 2020-08-13 12:09:39 +0200 | [diff] [blame] | 61 | Requires: libosmoabis9 = %version |
Oliver Smith | 39dffb6 | 2020-05-14 11:28:06 +0200 | [diff] [blame] | 62 | Requires: libosmocore-devel >= 0.3.0 |
| 63 | Requires: libosmogsm-devel >= 0.3.10 |
| 64 | |
| 65 | %description -n libosmoabis-devel |
| 66 | This library contains common/shared code regarding the GSM A-bis |
| 67 | interface. It also implements drivers for mISDN and DAHDI-based E1 |
| 68 | cards, as well as some A-bis/IP dialects. |
| 69 | |
| 70 | This subpackage contains libraries and header files for developing |
| 71 | applications that want to make use of libosmoabis. |
| 72 | |
| 73 | %package -n libosmotrau2 |
| 74 | Summary: Osmocom GSM TRAU (E1/RTP) library |
| 75 | License: GPL-2.0-or-later |
| 76 | Group: System/Libraries |
| 77 | |
| 78 | %description -n libosmotrau2 |
| 79 | This library implements the Transcoder and Rate Adaptation Unit (TRAU) for |
| 80 | GSM systems. |
| 81 | The TRAU enables the use of lower rates (32, 16 or 8 kbps) over the |
| 82 | A-bis interface instead of the 64 kbps ISDN rate for which the Mobile |
| 83 | Switching Center (MSC) is designed. |
| 84 | |
| 85 | %package -n libosmotrau-devel |
| 86 | Summary: Development files for the Osmocom TRAU (E1/RTP) library |
| 87 | License: GPL-2.0-or-later |
| 88 | Group: Development/Libraries/C and C++ |
| 89 | Requires: libosmotrau2 = %version |
| 90 | |
| 91 | %description -n libosmotrau-devel |
| 92 | This library implements the Transcoder and Rate Adaptation Unit |
| 93 | (TRAU) for GSM systems. |
| 94 | |
| 95 | This subpackage contains libraries and header files for developing |
| 96 | applications that want to make use of libosmotrau. |
| 97 | |
| 98 | %prep |
| 99 | %setup -q |
Oliver Smith | 39dffb6 | 2020-05-14 11:28:06 +0200 | [diff] [blame] | 100 | |
| 101 | %build |
| 102 | echo "%version" >.tarball-version |
| 103 | autoreconf -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} |
| 106 | export CFLAGS='%{optflags} -Wno-int-conversion' |
| 107 | %endif |
| 108 | %configure \ |
| 109 | --enable-shared \ |
| 110 | --disable-static \ |
| 111 | --disable-dahdi \ |
| 112 | --includedir="%_includedir/%name" |
| 113 | make %{?_smp_mflags} |
| 114 | |
| 115 | %install |
| 116 | b="%buildroot" |
| 117 | make %{?_smp_mflags} install DESTDIR="$b" |
| 118 | find "$b/%_libdir" -type f -name "*.la" -delete |
| 119 | |
| 120 | %check |
| 121 | make %{?_smp_mflags} check || (find . -name testsuite.log -exec cat {} +) |
| 122 | |
Harald Welte | 2a8a34c | 2020-08-13 12:09:39 +0200 | [diff] [blame] | 123 | %post -n libosmoabis9 -p /sbin/ldconfig |
| 124 | %postun -n libosmoabis9 -p /sbin/ldconfig |
Oliver Smith | 39dffb6 | 2020-05-14 11:28:06 +0200 | [diff] [blame] | 125 | %post -n libosmotrau2 -p /sbin/ldconfig |
| 126 | %postun -n libosmotrau2 -p /sbin/ldconfig |
| 127 | |
Harald Welte | 2a8a34c | 2020-08-13 12:09:39 +0200 | [diff] [blame] | 128 | %files -n libosmoabis9 |
Oliver Smith | 39dffb6 | 2020-05-14 11:28:06 +0200 | [diff] [blame] | 129 | %defattr(-,root,root) |
Harald Welte | ca28856 | 2020-08-14 07:25:14 +0200 | [diff] [blame] | 130 | %_libdir/libosmoabis.so.9* |
Oliver Smith | 39dffb6 | 2020-05-14 11:28:06 +0200 | [diff] [blame] | 131 | |
| 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 |