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 |
| 30 | BuildRequires: pkgconfig(libosmocore) >= 1.0.0 |
| 31 | BuildRequires: pkgconfig(libosmogsm) >= 1.0.0 |
| 32 | BuildRequires: pkgconfig(libosmovty) >= 1.0.0 |
| 33 | BuildRequires: pkgconfig(ortp) >= 0.22 |
| 34 | BuildRequires: pkgconfig(talloc) |
| 35 | |
| 36 | %description |
| 37 | In GSM, A-bis is a BSS-internal interface link between the BTS and |
| 38 | BSC. This interface allows control of the radio equipment and radio |
| 39 | frequency allocation in the BTS. |
| 40 | |
| 41 | %package -n libosmoabis6 |
| 42 | Summary: Osmocom GSM A-bis interface library |
| 43 | License: AGPL-3.0-or-later |
| 44 | Group: System/Libraries |
| 45 | |
| 46 | %description -n libosmoabis6 |
| 47 | In the GSM system architecture, A-bis is a Base Station |
| 48 | System-internal interface linking the Base Transceiver Stations (BTS) |
| 49 | and Base Station Controller (BSC). This interface allows control of |
| 50 | the radio equipment and radio frequency allocation in the BTS. |
| 51 | |
| 52 | This library contains common/shared code regarding this A-bis |
| 53 | interface. It also implements drivers for mISDN and DAHDI-based E1 |
| 54 | cards, as well as some A-bis/IP dialects. |
| 55 | |
| 56 | %package -n libosmoabis-devel |
| 57 | Summary: Development files for the Osmocom GSM A-bis library |
| 58 | License: AGPL-3.0-or-later |
| 59 | Group: Development/Libraries/C and C++ |
| 60 | Requires: libosmoabis6 = %version |
| 61 | Requires: libosmocore-devel >= 0.3.0 |
| 62 | Requires: libosmogsm-devel >= 0.3.10 |
| 63 | |
| 64 | %description -n libosmoabis-devel |
| 65 | This library contains common/shared code regarding the GSM A-bis |
| 66 | interface. It also implements drivers for mISDN and DAHDI-based E1 |
| 67 | cards, as well as some A-bis/IP dialects. |
| 68 | |
| 69 | This subpackage contains libraries and header files for developing |
| 70 | applications that want to make use of libosmoabis. |
| 71 | |
| 72 | %package -n libosmotrau2 |
| 73 | Summary: Osmocom GSM TRAU (E1/RTP) library |
| 74 | License: GPL-2.0-or-later |
| 75 | Group: System/Libraries |
| 76 | |
| 77 | %description -n libosmotrau2 |
| 78 | This library implements the Transcoder and Rate Adaptation Unit (TRAU) for |
| 79 | GSM systems. |
| 80 | The TRAU enables the use of lower rates (32, 16 or 8 kbps) over the |
| 81 | A-bis interface instead of the 64 kbps ISDN rate for which the Mobile |
| 82 | Switching Center (MSC) is designed. |
| 83 | |
| 84 | %package -n libosmotrau-devel |
| 85 | Summary: Development files for the Osmocom TRAU (E1/RTP) library |
| 86 | License: GPL-2.0-or-later |
| 87 | Group: Development/Libraries/C and C++ |
| 88 | Requires: libosmotrau2 = %version |
| 89 | |
| 90 | %description -n libosmotrau-devel |
| 91 | This library implements the Transcoder and Rate Adaptation Unit |
| 92 | (TRAU) for GSM systems. |
| 93 | |
| 94 | This subpackage contains libraries and header files for developing |
| 95 | applications that want to make use of libosmotrau. |
| 96 | |
| 97 | %prep |
| 98 | %setup -q |
Oliver Smith | 39dffb6 | 2020-05-14 11:28:06 +0200 | [diff] [blame] | 99 | |
| 100 | %build |
| 101 | echo "%version" >.tarball-version |
| 102 | autoreconf -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} |
| 105 | export CFLAGS='%{optflags} -Wno-int-conversion' |
| 106 | %endif |
| 107 | %configure \ |
| 108 | --enable-shared \ |
| 109 | --disable-static \ |
| 110 | --disable-dahdi \ |
| 111 | --includedir="%_includedir/%name" |
| 112 | make %{?_smp_mflags} |
| 113 | |
| 114 | %install |
| 115 | b="%buildroot" |
| 116 | make %{?_smp_mflags} install DESTDIR="$b" |
| 117 | find "$b/%_libdir" -type f -name "*.la" -delete |
| 118 | |
| 119 | %check |
| 120 | make %{?_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 |