blob: 55fa4f9bac056b9462ee8e9d881694d7189ef3e5 [file] [log] [blame]
Oliver Smithb0925892020-05-14 11:48:32 +02001#
2# spec file for package osmo-msc
3#
4# Copyright (c) 2017, Martin Hauke <mardnh@gmx.de>
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# Please submit bugfixes or comments via http://bugs.opensuse.org/
16#
17
18## Disable LTO for now since it breaks compilation of the tests
19## https://osmocom.org/issues/4115
20%define _lto_cflags %{nil}
21
22
23%define with_iu 1
24Name: osmo-msc
25Version: 1.6.1.32
26Release: 0
27Summary: Osmocom's MSC for 2G and 3G circuit-switched mobile networks
28License: AGPL-3.0-or-later AND GPL-2.0-only
29Group: Productivity/Telephony/Servers
30URL: https://osmocom.org/projects/osmomsc/wiki
31Source: %{name}-%{version}.tar.xz
32BuildRequires: autoconf
33BuildRequires: automake
34BuildRequires: libdbi-drivers-dbd-sqlite3
35BuildRequires: libtool
36BuildRequires: pkgconfig >= 0.20
37BuildRequires: pkgconfig(dbi)
38BuildRequires: pkgconfig(libcrypto) >= 0.9.5
39BuildRequires: pkgconfig(libosmo-gsup-client) >= 1.0.0
40BuildRequires: pkgconfig(libosmo-mgcp-client) >= 1.6.0
41BuildRequires: pkgconfig(libosmo-netif) >= 0.4.0
42BuildRequires: pkgconfig(libosmo-sccp) >= 1.1.0
43BuildRequires: pkgconfig(libosmo-sigtran) >= 1.1.0
44BuildRequires: pkgconfig(libosmoabis) >= 0.6.0
45BuildRequires: pkgconfig(libosmocore) >= 1.2.0
46BuildRequires: pkgconfig(libosmoctrl) >= 1.2.0
47BuildRequires: pkgconfig(libosmogsm) >= 1.2.0
48BuildRequires: pkgconfig(libosmovty) >= 1.2.0
49BuildRequires: pkgconfig(libsmpp34) >= 1.13.0
50####
51BuildRequires: lksctp-tools-devel
52####
53%{?systemd_requires}
54%if %{with_iu}
55BuildRequires: pkgconfig(libasn1c) >= 0.9.30
56BuildRequires: pkgconfig(libosmo-ranap) >= 0.3.0
57%endif
58
59%description
60The Mobile Switching Center (MSC) is the heart of 2G/3G
61circuit-switched services. It terminates the A-interface links from the
62Base Station Controllers (BSC) and handles the MM and CC sub-layers of
63the Layer 3 protocol from the phones (MS).
64
65This Osmocom implementation of the MSC handles A interfaces via 3GPP
66AoIP in an ASP role. It furthermore implements IETF MGCP against an
67external media gateway, such as OsmoMGW. It does *not* implement MAP
68towards a HLR, but the much simpler Osmocom GSUP protocol, which can
69be translated to MAP if needed.
70
71%prep
72%setup -q
73
74%build
75echo "%{version}" >.tarball-version
76autoreconf -fi
77%configure \
78%if %{with_iu}
79 --enable-iu \
80%endif
81 --docdir=%{_docdir}/%{name} \
82 --with-systemdsystemunitdir=%{_unitdir}
83
84make %{?_smp_mflags}
85
86%install
87%make_install
88
89%preun
90%service_del_preun %{name}.service
91
92%postun
93%service_del_postun %{name}.service
94
95%pre
96%service_add_pre %{name}.service
97
98%post
99%service_add_post %{name}.service
100
101%check
102make %{?_smp_mflags} check || (find . -name testsuite.log -exec cat {} +)
103
104%files
105%license COPYING
106%doc AUTHORS README
107%dir %{_docdir}/%{name}/examples
108%dir %{_docdir}/%{name}/examples/osmo-msc
109%{_docdir}/%{name}/examples/osmo-msc/osmo-msc.cfg
110%{_docdir}/%{name}/examples/osmo-msc/osmo-msc_custom-sccp.cfg
111%{_docdir}/%{name}/examples/osmo-msc/osmo-msc_multi-cs7.cfg
112%{_bindir}/osmo-msc
113%{_unitdir}/%{name}.service
114%dir %{_sysconfdir}/osmocom
115%config %{_sysconfdir}/osmocom/osmo-msc.cfg
116
117%changelog