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