blob: 3d8244d6242c82c57e56f4e4ce753fdf910551e3 [file] [log] [blame]
Oliver Smith29532c22021-01-29 11:13:00 +01001#
Oliver Smithcd3e8e62021-02-01 11:11:39 +01002# spec file for package osmo-gbproxy
Oliver Smith29532c22021-01-29 11:13:00 +01003#
4# Copyright (c) 2017, Martin Hauke <mardnh@gmx.de>
Oliver Smithcd3e8e62021-02-01 11:11:39 +01005# Copyright (c) 2021, sysmocom - s.f.m.c. GmbH
Oliver Smith29532c22021-01-29 11:13:00 +01006#
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/4116
18%define _lto_cflags %{nil}
19
20Name: osmo-gbproxy
21Version: @VERSION@
22Release: 0
23Summary: Osmocom GPRS Gb Interface Proxy
24License: AGPL-3.0-or-later AND GPL-2.0-or-later
25Group: Productivity/Telephony/Servers
26URL: https://osmocom.org/projects/osmo-gbproxy
27Source: %{name}-%{version}.tar.xz
28BuildRequires: autoconf
29BuildRequires: automake
30BuildRequires: libtool
31BuildRequires: pkgconfig
32%if 0%{?suse_version}
33BuildRequires: systemd-rpm-macros
34%endif
35BuildRequires: pkgconfig(libcrypto) >= 0.9.5
Pau Espin Pedrolddbe35d2023-02-07 17:37:14 +010036BuildRequires: pkgconfig(libosmocore) >= 1.8.0
37BuildRequires: pkgconfig(libosmoctrl) >= 1.8.0
38BuildRequires: pkgconfig(libosmogb) >= 1.8.0
39BuildRequires: pkgconfig(libosmogsm) >= 1.8.0
40BuildRequires: pkgconfig(libosmovty) >= 1.8.0
Oliver Smith29532c22021-01-29 11:13:00 +010041%{?systemd_requires}
42
43%description
44The purpose of the Gb proxy is to aggregate the Gb links of multiple
45BSS's and present them in one Gb link to the SGSN.
46
47%prep
48%setup -q
49
50%build
51echo "%{version}" >.tarball-version
52autoreconf -fi
53%configure \
54 --docdir=%{_docdir}/%{name} \
55 --with-systemdsystemunitdir=%{_unitdir}
56make %{?_smp_mflags}
57
58%install
59%make_install
60
61%if 0%{?suse_version}
62%preun %service_del_preun %{name}.service
63%postun %service_del_postun %{name}.service
64%pre %service_add_pre %{name}.service
65%post %service_add_post %{name}.service
66%endif
67
68%check
69make %{?_smp_mflags} check || (find . -name testsuite.log -exec cat {} +)
70
71%files
Harald Weltedf0507e2021-01-31 19:26:13 +010072%doc AUTHORS README.md
Oliver Smith29532c22021-01-29 11:13:00 +010073%dir %{_docdir}/%{name}/examples
Oliver Smithcd3e8e62021-02-01 11:11:39 +010074%dir %{_docdir}/%{name}/examples/osmo-gbproxy
75%{_docdir}/%{name}/examples/osmo-gbproxy/osmo-gbproxy.cfg
76%{_docdir}/%{name}/examples/osmo-gbproxy/osmo-gbproxy-legacy.cfg
77%{_docdir}/%{name}/examples/osmo-gbproxy/osmo-gbproxy-pool.cfg
Oliver Smith29532c22021-01-29 11:13:00 +010078%{_bindir}/osmo-gbproxy
79%dir %{_sysconfdir}/osmocom
80%config(noreplace) %{_sysconfdir}/osmocom/osmo-gbproxy.cfg
81%{_unitdir}/%{name}.service
82
83%changelog