Oliver Smith | bfeeb1c | 2020-05-14 11:23:13 +0200 | [diff] [blame] | 1 | # |
| 2 | # spec file for package libosmocore |
| 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 | bfeeb1c | 2020-05-14 11:23:13 +0200 | [diff] [blame] | 15 | Name: libosmocore |
Oliver Smith | 6370f5d | 2020-05-14 11:27:08 +0200 | [diff] [blame] | 16 | Version: @VERSION@ |
Oliver Smith | bfeeb1c | 2020-05-14 11:23:13 +0200 | [diff] [blame] | 17 | Release: 0 |
| 18 | Summary: The Open Source Mobile Communications Core Library |
| 19 | License: GPL-2.0-only AND GPL-2.0-or-later AND LGPL-2.1-or-later AND AGPL-3.0-or-later |
| 20 | Group: Productivity/Telephony/Utilities |
| 21 | Url: https://osmocom.org/projects/libosmocore/wiki/Libosmocore |
| 22 | Source: %name-%version.tar.xz |
| 23 | BuildRequires: automake >= 1.6 |
| 24 | BuildRequires: libtool >= 2 |
| 25 | BuildRequires: lksctp-tools-devel |
| 26 | BuildRequires: pkg-config >= 0.20 |
Oliver Smith | 6370f5d | 2020-05-14 11:27:08 +0200 | [diff] [blame] | 27 | BuildRequires: python3 |
Oliver Smith | bfeeb1c | 2020-05-14 11:23:13 +0200 | [diff] [blame] | 28 | BuildRequires: xz |
| 29 | BuildRequires: pkgconfig(gnutls) >= 2.12.0 |
| 30 | BuildRequires: pkgconfig(libpcsclite) |
| 31 | BuildRequires: pkgconfig(libusb-1.0) |
Pau Espin Pedrol | 4a15c2d | 2021-11-16 12:47:03 +0100 | [diff] [blame] | 32 | BuildRequires: pkgconfig(talloc) >= 2.1.0 |
Harald Welte | 53a2fde | 2020-12-01 22:21:14 +0100 | [diff] [blame] | 33 | BuildRequires: pkgconfig(libmnl) |
Harald Welte | 700822b | 2021-02-03 14:52:13 +0100 | [diff] [blame] | 34 | BuildRequires: pkgconfig(libsystemd) |
Oliver Smith | 8c0a2c7 | 2023-08-29 14:52:47 +0200 | [diff] [blame] | 35 | %if 0%{?centos_ver} != 7 |
Daniel Willmann | f91d2aa | 2023-01-04 18:20:55 +0100 | [diff] [blame] | 36 | BuildRequires: pkgconfig(liburing) |
Oliver Smith | 8c0a2c7 | 2023-08-29 14:52:47 +0200 | [diff] [blame] | 37 | %endif |
Oliver Smith | bfeeb1c | 2020-05-14 11:23:13 +0200 | [diff] [blame] | 38 | |
| 39 | %description |
| 40 | libosmocore is a package with various utility functions that were |
| 41 | originally developed as part of the OpenBSC project, but which are of |
| 42 | a more generic nature and thus useful to (at least) other programs |
| 43 | that Osmocom develops w.r.t. mobile communications. |
| 44 | |
| 45 | There is no clear scope of it. It simply houses all code shared |
| 46 | between OsmocomBB and OpenBSC to avoid code duplication. |
| 47 | |
| 48 | %package tools |
| 49 | Summary: GSM utilities from the osmocore project |
| 50 | License: GPL-2.0-only AND GPL-2.0-or-later AND LGPL-3.0-or-later AND AGPL-3.0-or-later |
| 51 | Group: Productivity/Telephony/Utilities |
| 52 | Provides: %name-utils = %version-%release |
| 53 | |
| 54 | %description tools |
| 55 | libosmocore is a package with various utility functions that were |
| 56 | originally developed as part of the OpenBSC project. |
| 57 | |
| 58 | This package contains a program for frequency calculation for GSM |
| 59 | called "osmo-arfcn", and a program called "osmo-auc-gen" that is used |
Vadim Yanitskiy | 663eaaa | 2021-12-27 14:49:16 +0600 | [diff] [blame] | 60 | for testing GSM authentication, as well as "osmo-config-merge", a tool |
| 61 | for merging Osmocom configuration files. |
Oliver Smith | bfeeb1c | 2020-05-14 11:23:13 +0200 | [diff] [blame] | 62 | |
Pau Espin Pedrol | aca2c72 | 2023-09-12 13:15:53 +0200 | [diff] [blame] | 63 | %package -n libosmocodec4 |
Oliver Smith | bfeeb1c | 2020-05-14 11:23:13 +0200 | [diff] [blame] | 64 | Summary: GSM 06.10, 06.20, 06.60, 06.90 codec library |
| 65 | License: GPL-2.0-or-later |
| 66 | Group: System/Libraries |
| 67 | |
Pau Espin Pedrol | aca2c72 | 2023-09-12 13:15:53 +0200 | [diff] [blame] | 68 | %description -n libosmocodec4 |
Oliver Smith | bfeeb1c | 2020-05-14 11:23:13 +0200 | [diff] [blame] | 69 | The libosmocodec library contains an implementation of multiple |
| 70 | GSM codecs: |
| 71 | |
| 72 | * GSM 06.10 Full Rate (FR) codec |
| 73 | * GSM 06.20 Half Rate (HR) codec |
| 74 | * GSM 06.60 Enhanced Full Range (EFR) codec |
| 75 | * GSM 06.90 Adaptive Multi-Rate (AMR) codec |
| 76 | |
| 77 | %package -n libosmocodec-devel |
| 78 | Summary: Development files for the Osmocom GSM codec library |
| 79 | License: GPL-2.0-or-later |
| 80 | Group: Development/Libraries/C and C++ |
Pau Espin Pedrol | aca2c72 | 2023-09-12 13:15:53 +0200 | [diff] [blame] | 81 | Requires: libosmocodec4 = %version |
Oliver Smith | bfeeb1c | 2020-05-14 11:23:13 +0200 | [diff] [blame] | 82 | |
| 83 | %description -n libosmocodec-devel |
| 84 | The libosmocodec library contains an implementation of multiple |
| 85 | GSM codecs. |
| 86 | |
| 87 | This subpackage contains libraries and header files for developing |
| 88 | applications that want to make use of libosmocodec. |
| 89 | |
| 90 | %package -n libosmocoding0 |
| 91 | Summary: GSM/GPRS/EDGE transcoding routines library |
| 92 | License: GPL-2.0-or-later |
| 93 | Group: System/Libraries |
| 94 | |
| 95 | %description -n libosmocoding0 |
| 96 | libosmocoding is a library which provides GSM, GPRS and EDGE |
| 97 | transcoding routines. |
| 98 | |
| 99 | The following data types are currently supported: xCCH, PDTCH (CS 1-4 |
| 100 | and MCS 1-9), TCH/FR, TCH/HR, TCH/AFS, RCH/AHS, RACH and SCH. |
| 101 | |
| 102 | %package -n libosmocoding-devel |
| 103 | Summary: Development files for the Osmocom transcoding library |
| 104 | License: GPL-2.0-or-later |
| 105 | Group: Development/Libraries/C and C++ |
| 106 | Requires: libosmocodec-devel = %version |
| 107 | Requires: libosmocoding0 = %version |
| 108 | Requires: libosmocore-devel = %version |
| 109 | Requires: libosmogsm-devel = %version |
| 110 | |
| 111 | %description -n libosmocoding-devel |
| 112 | libosmocoding is a library which provides GSM, GPRS and EDGE |
| 113 | transcoding routines. |
| 114 | |
| 115 | This subpackage contains libraries and header files for developing |
| 116 | applications that want to make use of libosmocoding. |
| 117 | |
Pau Espin Pedrol | aca2c72 | 2023-09-12 13:15:53 +0200 | [diff] [blame] | 118 | %package -n libosmocore21 |
Oliver Smith | bfeeb1c | 2020-05-14 11:23:13 +0200 | [diff] [blame] | 119 | Summary: Osmocom core library |
| 120 | # crc16.c has GPL2-only clauses, the rest (*.c) is GPL-2.0+ |
| 121 | License: GPL-2.0-only AND GPL-2.0-or-later |
| 122 | Group: System/Libraries |
| 123 | |
Pau Espin Pedrol | aca2c72 | 2023-09-12 13:15:53 +0200 | [diff] [blame] | 124 | %description -n libosmocore21 |
Oliver Smith | bfeeb1c | 2020-05-14 11:23:13 +0200 | [diff] [blame] | 125 | libosmocore is a library with various utility functions shared |
| 126 | between OpenBSC and OsmocomBB. |
| 127 | |
| 128 | %package -n libosmocore-devel |
| 129 | Summary: Development files for the Osmocom core library |
| 130 | # crc16.h has GPL2-only clauses, the rest (*.h) is GPL-2.0+ |
| 131 | License: GPL-2.0-only AND GPL-2.0-or-later |
| 132 | Group: Development/Libraries/C and C++ |
Pau Espin Pedrol | aca2c72 | 2023-09-12 13:15:53 +0200 | [diff] [blame] | 133 | Requires: libosmocore21 = %version |
Oliver Smith | bfeeb1c | 2020-05-14 11:23:13 +0200 | [diff] [blame] | 134 | Requires: libtalloc-devel |
Harald Welte | c73a160 | 2022-03-25 11:27:35 +0100 | [diff] [blame] | 135 | Requires: lksctp-tools-devel |
Oliver Smith | bfeeb1c | 2020-05-14 11:23:13 +0200 | [diff] [blame] | 136 | |
| 137 | %description -n libosmocore-devel |
| 138 | libosmocore is a library with various utility functions shared |
| 139 | between OpenBSC and OsmocomBB. |
| 140 | |
| 141 | This subpackage contains libraries and header files for developing |
| 142 | applications that want to make use of libosmocore. |
| 143 | |
| 144 | %package -n libosmoctrl0 |
| 145 | Summary: Osmocom SNMP-like control interface library |
| 146 | License: GPL-2.0-or-later |
| 147 | Group: System/Libraries |
| 148 | |
| 149 | %description -n libosmoctrl0 |
| 150 | libosmocore is a package with various utility functions that were |
| 151 | originally developed as part of the OpenBSC project. |
| 152 | |
| 153 | libosmoctrl is an SNMP-like control interface. In contrast to the VTY |
| 154 | interface, the control interface is meant to be used by programs. |
| 155 | |
| 156 | %package -n libosmoctrl-devel |
| 157 | Summary: Osmocom control interface library |
| 158 | License: GPL-2.0-or-later |
| 159 | Group: Development/Libraries/C and C++ |
| 160 | Requires: libosmocore-devel = %version |
| 161 | Requires: libosmoctrl0 = %version |
| 162 | Requires: libosmogsm-devel = %version |
| 163 | |
| 164 | %description -n libosmoctrl-devel |
| 165 | libosmoctrl is an SNMP-like control interface. In contrast to the VTY |
| 166 | interface, the control interface is meant to be used by programs. |
| 167 | |
| 168 | This subpackage contains libraries and header files for developing |
| 169 | applications that want to make use of libosmoctrl. |
| 170 | |
Pau Espin Pedrol | a1584d2 | 2022-06-28 17:00:51 +0200 | [diff] [blame] | 171 | %package -n libosmogb14 |
Oliver Smith | bfeeb1c | 2020-05-14 11:23:13 +0200 | [diff] [blame] | 172 | Summary: Osmocom GPRS Gb Interface (NS/BSSGP) library |
| 173 | License: AGPL-3.0-or-later |
| 174 | Group: System/Libraries |
| 175 | |
Pau Espin Pedrol | a1584d2 | 2022-06-28 17:00:51 +0200 | [diff] [blame] | 176 | %description -n libosmogb14 |
Oliver Smith | bfeeb1c | 2020-05-14 11:23:13 +0200 | [diff] [blame] | 177 | libosmocore is a package with various utility functions that were |
| 178 | originally developed as part of the OpenBSC project. |
| 179 | |
| 180 | The libosmogb library contains a GPRS BSSGP protocol implementation. |
| 181 | |
| 182 | %package -n libosmogb-devel |
| 183 | Summary: Development files for the Osmocom GPRS Gb interface library |
| 184 | License: AGPL-3.0-or-later |
| 185 | Group: Development/Libraries/C and C++ |
| 186 | Requires: libosmocore-devel = %version |
Pau Espin Pedrol | a1584d2 | 2022-06-28 17:00:51 +0200 | [diff] [blame] | 187 | Requires: libosmogb14 = %version |
Oliver Smith | bfeeb1c | 2020-05-14 11:23:13 +0200 | [diff] [blame] | 188 | Requires: libosmovty-devel = %version |
| 189 | |
| 190 | %description -n libosmogb-devel |
| 191 | The libosmogb library contains a GPRS BSSGP protocol implementation. |
| 192 | |
| 193 | This subpackage contains libraries and header files for developing |
| 194 | applications that want to make use of libosmogb. |
| 195 | |
Pau Espin Pedrol | aca2c72 | 2023-09-12 13:15:53 +0200 | [diff] [blame] | 196 | %package -n libosmogsm20 |
Oliver Smith | bfeeb1c | 2020-05-14 11:23:13 +0200 | [diff] [blame] | 197 | Summary: Osmocom GSM utility library |
| 198 | License: GPL-2.0-or-later AND AGPL-3.0-or-later |
| 199 | Group: System/Libraries |
| 200 | |
Pau Espin Pedrol | aca2c72 | 2023-09-12 13:15:53 +0200 | [diff] [blame] | 201 | %description -n libosmogsm20 |
Oliver Smith | bfeeb1c | 2020-05-14 11:23:13 +0200 | [diff] [blame] | 202 | libosmocore is a package with various utility functions that were |
| 203 | originally developed as part of the OpenBSC project. |
| 204 | |
| 205 | The libosmogsm library in particular is a collection of common code |
| 206 | used in various GSM related sub-projects inside the Osmocom family of |
| 207 | projects. It includes A5/1 and A5/2 ciphers, COMP128v1, a LAPDm |
| 208 | implementation, a GSM TLV parser, SMS utility routines as well as |
| 209 | protocol definitions for a series of protocols. |
| 210 | |
| 211 | %package -n libosmogsm-devel |
| 212 | Summary: Development files for the Osmocom GSM utility library |
| 213 | License: GPL-2.0-or-later AND AGPL-3.0-or-later |
| 214 | Group: Development/Libraries/C and C++ |
| 215 | Requires: libosmocore-devel = %version |
Pau Espin Pedrol | aca2c72 | 2023-09-12 13:15:53 +0200 | [diff] [blame] | 216 | Requires: libosmogsm20 = %version |
Harald Welte | d55a209 | 2022-11-29 22:33:54 +0100 | [diff] [blame] | 217 | Requires: libosmoisdn-devel = %version |
| 218 | Requires: libosmoisdn0 = %version |
Oliver Smith | bfeeb1c | 2020-05-14 11:23:13 +0200 | [diff] [blame] | 219 | |
| 220 | %description -n libosmogsm-devel |
| 221 | The libosmogsm library in particular is a collection of common code |
| 222 | used in various GSM related sub-projects inside the Osmocom family of |
| 223 | projects. It includes A5/1 and A5/2 ciphers, COMP128v1, a LAPDm |
| 224 | implementation, a GSM TLV parser, SMS utility routines as well as |
| 225 | protocol definitions for a series of protocols. |
| 226 | |
| 227 | This subpackage contains libraries and header files for developing |
| 228 | applications that want to make use of libosmogsm. |
| 229 | |
Harald Welte | d55a209 | 2022-11-29 22:33:54 +0100 | [diff] [blame] | 230 | %package -n libosmoisdn0 |
| 231 | Summary: Osmocom ISDN utility library |
| 232 | License: GPL-2.0-or-later |
| 233 | Group: System/Libraries |
| 234 | |
| 235 | %description -n libosmoisdn0 |
| 236 | libosmocore is a package with various utility functions that were |
| 237 | originally developed as part of the OpenBSC project. |
| 238 | |
| 239 | The libosmoisdn library in particular is a collection of common code used in |
| 240 | various ISDN related sub-projects inside the Osmocom family of projects. It |
| 241 | includes an I.460 sub-channel multiplex and a generic LAPD core. |
| 242 | |
| 243 | %package -n libosmoisdn-devel |
| 244 | Summary: Development files for the Osmocom ISDN utility library |
| 245 | License: GPL-2.0-or-later |
| 246 | Group: Development/Libraries/C and C++ |
| 247 | Requires: libosmocore-devel = %version |
| 248 | Requires: libosmoisdn0 = %version |
| 249 | |
| 250 | %description -n libosmoisdn-devel |
| 251 | The libosmoisdn library in particular is a collection of common code used in |
| 252 | various ISDN related sub-projects inside the Osmocom family of projects. It |
| 253 | includes an I.460 sub-channel multiplex and a generic LAPD core. |
| 254 | |
| 255 | This subpackage contains libraries and header files for developing |
| 256 | applications that want to make use of libosmogsm. |
| 257 | |
Harald Welte | 5c5713e | 2020-08-13 11:06:36 +0200 | [diff] [blame] | 258 | %package -n libosmosim2 |
Oliver Smith | bfeeb1c | 2020-05-14 11:23:13 +0200 | [diff] [blame] | 259 | Summary: Osmocom SIM card related utility library |
| 260 | License: GPL-2.0-or-later |
| 261 | Group: System/Libraries |
| 262 | |
Harald Welte | 5c5713e | 2020-08-13 11:06:36 +0200 | [diff] [blame] | 263 | %description -n libosmosim2 |
Oliver Smith | bfeeb1c | 2020-05-14 11:23:13 +0200 | [diff] [blame] | 264 | libosmocore is a package with various utility functions that were |
| 265 | originally developed as part of the OpenBSC project. |
| 266 | |
| 267 | The libosmosim library in particular contains routines for SIM card |
| 268 | access. |
| 269 | |
| 270 | %package -n libosmosim-devel |
| 271 | Summary: Development files for the Osmocom SIM card utility library |
| 272 | License: GPL-2.0-or-later |
| 273 | Group: Development/Libraries/C and C++ |
| 274 | Requires: libosmocore-devel = %version |
Harald Welte | 5c5713e | 2020-08-13 11:06:36 +0200 | [diff] [blame] | 275 | Requires: libosmosim2 = %version |
Oliver Smith | bfeeb1c | 2020-05-14 11:23:13 +0200 | [diff] [blame] | 276 | |
| 277 | %description -n libosmosim-devel |
| 278 | The libosmosim library in particular contains routines for SIM card |
| 279 | access. |
| 280 | |
| 281 | This subpackage contains libraries and header files for developing |
| 282 | applications that want to make use of libosmosim. |
| 283 | |
Pau Espin Pedrol | aca2c72 | 2023-09-12 13:15:53 +0200 | [diff] [blame] | 284 | %package -n libosmovty13 |
Oliver Smith | bfeeb1c | 2020-05-14 11:23:13 +0200 | [diff] [blame] | 285 | Summary: Osmocom VTY interface library |
| 286 | License: GPL-2.0-or-later |
| 287 | Group: System/Libraries |
| 288 | |
Pau Espin Pedrol | aca2c72 | 2023-09-12 13:15:53 +0200 | [diff] [blame] | 289 | %description -n libosmovty13 |
Oliver Smith | bfeeb1c | 2020-05-14 11:23:13 +0200 | [diff] [blame] | 290 | libosmocore is a package with various utility functions that were |
| 291 | originally developed as part of the OpenBSC project. |
| 292 | |
| 293 | The libosmovty library implements the interactive command-line on the |
| 294 | VTY (Virtual TTY), as well as configuration file parsing. |
| 295 | |
| 296 | %package -n libosmovty-devel |
| 297 | Summary: Development files for the Osmocom VTY interface library |
| 298 | License: GPL-2.0-or-later |
| 299 | Group: Development/Libraries/C and C++ |
| 300 | Requires: libosmocore-devel = %version |
Pau Espin Pedrol | aca2c72 | 2023-09-12 13:15:53 +0200 | [diff] [blame] | 301 | Requires: libosmovty13 = %version |
Oliver Smith | bfeeb1c | 2020-05-14 11:23:13 +0200 | [diff] [blame] | 302 | |
| 303 | %description -n libosmovty-devel |
| 304 | The libosmovty library implements the interactive command-line on the |
| 305 | VTY (Virtual TTY), as well as configuration file parsing. |
| 306 | |
| 307 | This subpackage contains libraries and header files for developing |
| 308 | applications that want to make use of libosmovty. |
| 309 | |
| 310 | %package -n libosmousb0 |
| 311 | Summary: Osmocom USB library |
| 312 | License: GPL-2.0-or-later |
| 313 | Group: System/Libraries |
| 314 | |
| 315 | %description -n libosmousb0 |
| 316 | libosmocore is a package with various utility functions that were |
| 317 | originally developed as part of the OpenBSC project. |
| 318 | |
| 319 | The libosmosub library in particular contains routines for USB device |
| 320 | access via libusb-1.0, integrated into the libosmocore select event loop. |
| 321 | |
| 322 | %package -n libosmousb-devel |
| 323 | Summary: Development files for the Osmocom USB library |
| 324 | License: GPL-2.0-or-later |
| 325 | Group: Development/Libraries/C and C++ |
| 326 | Requires: libosmocore-devel = %version |
| 327 | Requires: libosmousb0 = %version |
Oliver Smith | 6370f5d | 2020-05-14 11:27:08 +0200 | [diff] [blame] | 328 | Requires: pkgconfig(libusb-1.0) |
Oliver Smith | bfeeb1c | 2020-05-14 11:23:13 +0200 | [diff] [blame] | 329 | |
| 330 | %description -n libosmousb-devel |
| 331 | The libosmosub library in particular contains routines for USB device |
| 332 | access via libusb-1.0, integrated into the libosmocore select event loop. |
| 333 | |
| 334 | This subpackage contains libraries and header files for developing |
| 335 | applications that want to make use of libosmousb. |
| 336 | |
| 337 | |
| 338 | %prep |
| 339 | %setup -q |
| 340 | |
| 341 | %build |
| 342 | echo "%version" >.tarball-version |
| 343 | autoreconf -fiv |
Oliver Smith | 8c0a2c7 | 2023-08-29 14:52:47 +0200 | [diff] [blame] | 344 | |
| 345 | CONFIGURE_FLAGS=" |
| 346 | --enable-shared \ |
| 347 | --disable-static \ |
| 348 | --enable-systemd-logging \ |
Oliver Smith | bfeeb1c | 2020-05-14 11:23:13 +0200 | [diff] [blame] | 349 | --includedir="%_includedir/%name" |
Oliver Smith | 8c0a2c7 | 2023-08-29 14:52:47 +0200 | [diff] [blame] | 350 | " |
| 351 | %if 0%{?centos_ver} == 7 |
| 352 | CONFIGURE_FLAGS="$CONFIGURE_FLAGS --disable-uring" |
| 353 | %endif |
| 354 | |
| 355 | %configure $CONFIGURE_FLAGS |
Oliver Smith | bfeeb1c | 2020-05-14 11:23:13 +0200 | [diff] [blame] | 356 | make %{?_smp_mflags} V=1 |
| 357 | |
| 358 | %install |
| 359 | b="%buildroot" |
| 360 | make %{?_smp_mflags} install DESTDIR="$b" |
| 361 | find "$b/%_libdir" -type f -name "*.la" -delete |
| 362 | |
| 363 | %check |
| 364 | make %{?_smp_mflags} check || (find . -name testsuite.log -exec cat {} +) |
| 365 | |
Pau Espin Pedrol | aca2c72 | 2023-09-12 13:15:53 +0200 | [diff] [blame] | 366 | %post -n libosmocodec4 -p /sbin/ldconfig |
| 367 | %postun -n libosmocodec4 -p /sbin/ldconfig |
Oliver Smith | bfeeb1c | 2020-05-14 11:23:13 +0200 | [diff] [blame] | 368 | %post -n libosmocoding0 -p /sbin/ldconfig |
| 369 | %postun -n libosmocoding0 -p /sbin/ldconfig |
Pau Espin Pedrol | aca2c72 | 2023-09-12 13:15:53 +0200 | [diff] [blame] | 370 | %post -n libosmocore21 -p /sbin/ldconfig |
| 371 | %postun -n libosmocore21 -p /sbin/ldconfig |
Oliver Smith | bfeeb1c | 2020-05-14 11:23:13 +0200 | [diff] [blame] | 372 | %post -n libosmoctrl0 -p /sbin/ldconfig |
| 373 | %postun -n libosmoctrl0 -p /sbin/ldconfig |
Pau Espin Pedrol | a1584d2 | 2022-06-28 17:00:51 +0200 | [diff] [blame] | 374 | %post -n libosmogb14 -p /sbin/ldconfig |
| 375 | %postun -n libosmogb14 -p /sbin/ldconfig |
Pau Espin Pedrol | aca2c72 | 2023-09-12 13:15:53 +0200 | [diff] [blame] | 376 | %post -n libosmogsm20 -p /sbin/ldconfig |
| 377 | %postun -n libosmogsm20 -p /sbin/ldconfig |
Harald Welte | d55a209 | 2022-11-29 22:33:54 +0100 | [diff] [blame] | 378 | %post -n libosmoisdn0 -p /sbin/ldconfig |
| 379 | %postun -n libosmoisdn0 -p /sbin/ldconfig |
Harald Welte | 5c5713e | 2020-08-13 11:06:36 +0200 | [diff] [blame] | 380 | %post -n libosmosim2 -p /sbin/ldconfig |
| 381 | %postun -n libosmosim2 -p /sbin/ldconfig |
Pau Espin Pedrol | aca2c72 | 2023-09-12 13:15:53 +0200 | [diff] [blame] | 382 | %post -n libosmovty13 -p /sbin/ldconfig |
| 383 | %postun -n libosmovty13 -p /sbin/ldconfig |
Oliver Smith | bfeeb1c | 2020-05-14 11:23:13 +0200 | [diff] [blame] | 384 | %post -n libosmousb0 -p /sbin/ldconfig |
| 385 | %postun -n libosmousb0 -p /sbin/ldconfig |
| 386 | |
| 387 | %files tools |
| 388 | %defattr(-,root,root) |
| 389 | %_bindir/osmo-* |
| 390 | |
Pau Espin Pedrol | aca2c72 | 2023-09-12 13:15:53 +0200 | [diff] [blame] | 391 | %files -n libosmocodec4 |
Oliver Smith | bfeeb1c | 2020-05-14 11:23:13 +0200 | [diff] [blame] | 392 | %defattr(-,root,root) |
Pau Espin Pedrol | aca2c72 | 2023-09-12 13:15:53 +0200 | [diff] [blame] | 393 | %_libdir/libosmocodec.so.4* |
Oliver Smith | bfeeb1c | 2020-05-14 11:23:13 +0200 | [diff] [blame] | 394 | |
| 395 | %files -n libosmocodec-devel |
| 396 | %defattr(-,root,root) |
| 397 | %dir %_includedir/%name |
| 398 | %dir %_includedir/%name/osmocom |
| 399 | %_includedir/%name/osmocom/codec/ |
| 400 | %_libdir/libosmocodec.so |
| 401 | %_libdir/pkgconfig/libosmocodec.pc |
| 402 | |
| 403 | %files -n libosmocoding0 |
| 404 | %defattr(-,root,root) |
| 405 | %_libdir/libosmocoding.so.0* |
| 406 | |
| 407 | %files -n libosmocoding-devel |
| 408 | %defattr(-,root,root) |
| 409 | %dir %_includedir/%name |
| 410 | %dir %_includedir/%name/osmocom |
| 411 | %_includedir/%name/osmocom/coding/ |
| 412 | %_libdir/libosmocoding.so |
| 413 | %_libdir/pkgconfig/libosmocoding.pc |
| 414 | |
Pau Espin Pedrol | aca2c72 | 2023-09-12 13:15:53 +0200 | [diff] [blame] | 415 | %files -n libosmocore21 |
Oliver Smith | bfeeb1c | 2020-05-14 11:23:13 +0200 | [diff] [blame] | 416 | %defattr(-,root,root) |
Pau Espin Pedrol | aca2c72 | 2023-09-12 13:15:53 +0200 | [diff] [blame] | 417 | %_libdir/libosmocore.so.21* |
Oliver Smith | bfeeb1c | 2020-05-14 11:23:13 +0200 | [diff] [blame] | 418 | |
| 419 | %files -n libosmocore-devel |
| 420 | %defattr(-,root,root) |
| 421 | %dir %_includedir/%name |
| 422 | %dir %_includedir/%name/osmocom |
| 423 | %_includedir/%name/osmocom/core/ |
| 424 | %_libdir/libosmocore.so |
| 425 | %_libdir/pkgconfig/libosmocore.pc |
| 426 | %_datadir/aclocal/osmo_ax_code_coverage.m4 |
| 427 | %_datadir/aclocal/osmo_ac_code_coverage.m4 |
| 428 | |
| 429 | %files -n libosmoctrl0 |
| 430 | %defattr(-,root,root) |
| 431 | %_libdir/libosmoctrl.so.0* |
| 432 | |
| 433 | %files -n libosmoctrl-devel |
| 434 | %defattr(-,root,root) |
| 435 | %dir %_includedir/%name |
| 436 | %dir %_includedir/%name/osmocom |
| 437 | %_includedir/%name/osmocom/ctrl/ |
| 438 | %_libdir/libosmoctrl.so |
| 439 | %_libdir/pkgconfig/libosmoctrl.pc |
| 440 | |
Pau Espin Pedrol | a1584d2 | 2022-06-28 17:00:51 +0200 | [diff] [blame] | 441 | %files -n libosmogb14 |
Oliver Smith | bfeeb1c | 2020-05-14 11:23:13 +0200 | [diff] [blame] | 442 | %defattr(-,root,root) |
Pau Espin Pedrol | a1584d2 | 2022-06-28 17:00:51 +0200 | [diff] [blame] | 443 | %_libdir/libosmogb.so.14* |
Oliver Smith | bfeeb1c | 2020-05-14 11:23:13 +0200 | [diff] [blame] | 444 | |
| 445 | %files -n libosmogb-devel |
| 446 | %defattr(-,root,root) |
| 447 | %dir %_includedir/%name |
| 448 | %dir %_includedir/%name/osmocom |
| 449 | %_includedir/%name/osmocom/gprs/ |
| 450 | %_libdir/libosmogb.so |
| 451 | %_libdir/pkgconfig/libosmogb.pc |
| 452 | |
Pau Espin Pedrol | aca2c72 | 2023-09-12 13:15:53 +0200 | [diff] [blame] | 453 | %files -n libosmogsm20 |
Oliver Smith | bfeeb1c | 2020-05-14 11:23:13 +0200 | [diff] [blame] | 454 | %defattr(-,root,root) |
Pau Espin Pedrol | aca2c72 | 2023-09-12 13:15:53 +0200 | [diff] [blame] | 455 | %_libdir/libosmogsm.so.20* |
Oliver Smith | bfeeb1c | 2020-05-14 11:23:13 +0200 | [diff] [blame] | 456 | |
| 457 | %files -n libosmogsm-devel |
| 458 | %defattr(-,root,root) |
| 459 | %dir %_includedir/%name |
| 460 | %dir %_includedir/%name/osmocom |
| 461 | %_includedir/%name/osmocom/gsm/ |
| 462 | %_includedir/%name/osmocom/crypt/ |
| 463 | %_libdir/libosmogsm.so |
| 464 | %_libdir/pkgconfig/libosmogsm.pc |
| 465 | |
Harald Welte | d55a209 | 2022-11-29 22:33:54 +0100 | [diff] [blame] | 466 | %files -n libosmoisdn0 |
| 467 | %defattr(-,root,root) |
| 468 | %_libdir/libosmoisdn.so.0* |
| 469 | |
| 470 | %files -n libosmoisdn-devel |
| 471 | %defattr(-,root,root) |
| 472 | %dir %_includedir/%name |
| 473 | %dir %_includedir/%name/osmocom |
| 474 | %_includedir/%name/osmocom/isdn/ |
| 475 | %_libdir/libosmoisdn.so |
| 476 | %_libdir/pkgconfig/libosmoisdn.pc |
| 477 | |
Harald Welte | 5c5713e | 2020-08-13 11:06:36 +0200 | [diff] [blame] | 478 | %files -n libosmosim2 |
Oliver Smith | bfeeb1c | 2020-05-14 11:23:13 +0200 | [diff] [blame] | 479 | %defattr(-,root,root) |
Harald Welte | 5c5713e | 2020-08-13 11:06:36 +0200 | [diff] [blame] | 480 | %_libdir/libosmosim.so.2* |
Oliver Smith | bfeeb1c | 2020-05-14 11:23:13 +0200 | [diff] [blame] | 481 | |
| 482 | %files -n libosmosim-devel |
| 483 | %defattr(-,root,root) |
| 484 | %dir %_includedir/%name |
| 485 | %dir %_includedir/%name/osmocom/ |
| 486 | %_includedir/%name/osmocom/sim/ |
| 487 | %_libdir/libosmosim.so |
| 488 | %_libdir/pkgconfig/libosmosim.pc |
| 489 | |
Pau Espin Pedrol | aca2c72 | 2023-09-12 13:15:53 +0200 | [diff] [blame] | 490 | %files -n libosmovty13 |
Oliver Smith | bfeeb1c | 2020-05-14 11:23:13 +0200 | [diff] [blame] | 491 | %defattr(-,root,root) |
Pau Espin Pedrol | aca2c72 | 2023-09-12 13:15:53 +0200 | [diff] [blame] | 492 | %_libdir/libosmovty.so.13* |
Oliver Smith | bfeeb1c | 2020-05-14 11:23:13 +0200 | [diff] [blame] | 493 | |
| 494 | %files -n libosmovty-devel |
| 495 | %defattr(-,root,root) |
| 496 | %dir %_includedir/%name |
| 497 | %dir %_includedir/%name/osmocom |
| 498 | %_includedir/%name/osmocom/vty/ |
| 499 | %_includedir/%name/osmo-release.mk |
| 500 | %_libdir/libosmovty.so |
| 501 | %_libdir/pkgconfig/libosmovty.pc |
| 502 | |
| 503 | %files -n libosmousb0 |
| 504 | %defattr(-,root,root) |
| 505 | %_libdir/libosmousb.so.0* |
| 506 | |
| 507 | %files -n libosmousb-devel |
| 508 | %defattr(-,root,root) |
| 509 | %dir %_includedir/%name |
| 510 | %dir %_includedir/%name/osmocom |
| 511 | %_includedir/%name/osmocom/usb/ |
| 512 | %_libdir/libosmousb.so |
| 513 | %_libdir/pkgconfig/libosmousb.pc |
| 514 | |
| 515 | %changelog |