diff options
Diffstat (limited to 'contrib/libosmocore.spec.in')
-rw-r--r-- | contrib/libosmocore.spec.in | 151 |
1 files changed, 106 insertions, 45 deletions
diff --git a/contrib/libosmocore.spec.in b/contrib/libosmocore.spec.in index a5af3e9b..60ca3977 100644 --- a/contrib/libosmocore.spec.in +++ b/contrib/libosmocore.spec.in @@ -29,7 +29,12 @@ BuildRequires: xz BuildRequires: pkgconfig(gnutls) >= 2.12.0 BuildRequires: pkgconfig(libpcsclite) BuildRequires: pkgconfig(libusb-1.0) -BuildRequires: pkgconfig(talloc) >= 2.0.1 +BuildRequires: pkgconfig(talloc) >= 2.1.0 +BuildRequires: pkgconfig(libmnl) +BuildRequires: pkgconfig(libsystemd) +%if 0%{?centos_ver} != 7 +BuildRequires: pkgconfig(liburing) +%endif %description libosmocore is a package with various utility functions that were @@ -52,14 +57,15 @@ originally developed as part of the OpenBSC project. This package contains a program for frequency calculation for GSM called "osmo-arfcn", and a program called "osmo-auc-gen" that is used -for testing GSM authentication. +for testing GSM authentication, as well as "osmo-config-merge", a tool +for merging Osmocom configuration files. -%package -n libosmocodec0 +%package -n libosmocodec4 Summary: GSM 06.10, 06.20, 06.60, 06.90 codec library License: GPL-2.0-or-later Group: System/Libraries -%description -n libosmocodec0 +%description -n libosmocodec4 The libosmocodec library contains an implementation of multiple GSM codecs: @@ -72,7 +78,7 @@ GSM codecs: Summary: Development files for the Osmocom GSM codec library License: GPL-2.0-or-later Group: Development/Libraries/C and C++ -Requires: libosmocodec0 = %version +Requires: libosmocodec4 = %version %description -n libosmocodec-devel The libosmocodec library contains an implementation of multiple @@ -109,13 +115,13 @@ transcoding routines. This subpackage contains libraries and header files for developing applications that want to make use of libosmocoding. -%package -n libosmocore12 +%package -n libosmocore21 Summary: Osmocom core library # crc16.c has GPL2-only clauses, the rest (*.c) is GPL-2.0+ License: GPL-2.0-only AND GPL-2.0-or-later Group: System/Libraries -%description -n libosmocore12 +%description -n libosmocore21 libosmocore is a library with various utility functions shared between OpenBSC and OsmocomBB. @@ -124,8 +130,9 @@ Summary: Development files for the Osmocom core library # crc16.h has GPL2-only clauses, the rest (*.h) is GPL-2.0+ License: GPL-2.0-only AND GPL-2.0-or-later Group: Development/Libraries/C and C++ -Requires: libosmocore12 = %version +Requires: libosmocore21 = %version Requires: libtalloc-devel +Requires: lksctp-tools-devel %description -n libosmocore-devel libosmocore is a library with various utility functions shared @@ -161,12 +168,12 @@ interface, the control interface is meant to be used by programs. This subpackage contains libraries and header files for developing applications that want to make use of libosmoctrl. -%package -n libosmogb9 +%package -n libosmogb14 Summary: Osmocom GPRS Gb Interface (NS/BSSGP) library License: AGPL-3.0-or-later Group: System/Libraries -%description -n libosmogb9 +%description -n libosmogb14 libosmocore is a package with various utility functions that were originally developed as part of the OpenBSC project. @@ -177,7 +184,7 @@ Summary: Development files for the Osmocom GPRS Gb interface library License: AGPL-3.0-or-later Group: Development/Libraries/C and C++ Requires: libosmocore-devel = %version -Requires: libosmogb9 = %version +Requires: libosmogb14 = %version Requires: libosmovty-devel = %version %description -n libosmogb-devel @@ -186,12 +193,12 @@ The libosmogb library contains a GPRS BSSGP protocol implementation. This subpackage contains libraries and header files for developing applications that want to make use of libosmogb. -%package -n libosmogsm13 +%package -n libosmogsm20 Summary: Osmocom GSM utility library License: GPL-2.0-or-later AND AGPL-3.0-or-later Group: System/Libraries -%description -n libosmogsm13 +%description -n libosmogsm20 libosmocore is a package with various utility functions that were originally developed as part of the OpenBSC project. @@ -206,7 +213,9 @@ Summary: Development files for the Osmocom GSM utility library License: GPL-2.0-or-later AND AGPL-3.0-or-later Group: Development/Libraries/C and C++ Requires: libosmocore-devel = %version -Requires: libosmogsm13 = %version +Requires: libosmogsm20 = %version +Requires: libosmoisdn-devel = %version +Requires: libosmoisdn0 = %version %description -n libosmogsm-devel The libosmogsm library in particular is a collection of common code @@ -218,12 +227,40 @@ protocol definitions for a series of protocols. This subpackage contains libraries and header files for developing applications that want to make use of libosmogsm. -%package -n libosmosim0 +%package -n libosmoisdn0 +Summary: Osmocom ISDN utility library +License: GPL-2.0-or-later +Group: System/Libraries + +%description -n libosmoisdn0 +libosmocore is a package with various utility functions that were +originally developed as part of the OpenBSC project. + +The libosmoisdn library in particular is a collection of common code used in +various ISDN related sub-projects inside the Osmocom family of projects. It +includes an I.460 sub-channel multiplex and a generic LAPD core. + +%package -n libosmoisdn-devel +Summary: Development files for the Osmocom ISDN utility library +License: GPL-2.0-or-later +Group: Development/Libraries/C and C++ +Requires: libosmocore-devel = %version +Requires: libosmoisdn0 = %version + +%description -n libosmoisdn-devel +The libosmoisdn library in particular is a collection of common code used in +various ISDN related sub-projects inside the Osmocom family of projects. It +includes an I.460 sub-channel multiplex and a generic LAPD core. + +This subpackage contains libraries and header files for developing +applications that want to make use of libosmogsm. + +%package -n libosmosim2 Summary: Osmocom SIM card related utility library License: GPL-2.0-or-later Group: System/Libraries -%description -n libosmosim0 +%description -n libosmosim2 libosmocore is a package with various utility functions that were originally developed as part of the OpenBSC project. @@ -235,7 +272,7 @@ Summary: Development files for the Osmocom SIM card utility library License: GPL-2.0-or-later Group: Development/Libraries/C and C++ Requires: libosmocore-devel = %version -Requires: libosmosim0 = %version +Requires: libosmosim2 = %version %description -n libosmosim-devel The libosmosim library in particular contains routines for SIM card @@ -244,12 +281,12 @@ access. This subpackage contains libraries and header files for developing applications that want to make use of libosmosim. -%package -n libosmovty4 +%package -n libosmovty13 Summary: Osmocom VTY interface library License: GPL-2.0-or-later Group: System/Libraries -%description -n libosmovty4 +%description -n libosmovty13 libosmocore is a package with various utility functions that were originally developed as part of the OpenBSC project. @@ -261,7 +298,7 @@ Summary: Development files for the Osmocom VTY interface library License: GPL-2.0-or-later Group: Development/Libraries/C and C++ Requires: libosmocore-devel = %version -Requires: libosmovty4 = %version +Requires: libosmovty13 = %version %description -n libosmovty-devel The libosmovty library implements the interactive command-line on the @@ -304,8 +341,18 @@ applications that want to make use of libosmousb. %build echo "%version" >.tarball-version autoreconf -fiv -%configure --enable-shared --disable-static \ + +CONFIGURE_FLAGS=" + --enable-shared \ + --disable-static \ + --enable-systemd-logging \ --includedir="%_includedir/%name" +" +%if 0%{?centos_ver} == 7 + CONFIGURE_FLAGS="$CONFIGURE_FLAGS --disable-uring" +%endif + +%configure $CONFIGURE_FLAGS make %{?_smp_mflags} V=1 %install @@ -316,22 +363,24 @@ find "$b/%_libdir" -type f -name "*.la" -delete %check make %{?_smp_mflags} check || (find . -name testsuite.log -exec cat {} +) -%post -n libosmocodec0 -p /sbin/ldconfig -%postun -n libosmocodec0 -p /sbin/ldconfig +%post -n libosmocodec4 -p /sbin/ldconfig +%postun -n libosmocodec4 -p /sbin/ldconfig %post -n libosmocoding0 -p /sbin/ldconfig %postun -n libosmocoding0 -p /sbin/ldconfig -%post -n libosmocore12 -p /sbin/ldconfig -%postun -n libosmocore12 -p /sbin/ldconfig +%post -n libosmocore21 -p /sbin/ldconfig +%postun -n libosmocore21 -p /sbin/ldconfig %post -n libosmoctrl0 -p /sbin/ldconfig %postun -n libosmoctrl0 -p /sbin/ldconfig -%post -n libosmogb9 -p /sbin/ldconfig -%postun -n libosmogb9 -p /sbin/ldconfig -%post -n libosmogsm13 -p /sbin/ldconfig -%postun -n libosmogsm13 -p /sbin/ldconfig -%post -n libosmosim0 -p /sbin/ldconfig -%postun -n libosmosim0 -p /sbin/ldconfig -%post -n libosmovty4 -p /sbin/ldconfig -%postun -n libosmovty4 -p /sbin/ldconfig +%post -n libosmogb14 -p /sbin/ldconfig +%postun -n libosmogb14 -p /sbin/ldconfig +%post -n libosmogsm20 -p /sbin/ldconfig +%postun -n libosmogsm20 -p /sbin/ldconfig +%post -n libosmoisdn0 -p /sbin/ldconfig +%postun -n libosmoisdn0 -p /sbin/ldconfig +%post -n libosmosim2 -p /sbin/ldconfig +%postun -n libosmosim2 -p /sbin/ldconfig +%post -n libosmovty13 -p /sbin/ldconfig +%postun -n libosmovty13 -p /sbin/ldconfig %post -n libosmousb0 -p /sbin/ldconfig %postun -n libosmousb0 -p /sbin/ldconfig @@ -339,9 +388,9 @@ make %{?_smp_mflags} check || (find . -name testsuite.log -exec cat {} +) %defattr(-,root,root) %_bindir/osmo-* -%files -n libosmocodec0 +%files -n libosmocodec4 %defattr(-,root,root) -%_libdir/libosmocodec.so.0* +%_libdir/libosmocodec.so.4* %files -n libosmocodec-devel %defattr(-,root,root) @@ -363,9 +412,9 @@ make %{?_smp_mflags} check || (find . -name testsuite.log -exec cat {} +) %_libdir/libosmocoding.so %_libdir/pkgconfig/libosmocoding.pc -%files -n libosmocore12 +%files -n libosmocore21 %defattr(-,root,root) -%_libdir/libosmocore.so.12* +%_libdir/libosmocore.so.21* %files -n libosmocore-devel %defattr(-,root,root) @@ -389,9 +438,9 @@ make %{?_smp_mflags} check || (find . -name testsuite.log -exec cat {} +) %_libdir/libosmoctrl.so %_libdir/pkgconfig/libosmoctrl.pc -%files -n libosmogb9 +%files -n libosmogb14 %defattr(-,root,root) -%_libdir/libosmogb.so.9* +%_libdir/libosmogb.so.14* %files -n libosmogb-devel %defattr(-,root,root) @@ -401,9 +450,9 @@ make %{?_smp_mflags} check || (find . -name testsuite.log -exec cat {} +) %_libdir/libosmogb.so %_libdir/pkgconfig/libosmogb.pc -%files -n libosmogsm13 +%files -n libosmogsm20 %defattr(-,root,root) -%_libdir/libosmogsm.so.13* +%_libdir/libosmogsm.so.20* %files -n libosmogsm-devel %defattr(-,root,root) @@ -414,9 +463,21 @@ make %{?_smp_mflags} check || (find . -name testsuite.log -exec cat {} +) %_libdir/libosmogsm.so %_libdir/pkgconfig/libosmogsm.pc -%files -n libosmosim0 +%files -n libosmoisdn0 +%defattr(-,root,root) +%_libdir/libosmoisdn.so.0* + +%files -n libosmoisdn-devel +%defattr(-,root,root) +%dir %_includedir/%name +%dir %_includedir/%name/osmocom +%_includedir/%name/osmocom/isdn/ +%_libdir/libosmoisdn.so +%_libdir/pkgconfig/libosmoisdn.pc + +%files -n libosmosim2 %defattr(-,root,root) -%_libdir/libosmosim.so.0* +%_libdir/libosmosim.so.2* %files -n libosmosim-devel %defattr(-,root,root) @@ -426,9 +487,9 @@ make %{?_smp_mflags} check || (find . -name testsuite.log -exec cat {} +) %_libdir/libosmosim.so %_libdir/pkgconfig/libosmosim.pc -%files -n libosmovty4 +%files -n libosmovty13 %defattr(-,root,root) -%_libdir/libosmovty.so.4* +%_libdir/libosmovty.so.13* %files -n libosmovty-devel %defattr(-,root,root) |