aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libosmocore.spec.in
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/libosmocore.spec.in')
-rw-r--r--contrib/libosmocore.spec.in137
1 files changed, 99 insertions, 38 deletions
diff --git a/contrib/libosmocore.spec.in b/contrib/libosmocore.spec.in
index fb45516e..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 libosmocore16
+%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 libosmocore16
+%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: libosmocore16 = %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 libosmogb11
+%package -n libosmogb14
Summary: Osmocom GPRS Gb Interface (NS/BSSGP) library
License: AGPL-3.0-or-later
Group: System/Libraries
-%description -n libosmogb11
+%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: libosmogb11 = %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 libosmogsm15
+%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 libosmogsm15
+%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: libosmogsm15 = %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,6 +227,34 @@ 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 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
@@ -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 libosmocore16 -p /sbin/ldconfig
-%postun -n libosmocore16 -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 libosmogb11 -p /sbin/ldconfig
-%postun -n libosmogb11 -p /sbin/ldconfig
-%post -n libosmogsm15 -p /sbin/ldconfig
-%postun -n libosmogsm15 -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 libosmovty4 -p /sbin/ldconfig
-%postun -n libosmovty4 -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 libosmocore16
+%files -n libosmocore21
%defattr(-,root,root)
-%_libdir/libosmocore.so.16*
+%_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 libosmogb11
+%files -n libosmogb14
%defattr(-,root,root)
-%_libdir/libosmogb.so.11*
+%_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 libosmogsm15
+%files -n libosmogsm20
%defattr(-,root,root)
-%_libdir/libosmogsm.so.15*
+%_libdir/libosmogsm.so.20*
%files -n libosmogsm-devel
%defattr(-,root,root)
@@ -414,6 +463,18 @@ make %{?_smp_mflags} check || (find . -name testsuite.log -exec cat {} +)
%_libdir/libosmogsm.so
%_libdir/pkgconfig/libosmogsm.pc
+%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.2*
@@ -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)