Oliver Smith | b092589 | 2020-05-14 11:48:32 +0200 | [diff] [blame] | 1 | # |
| 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 | |
Oliver Smith | b092589 | 2020-05-14 11:48:32 +0200 | [diff] [blame] | 15 | ## Disable LTO for now since it breaks compilation of the tests |
| 16 | ## https://osmocom.org/issues/4115 |
| 17 | %define _lto_cflags %{nil} |
| 18 | |
Oliver Smith | b092589 | 2020-05-14 11:48:32 +0200 | [diff] [blame] | 19 | %define with_iu 1 |
| 20 | Name: osmo-msc |
Oliver Smith | 0314593 | 2020-05-14 11:49:00 +0200 | [diff] [blame] | 21 | Version: @VERSION@ |
Oliver Smith | b092589 | 2020-05-14 11:48:32 +0200 | [diff] [blame] | 22 | Release: 0 |
| 23 | Summary: Osmocom's MSC for 2G and 3G circuit-switched mobile networks |
| 24 | License: AGPL-3.0-or-later AND GPL-2.0-only |
| 25 | Group: Productivity/Telephony/Servers |
Oliver Smith | 0314593 | 2020-05-14 11:49:00 +0200 | [diff] [blame] | 26 | URL: https://osmocom.org/projects/osmomsc |
Oliver Smith | b092589 | 2020-05-14 11:48:32 +0200 | [diff] [blame] | 27 | Source: %{name}-%{version}.tar.xz |
| 28 | BuildRequires: autoconf |
| 29 | BuildRequires: automake |
Oliver Smith | b092589 | 2020-05-14 11:48:32 +0200 | [diff] [blame] | 30 | BuildRequires: libtool |
Oliver Smith | 0314593 | 2020-05-14 11:49:00 +0200 | [diff] [blame] | 31 | %if 0%{?suse_version} |
| 32 | BuildRequires: systemd-rpm-macros |
| 33 | %endif |
Oliver Smith | b092589 | 2020-05-14 11:48:32 +0200 | [diff] [blame] | 34 | BuildRequires: pkgconfig >= 0.20 |
Harald Welte | 467fc57 | 2022-05-13 19:48:08 +0200 | [diff] [blame] | 35 | BuildRequires: pkgconfig(sqlite3) |
Oliver Smith | b092589 | 2020-05-14 11:48:32 +0200 | [diff] [blame] | 36 | BuildRequires: pkgconfig(libcrypto) >= 0.9.5 |
Pau Espin Pedrol | 7eefae4 | 2023-09-12 16:46:11 +0200 | [diff] [blame] | 37 | BuildRequires: pkgconfig(libosmo-gsup-client) >= 1.7.0 |
| 38 | BuildRequires: pkgconfig(libosmo-mgcp-client) >= 1.12.0 |
| 39 | BuildRequires: pkgconfig(libosmo-netif) >= 1.4.0 |
| 40 | BuildRequires: pkgconfig(libosmo-sccp) >= 1.8.0 |
| 41 | BuildRequires: pkgconfig(libosmo-sigtran) >= 1.8.0 |
| 42 | BuildRequires: pkgconfig(libosmoabis) >= 1.5.0 |
| 43 | BuildRequires: pkgconfig(libosmocore) >= 1.9.0 |
| 44 | BuildRequires: pkgconfig(libosmoctrl) >= 1.9.0 |
| 45 | BuildRequires: pkgconfig(libosmogsm) >= 1.9.0 |
| 46 | BuildRequires: pkgconfig(libosmovty) >= 1.9.0 |
Pau Espin Pedrol | 59764b6 | 2021-02-23 20:22:34 +0100 | [diff] [blame] | 47 | BuildRequires: pkgconfig(libsmpp34) >= 1.14.0 |
Oliver Smith | b092589 | 2020-05-14 11:48:32 +0200 | [diff] [blame] | 48 | #### |
| 49 | BuildRequires: lksctp-tools-devel |
| 50 | #### |
| 51 | %{?systemd_requires} |
| 52 | %if %{with_iu} |
| 53 | BuildRequires: pkgconfig(libasn1c) >= 0.9.30 |
Pau Espin Pedrol | 7eefae4 | 2023-09-12 16:46:11 +0200 | [diff] [blame] | 54 | BuildRequires: pkgconfig(libosmo-ranap) >= 1.5.0 |
Oliver Smith | b092589 | 2020-05-14 11:48:32 +0200 | [diff] [blame] | 55 | %endif |
| 56 | |
| 57 | %description |
| 58 | The Mobile Switching Center (MSC) is the heart of 2G/3G |
| 59 | circuit-switched services. It terminates the A-interface links from the |
| 60 | Base Station Controllers (BSC) and handles the MM and CC sub-layers of |
| 61 | the Layer 3 protocol from the phones (MS). |
| 62 | |
| 63 | This Osmocom implementation of the MSC handles A interfaces via 3GPP |
| 64 | AoIP in an ASP role. It furthermore implements IETF MGCP against an |
| 65 | external media gateway, such as OsmoMGW. It does *not* implement MAP |
| 66 | towards a HLR, but the much simpler Osmocom GSUP protocol, which can |
| 67 | be translated to MAP if needed. |
| 68 | |
| 69 | %prep |
| 70 | %setup -q |
| 71 | |
| 72 | %build |
| 73 | echo "%{version}" >.tarball-version |
| 74 | autoreconf -fi |
| 75 | %configure \ |
| 76 | %if %{with_iu} |
| 77 | --enable-iu \ |
| 78 | %endif |
Harald Welte | 5c38c81 | 2020-06-03 14:45:21 +0200 | [diff] [blame] | 79 | --enable-smpp \ |
Oliver Smith | b092589 | 2020-05-14 11:48:32 +0200 | [diff] [blame] | 80 | --docdir=%{_docdir}/%{name} \ |
| 81 | --with-systemdsystemunitdir=%{_unitdir} |
| 82 | |
| 83 | make %{?_smp_mflags} |
| 84 | |
| 85 | %install |
| 86 | %make_install |
| 87 | |
Oliver Smith | 0314593 | 2020-05-14 11:49:00 +0200 | [diff] [blame] | 88 | %if 0%{?suse_version} |
Oliver Smith | b092589 | 2020-05-14 11:48:32 +0200 | [diff] [blame] | 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 |
Oliver Smith | 0314593 | 2020-05-14 11:49:00 +0200 | [diff] [blame] | 100 | %endif |
Oliver Smith | b092589 | 2020-05-14 11:48:32 +0200 | [diff] [blame] | 101 | |
| 102 | %check |
| 103 | make %{?_smp_mflags} check || (find . -name testsuite.log -exec cat {} +) |
| 104 | |
| 105 | %files |
| 106 | %license COPYING |
Harald Welte | 2eaaf6f | 2022-06-21 09:50:53 +0200 | [diff] [blame] | 107 | %doc AUTHORS README.md |
Oliver Smith | b092589 | 2020-05-14 11:48:32 +0200 | [diff] [blame] | 108 | %dir %{_docdir}/%{name}/examples |
| 109 | %dir %{_docdir}/%{name}/examples/osmo-msc |
| 110 | %{_docdir}/%{name}/examples/osmo-msc/osmo-msc.cfg |
| 111 | %{_docdir}/%{name}/examples/osmo-msc/osmo-msc_custom-sccp.cfg |
| 112 | %{_docdir}/%{name}/examples/osmo-msc/osmo-msc_multi-cs7.cfg |
| 113 | %{_bindir}/osmo-msc |
| 114 | %{_unitdir}/%{name}.service |
| 115 | %dir %{_sysconfdir}/osmocom |
Harald Welte | a4a4525 | 2020-06-22 14:21:37 +0200 | [diff] [blame] | 116 | %config(noreplace) %{_sysconfdir}/osmocom/osmo-msc.cfg |
Oliver Smith | b092589 | 2020-05-14 11:48:32 +0200 | [diff] [blame] | 117 | |
| 118 | %changelog |