2020-05-14 09:32:25 +00:00
|
|
|
#
|
|
|
|
# spec file for package libosmo-sccp
|
|
|
|
#
|
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2020-05-26 11:35:13 +00:00
|
|
|
# Avoid "E: lto-no-text-in-archive"
|
|
|
|
# https://en.opensuse.org/openSUSE:LTO#Static_libraries
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
%global _lto_cflags %{?_lto_cflags} -ffat-lto-objects
|
|
|
|
%endif
|
|
|
|
|
2020-05-14 09:32:25 +00:00
|
|
|
Name: libosmo-sccp
|
2020-05-14 09:35:08 +00:00
|
|
|
Version: @VERSION@
|
2020-05-14 09:32:25 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Osmocom library for the A-bis interface between BTS and BSC
|
|
|
|
License: AGPL-3.0-or-later AND GPL-2.0-or-later
|
|
|
|
Group: Hardware/Mobile
|
2020-05-14 09:35:08 +00:00
|
|
|
URL: https://osmocom.org/projects/libosmo-sccp
|
2020-05-14 09:32:25 +00:00
|
|
|
Source: %{name}-%{version}.tar.xz
|
|
|
|
BuildRequires: automake >= 1.6
|
|
|
|
BuildRequires: libtool >= 2
|
|
|
|
BuildRequires: lksctp-tools-devel
|
|
|
|
BuildRequires: pkgconfig >= 0.20
|
2020-05-14 09:35:08 +00:00
|
|
|
%if 0%{?suse_version}
|
2020-05-14 09:32:25 +00:00
|
|
|
BuildRequires: systemd-rpm-macros
|
2020-05-14 09:35:08 +00:00
|
|
|
%endif
|
2020-05-14 09:32:25 +00:00
|
|
|
BuildRequires: xz
|
2021-02-23 16:57:33 +00:00
|
|
|
BuildRequires: pkgconfig(libosmo-netif) >= 1.1.0
|
|
|
|
BuildRequires: pkgconfig(libosmocore) >= 1.5.0
|
|
|
|
BuildRequires: pkgconfig(libosmogsm) >= 1.5.0
|
|
|
|
BuildRequires: pkgconfig(libosmovty) >= 1.5.0
|
2020-05-14 09:35:08 +00:00
|
|
|
%{?systemd_requires}
|
2020-05-14 09:32:25 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
SCCP is a network layer protocol that provides extended routing, flow
|
|
|
|
control, segmentation, connection-orientation, and error correction
|
|
|
|
facilities in Signaling System 7 telecommunications networks. SCCP is
|
|
|
|
heavily used in cellular networks such as GSM.
|
|
|
|
|
|
|
|
%package -n libosmo-mtp-devel
|
|
|
|
Summary: Development files for the Osmocom MTP library
|
|
|
|
License: GPL-2.0-or-later
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
|
|
|
|
%description -n libosmo-mtp-devel
|
|
|
|
MTP is part of SS7 used for communication in Public Switched
|
|
|
|
Telephone Networks.
|
|
|
|
|
|
|
|
This subpackage contains the development files for the Osmocom MTP
|
|
|
|
library.
|
|
|
|
|
|
|
|
%package -n libosmo-sccp-devel
|
|
|
|
Summary: Development files for the Osmocom SCCP library
|
|
|
|
License: GPL-2.0-or-later
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
|
|
|
|
%description -n libosmo-sccp-devel
|
|
|
|
SCCP is a network layer protocol that provides routing, flow control,
|
|
|
|
segmentation, connection-orientation, and error correction facilities
|
|
|
|
in SS7 telecommunications networks.
|
|
|
|
|
|
|
|
This subpackage contains the development files for the Osmocom SCCP
|
|
|
|
library.
|
|
|
|
|
2021-11-16 13:44:42 +00:00
|
|
|
%package -n libosmo-sigtran7
|
2020-05-14 09:32:25 +00:00
|
|
|
Summary: Osmocom SIGTRAN library
|
|
|
|
License: GPL-2.0-or-later
|
|
|
|
Group: System/Libraries
|
|
|
|
|
2021-11-16 13:44:42 +00:00
|
|
|
%description -n libosmo-sigtran7
|
2020-05-14 09:32:25 +00:00
|
|
|
Osmocom implementation of (parts of) SIGTRAN.
|
|
|
|
|
|
|
|
%package -n libosmo-sigtran-devel
|
|
|
|
Summary: Development files for the Osmocom sigtran library
|
|
|
|
License: GPL-2.0-or-later
|
|
|
|
Group: Development/Libraries/C and C++
|
2021-11-16 13:44:42 +00:00
|
|
|
Requires: libosmo-sigtran7 = %{version}
|
2020-05-14 09:32:25 +00:00
|
|
|
|
|
|
|
%description -n libosmo-sigtran-devel
|
|
|
|
Osmocom implementation of (parts of) SIGTRAN.
|
|
|
|
|
|
|
|
This subpackage contains the development files for the Osmocom
|
|
|
|
SIGTRAN library.
|
|
|
|
|
|
|
|
%package -n libosmo-xua-devel
|
|
|
|
Summary: Development files for the Osmocom M2UA library
|
|
|
|
License: GPL-2.0-or-later
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: libosmo-sigtran-devel = %{version}
|
|
|
|
|
|
|
|
%description -n libosmo-xua-devel
|
|
|
|
M2UA provides an SCTP adaptation layer for MTP level 2 user messages
|
|
|
|
and service interface across an IP network.
|
|
|
|
|
|
|
|
This subpackage contains the development files for the Osmocom M2UA
|
|
|
|
library.
|
|
|
|
|
|
|
|
%package -n osmo-stp
|
|
|
|
Summary: Osmocom SIGTRAN STP (Signaling Transfer Point)
|
|
|
|
License: GPL-2.0-or-later
|
|
|
|
Group: Productivity/Telephony/Servers
|
|
|
|
|
|
|
|
%description -n osmo-stp
|
|
|
|
This is the Osmocom (Open Source Mobile Communications) implementation
|
|
|
|
of a Signaling Transfer Point (STP) for SS7/SIGTRAN telecommunication
|
|
|
|
networks. At this point it is a very minimal implementation, missing
|
|
|
|
lots of the functionality usually present in a STP, such as Global Title
|
|
|
|
Routing, Global Title Translation.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
echo "%{version}" >.tarball-version
|
|
|
|
autoreconf -fiv
|
|
|
|
%configure \
|
|
|
|
--enable-shared \
|
|
|
|
--includedir="%{_includedir}/%{name}" \
|
|
|
|
--docdir="%{_docdir}/%{name}" \
|
|
|
|
--with-systemdsystemunitdir=%{_unitdir}
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
|
|
|
|
|
|
%check
|
|
|
|
make %{?_smp_mflags} check || (find . -name testsuite.log -exec cat {} +)
|
|
|
|
|
2021-11-16 13:44:42 +00:00
|
|
|
%post -n libosmo-sigtran7 -p /sbin/ldconfig
|
|
|
|
%postun -n libosmo-sigtran7 -p /sbin/ldconfig
|
2020-05-14 09:35:08 +00:00
|
|
|
%if 0%{?suse_version}
|
2020-05-14 09:32:25 +00:00
|
|
|
%preun -n osmo-stp %service_del_preun osmo-stp.service
|
|
|
|
%postun -n osmo-stp %service_del_postun osmo-stp.service
|
|
|
|
%pre -n osmo-stp %service_add_pre osmo-stp.service
|
|
|
|
%post -n osmo-stp %service_add_post osmo-stp.service
|
2020-05-14 09:35:08 +00:00
|
|
|
%endif
|
2020-05-14 09:32:25 +00:00
|
|
|
|
|
|
|
%files -n libosmo-mtp-devel
|
|
|
|
%dir %{_includedir}/%{name}
|
|
|
|
%dir %{_includedir}/%{name}/osmocom
|
|
|
|
%{_includedir}/%{name}/osmocom/mtp/
|
2020-05-14 09:35:08 +00:00
|
|
|
%{_libdir}/libmtp.a
|
2020-05-14 09:32:25 +00:00
|
|
|
%{_libdir}/pkgconfig/libosmo-mtp.pc
|
|
|
|
|
|
|
|
%files -n libosmo-sccp-devel
|
|
|
|
%dir %{_includedir}/%{name}
|
|
|
|
%dir %{_includedir}/%{name}/osmocom
|
|
|
|
%{_includedir}/%{name}/osmocom/sccp/
|
2020-05-14 09:35:08 +00:00
|
|
|
%{_libdir}/libsccp.a
|
2020-05-14 09:32:25 +00:00
|
|
|
%{_libdir}/pkgconfig/libosmo-sccp.pc
|
|
|
|
|
2021-11-16 13:44:42 +00:00
|
|
|
%files -n libosmo-sigtran7
|
|
|
|
%{_libdir}/libosmo-sigtran.so.7*
|
2020-05-14 09:32:25 +00:00
|
|
|
|
|
|
|
%files -n libosmo-sigtran-devel
|
|
|
|
%dir %{_includedir}/%{name}
|
|
|
|
%dir %{_includedir}/%{name}/osmocom
|
|
|
|
%{_includedir}/%{name}/osmocom/sigtran
|
|
|
|
%{_libdir}/libosmo-sigtran.so
|
2020-05-14 09:35:08 +00:00
|
|
|
%{_libdir}/libosmo-sigtran.a
|
2020-05-14 09:32:25 +00:00
|
|
|
%{_libdir}/pkgconfig/libosmo-sigtran.pc
|
|
|
|
|
|
|
|
%files -n libosmo-xua-devel
|
2020-05-14 09:35:08 +00:00
|
|
|
%{_libdir}/libxua.a
|
2020-05-14 09:32:25 +00:00
|
|
|
%{_libdir}/pkgconfig/libosmo-xua.pc
|
|
|
|
|
|
|
|
%files -n osmo-stp
|
|
|
|
%{_bindir}/osmo-stp
|
|
|
|
%dir %{_sysconfdir}/osmocom
|
2020-06-22 12:23:09 +00:00
|
|
|
%config(noreplace) %{_sysconfdir}/osmocom/osmo-stp.cfg
|
2020-05-14 09:32:25 +00:00
|
|
|
%{_unitdir}/osmo-stp.service
|
|
|
|
%dir %{_docdir}/%{name}
|
|
|
|
%dir %{_docdir}/%{name}/examples
|
|
|
|
%dir %{_docdir}/%{name}/examples/osmo-stp
|
|
|
|
%{_docdir}/%{name}/examples/osmo-stp/osmo-stp.cfg
|
|
|
|
%{_docdir}/%{name}/examples/osmo-stp/osmo-stp-multihome.cfg
|
|
|
|
|
|
|
|
%changelog
|