Oliver Smith | 29532c2 | 2021-01-29 11:13:00 +0100 | [diff] [blame] | 1 | # |
Oliver Smith | cd3e8e6 | 2021-02-01 11:11:39 +0100 | [diff] [blame] | 2 | # spec file for package osmo-gbproxy |
Oliver Smith | 29532c2 | 2021-01-29 11:13:00 +0100 | [diff] [blame] | 3 | # |
| 4 | # Copyright (c) 2017, Martin Hauke <mardnh@gmx.de> |
Oliver Smith | cd3e8e6 | 2021-02-01 11:11:39 +0100 | [diff] [blame] | 5 | # Copyright (c) 2021, sysmocom - s.f.m.c. GmbH |
Oliver Smith | 29532c2 | 2021-01-29 11:13:00 +0100 | [diff] [blame] | 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/4116 |
| 18 | %define _lto_cflags %{nil} |
| 19 | |
| 20 | Name: osmo-gbproxy |
| 21 | Version: @VERSION@ |
| 22 | Release: 0 |
| 23 | Summary: Osmocom GPRS Gb Interface Proxy |
| 24 | License: AGPL-3.0-or-later AND GPL-2.0-or-later |
| 25 | Group: Productivity/Telephony/Servers |
| 26 | URL: https://osmocom.org/projects/osmo-gbproxy |
| 27 | Source: %{name}-%{version}.tar.xz |
| 28 | BuildRequires: autoconf |
| 29 | BuildRequires: automake |
| 30 | BuildRequires: libtool |
| 31 | BuildRequires: pkgconfig |
| 32 | %if 0%{?suse_version} |
| 33 | BuildRequires: systemd-rpm-macros |
| 34 | %endif |
| 35 | BuildRequires: pkgconfig(libcrypto) >= 0.9.5 |
Pau Espin Pedrol | ddbe35d | 2023-02-07 17:37:14 +0100 | [diff] [blame] | 36 | BuildRequires: pkgconfig(libosmocore) >= 1.8.0 |
| 37 | BuildRequires: pkgconfig(libosmoctrl) >= 1.8.0 |
| 38 | BuildRequires: pkgconfig(libosmogb) >= 1.8.0 |
| 39 | BuildRequires: pkgconfig(libosmogsm) >= 1.8.0 |
| 40 | BuildRequires: pkgconfig(libosmovty) >= 1.8.0 |
Oliver Smith | 29532c2 | 2021-01-29 11:13:00 +0100 | [diff] [blame] | 41 | %{?systemd_requires} |
| 42 | |
| 43 | %description |
| 44 | The purpose of the Gb proxy is to aggregate the Gb links of multiple |
| 45 | BSS's and present them in one Gb link to the SGSN. |
| 46 | |
| 47 | %prep |
| 48 | %setup -q |
| 49 | |
| 50 | %build |
| 51 | echo "%{version}" >.tarball-version |
| 52 | autoreconf -fi |
| 53 | %configure \ |
| 54 | --docdir=%{_docdir}/%{name} \ |
| 55 | --with-systemdsystemunitdir=%{_unitdir} |
| 56 | make %{?_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 |
| 69 | make %{?_smp_mflags} check || (find . -name testsuite.log -exec cat {} +) |
| 70 | |
| 71 | %files |
Harald Welte | df0507e | 2021-01-31 19:26:13 +0100 | [diff] [blame] | 72 | %doc AUTHORS README.md |
Oliver Smith | 29532c2 | 2021-01-29 11:13:00 +0100 | [diff] [blame] | 73 | %dir %{_docdir}/%{name}/examples |
Oliver Smith | cd3e8e6 | 2021-02-01 11:11:39 +0100 | [diff] [blame] | 74 | %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 Smith | 29532c2 | 2021-01-29 11:13:00 +0100 | [diff] [blame] | 78 | %{_bindir}/osmo-gbproxy |
| 79 | %dir %{_sysconfdir}/osmocom |
| 80 | %config(noreplace) %{_sysconfdir}/osmocom/osmo-gbproxy.cfg |
| 81 | %{_unitdir}/%{name}.service |
| 82 | |
| 83 | %changelog |