File libosmo-sigtran.spec of Package libosmo-sigtran
#
# spec file for package libosmo-sigtran
#
# Copyright (c) 2024, Martin Hauke <mardnh@gmx.de>
#
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: libosmo-sigtran
Version: 2.1.0.94
Release: 0
Summary: Osmocom SIGTRAN library (SCCP, SUA, M3UA and more)
License: AGPL-3.0-or-later AND GPL-2.0-or-later
Group: Productivity/Telephony/Servers
URL: https://projects.osmocom.org/projects/libosmo-sccp
#Git-Clone: https://gitea.osmocom.org/osmocom/libosmo-sigtran
Source: %{name}-%{version}.tar.xz
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
BuildRequires: pkgconfig
BuildRequires: systemd-rpm-macros
BuildRequires: pkgconfig(libosmo-netif) >= 1.5.0
BuildRequires: pkgconfig(libosmocore) >= 1.10.0
BuildRequires: pkgconfig(libosmogsm) >= 1.10.0
BuildRequires: pkgconfig(libosmovty) >= 1.10.0
%{?systemd_requires}
%description
Osmocom SIGTRAN library (SCCP, SUA, M3UA and more).
%package -n libosmo-sigtran10
Summary: Osmocom SIGTRAN library (SCCP, SUA, M3UA and more)
Group: System/Libraries
%description -n libosmo-sigtran10
This is a shared library containing SS7/SIGTRAN related functionality,
including connection-less and connection-oriented SCCP as per ITU-T Q.71x,
M3UA (MTP3 User Adaptation) according to IETF RFC4666,
SUA (SCCP User Adpatation) according to IETF RFC3868
as well as MTP-level routing function and handling of signaling links,
linksets, ASPs, SGs, etc.
%package -n libosmo-sigtran-devel
Summary: Development files for the Osmocom SIGTRAN library
Group: Development/Libraries/C and C++
Requires: libosmo-sigtran10 = %{version}
%description -n libosmo-sigtran-devel
libosmo-sigtran is a shared library containing SS7/SIGTRAN related functionality,
including connection-less and connection-oriented SCCP as per ITU-T Q.71x,
M3UA (MTP3 User Adaptation) according to IETF RFC4666,
SUA (SCCP User Adpatation) according to IETF RFC3868
as well as MTP-level routing function and handling of signaling links,
linksets, ASPs, SGs, etc.
This package provides development files for compiling a program
using libosmo-sigtran.
%package -n osmo-stp
Summary: Osmocom SIGTRAN STP (Signaling Transfer Point)
Group: Productivity/Telephony/Servers
%description -n osmo-stp
OsmoSTP 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 -fi
%configure \
--disable-static \
--docdir="%{_docdir}/%{name}" \
--with-systemdsystemunitdir=%{_unitdir}
%make_build
%install
%make_install
find "%buildroot/%_libdir" -type f -name "*.la" -delete
%ldconfig_scriptlets -n libosmo-sigtran10
%check
%make_build check || (find . -name testsuite.log -exec cat {} +)
%pre -n osmo-stp
%service_add_pre osmo-stp.service
%preun -n osmo-stp
%service_del_preun osmo-stp.service
%post -n osmo-stp
%service_add_post osmo-stp.service
%postun -n osmo-stp
%service_del_postun osmo-stp.service
%files -n libosmo-sigtran10
%license COPYING
%doc README.md
%{_libdir}/libosmo-sigtran.so.10*
%files -n libosmo-sigtran-devel
%dir %{_includedir}/osmocom
%{_includedir}/osmocom/sigtran/
%{_includedir}/osmocom/sccp/
%{_libdir}/libosmo-sigtran.so
%{_libdir}/pkgconfig/libosmo-sigtran.pc
%files -n osmo-stp
%license COPYING
%doc README.md
%dir %{_docdir}/libosmo-sigtran/
%dir %{_docdir}/libosmo-sigtran/examples/
%dir %{_docdir}/libosmo-sigtran/examples/osmo-stp/
%{_docdir}/libosmo-sigtran/examples/osmo-stp/osmo-stp-multihome.cfg
%{_docdir}/libosmo-sigtran/examples/osmo-stp/osmo-stp.cfg
%{_bindir}/osmo-stp
%dir %{_sysconfdir}/osmocom
%config(noreplace) %{_sysconfdir}/osmocom/osmo-stp.cfg
%{_unitdir}/osmo-stp.service
%changelog