Changes of Revision 692
osmo-msc.spec
Deleted
x
1
2
-#
3
-# spec file for package osmo-msc
4
-#
5
-# Copyright (c) 2017, Martin Hauke <mardnh@gmx.de>
6
-#
7
-# All modifications and additions to the file contributed by third parties
8
-# remain the property of their copyright owners, unless otherwise agreed
9
-# upon. The license for this file, and modifications and additions to the
10
-# file, is the same license as for the pristine package itself (unless the
11
-# license for the pristine package is not an Open Source License, in which
12
-# case the license is the MIT License). An "Open Source License" is a
13
-# license that conforms to the Open Source Definition (Version 1.9)
14
-# published by the Open Source Initiative.
15
-
16
-## Disable LTO for now since it breaks compilation of the tests
17
-## https://osmocom.org/issues/4115
18
-%define _lto_cflags %{nil}
19
-
20
-%define with_iu 1
21
-Name: osmo-msc
22
-Requires: osmocom-nightly = 202405092026
23
-Version: 1.11.1.53.5a14.202405092026
24
-Release: 0
25
-Summary: Osmocom's MSC for 2G and 3G circuit-switched mobile networks
26
-License: AGPL-3.0-or-later AND GPL-2.0-only
27
-Group: Productivity/Telephony/Servers
28
-URL: https://osmocom.org/projects/osmomsc
29
-Source: osmo-msc_1.11.1.53.5a14.202405092026.tar.xz
30
-Source1: rpmlintrc
31
-BuildRequires: autoconf
32
-BuildRequires: automake
33
-BuildRequires: libtool
34
-%if 0%{?suse_version}
35
-BuildRequires: systemd-rpm-macros
36
-%endif
37
-BuildRequires: pkgconfig >= 0.20
38
-BuildRequires: pkgconfig(sqlite3)
39
-BuildRequires: pkgconfig(libcrypto) >= 0.9.5
40
-BuildRequires: pkgconfig(libosmo-gsup-client) >= 1.7.0
41
-BuildRequires: pkgconfig(libosmo-mgcp-client) >= 1.12.0
42
-BuildRequires: pkgconfig(libosmo-netif) >= 1.4.0
43
-BuildRequires: pkgconfig(libosmo-sccp) >= 1.8.0
44
-BuildRequires: pkgconfig(libosmo-sigtran) >= 1.8.0
45
-BuildRequires: pkgconfig(libosmoabis) >= 1.5.0
46
-BuildRequires: pkgconfig(libosmocore) >= 1.9.0
47
-BuildRequires: pkgconfig(libosmoctrl) >= 1.9.0
48
-BuildRequires: pkgconfig(libosmogsm) >= 1.9.0
49
-BuildRequires: pkgconfig(libosmovty) >= 1.9.0
50
-BuildRequires: pkgconfig(libsmpp34) >= 1.14.0
51
-####
52
-BuildRequires: lksctp-tools-devel
53
-####
54
-%{?systemd_requires}
55
-%if %{with_iu}
56
-BuildRequires: pkgconfig(libasn1c) >= 0.9.30
57
-BuildRequires: pkgconfig(libosmo-ranap) >= 1.5.0
58
-%endif
59
-
60
-%description
61
-The Mobile Switching Center (MSC) is the heart of 2G/3G
62
-circuit-switched services. It terminates the A-interface links from the
63
-Base Station Controllers (BSC) and handles the MM and CC sub-layers of
64
-the Layer 3 protocol from the phones (MS).
65
-
66
-This Osmocom implementation of the MSC handles A interfaces via 3GPP
67
-AoIP in an ASP role. It furthermore implements IETF MGCP against an
68
-external media gateway, such as OsmoMGW. It does *not* implement MAP
69
-towards a HLR, but the much simpler Osmocom GSUP protocol, which can
70
-be translated to MAP if needed.
71
-
72
-%prep
73
-%setup -n osmo-msc -q
74
-
75
-%build
76
-echo "%{version}" >.tarball-version
77
-autoreconf -fi
78
-%configure \
79
-%if %{with_iu}
80
- --enable-iu \
81
-%endif
82
- --enable-smpp \
83
- --docdir=%{_docdir}/%{name} \
84
- --with-systemdsystemunitdir=%{_unitdir}
85
-
86
-make %{?_smp_mflags}
87
-
88
-%install
89
-%make_install
90
-
91
-%preun
92
-%if 0%{?suse_version}
93
-%service_del_preun %{name}.service
94
-%endif
95
-
96
-%postun
97
-%if 0%{?suse_version}
98
-%service_del_postun %{name}.service
99
-%endif
100
-
101
-%pre
102
-getent group osmocom >/dev/null || groupadd --system osmocom
103
-getent passwd osmocom >/dev/null || useradd --system --gid osmocom --home-dir /var/lib/osmocom \
104
- --shell /sbin/nologin --comment "Open Source Mobile Communications" osmocom
105
-%if 0%{?suse_version}
106
-%service_add_pre %{name}.service
107
-%endif
108
-
109
-%post
110
-%if 0%{?suse_version}
111
-%service_add_post %{name}.service
112
-%endif
113
-chown osmocom:osmocom /etc/osmocom/osmo-msc.cfg
114
-chmod 0660 /etc/osmocom/osmo-msc.cfg
115
-chown root:osmocom /etc/osmocom
116
-chmod 2775 /etc/osmocom
117
-mkdir -p /var/lib/osmocom
118
-chown -R osmocom:osmocom /var/lib/osmocom
119
-
120
-%check
121
-make %{?_smp_mflags} check || (find . -name testsuite.log -exec cat {} +)
122
-
123
-%files
124
-%license COPYING
125
-%doc AUTHORS README.md
126
-%dir %{_docdir}/%{name}/examples
127
-%dir %{_docdir}/%{name}/examples/osmo-msc
128
-%{_docdir}/%{name}/examples/osmo-msc/osmo-msc.cfg
129
-%{_docdir}/%{name}/examples/osmo-msc/osmo-msc_custom-sccp.cfg
130
-%{_docdir}/%{name}/examples/osmo-msc/osmo-msc_multi-cs7.cfg
131
-%{_bindir}/osmo-msc
132
-%{_unitdir}/%{name}.service
133
-%dir %{_sysconfdir}/osmocom
134
-%config(noreplace) %{_sysconfdir}/osmocom/osmo-msc.cfg
135
-
136
-%changelog
137
osmo-msc_1.11.1.53.5a14.202405092026.dsc
Deleted
osmo-msc_1.11.1.53.5a14.202405092026.tar.xz
Deleted
osmo-msc_1.11.1.54.3b7cf.202405102026.dsc
Added
osmo-msc_1.11.1.54.3b7cf.202405102026.tar.xz
Added
rpmlintrc
Deleted
7
1
2
-# Don't abort the build when finding a library that depends on a package with
3
-# a specific version. This is intentional for nightly builds, we don't want
4
-# libraries from different build dates to be mixed as they might have ABI
5
-# incompatibilities.
6
-setBadness('shlib-fixed-dependency', 0)
7