Oliver Smith | 8b8ad33 | 2020-05-14 11:38:08 +0200 | [diff] [blame] | 1 | # |
| 2 | # spec file for package osmo-bsc |
| 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 | 8b8ad33 | 2020-05-14 11:38:08 +0200 | [diff] [blame] | 15 | ## Disable LTO for now since it breaks compilation of the tests |
| 16 | ## https://osmocom.org/issues/4113 |
| 17 | %define _lto_cflags %{nil} |
| 18 | |
Oliver Smith | 8b8ad33 | 2020-05-14 11:38:08 +0200 | [diff] [blame] | 19 | Name: osmo-bsc |
Oliver Smith | 700a5a3 | 2020-05-14 11:39:37 +0200 | [diff] [blame] | 20 | Version: @VERSION@ |
Oliver Smith | 8b8ad33 | 2020-05-14 11:38:08 +0200 | [diff] [blame] | 21 | Release: 0 |
| 22 | Summary: OsmoBSC: Osmocom's Base Station Controller for 2G CS mobile networks |
| 23 | License: AGPL-3.0-or-later AND GPL-2.0-or-later |
| 24 | Group: Hardware/Mobile |
Oliver Smith | 700a5a3 | 2020-05-14 11:39:37 +0200 | [diff] [blame] | 25 | URL: https://osmocom.org/projects/osmobsc |
Oliver Smith | 8b8ad33 | 2020-05-14 11:38:08 +0200 | [diff] [blame] | 26 | Source: %{name}-%{version}.tar.xz |
| 27 | BuildRequires: automake >= 1.9 |
| 28 | BuildRequires: libtool >= 2 |
| 29 | BuildRequires: pkgconfig >= 0.20 |
Oliver Smith | 700a5a3 | 2020-05-14 11:39:37 +0200 | [diff] [blame] | 30 | %if 0%{?suse_version} |
Oliver Smith | 8b8ad33 | 2020-05-14 11:38:08 +0200 | [diff] [blame] | 31 | BuildRequires: systemd-rpm-macros |
Oliver Smith | 700a5a3 | 2020-05-14 11:39:37 +0200 | [diff] [blame] | 32 | %endif |
Oliver Smith | 8b8ad33 | 2020-05-14 11:38:08 +0200 | [diff] [blame] | 33 | BuildRequires: pkgconfig(libcrypto) >= 0.9.5 |
| 34 | BuildRequires: pkgconfig(libosmo-mgcp-client) >= 1.5.0 |
| 35 | BuildRequires: pkgconfig(libosmo-netif) >= 0.6.0 |
| 36 | BuildRequires: pkgconfig(libosmo-sccp) >= 0.10.0 |
| 37 | BuildRequires: pkgconfig(libosmo-sigtran) >= 0.10.0 |
| 38 | BuildRequires: pkgconfig(libosmoabis) >= 0.6.0 |
| 39 | BuildRequires: pkgconfig(libosmocore) >= 1.2.0 |
| 40 | BuildRequires: pkgconfig(libosmoctrl) >= 1.2.0 |
| 41 | BuildRequires: pkgconfig(libosmogb) |
| 42 | BuildRequires: pkgconfig(libosmogsm) >= 1.2.0 |
| 43 | BuildRequires: pkgconfig(libosmovty) >= 1.2.0 |
| 44 | BuildRequires: pkgconfig(talloc) |
| 45 | %{?systemd_requires} |
| 46 | |
| 47 | %description |
| 48 | OsmoBSC: Osmocom's Base Station Controller for 2G circuit-switched mobile networks. |
| 49 | |
| 50 | %package abisip-find |
| 51 | Summary: CLI utility to find ip.access compatible BTS |
| 52 | License: GPL-2.0-or-later |
| 53 | Group: Productivity/Telephony/Utilities |
| 54 | |
| 55 | %description abisip-find |
| 56 | Command line utility to find ip.access compatible BTS. |
| 57 | |
| 58 | %package ipaccess-utils |
| 59 | Summary: Command line utilities for ip.access nanoBTS |
| 60 | License: GPL-2.0-or-later |
| 61 | Group: Productivity/Telephony/Utilities |
| 62 | |
| 63 | %description ipaccess-utils |
| 64 | This package contains utilities that are specific for nanoBTS when being |
| 65 | used together with OpenBSC. It contains mainly two tools: ipaccess-config |
| 66 | and ipaccess-proxy. |
| 67 | |
| 68 | %package bs11-utils |
| 69 | Summary: Command line utilities for Siemens BS-11 BTS |
| 70 | License: GPL-2.0-or-later |
| 71 | Group: Productivity/Telephony/Utilities |
| 72 | |
| 73 | %description bs11-utils |
| 74 | There is a tool in this package for configuring the Siemens BS-11 BTS. |
| 75 | Additionally, it contains one tool for making use of an ISDN-card and the |
| 76 | public telephone network as frequency standard for the E1 line. |
| 77 | |
| 78 | %package meas-utils |
| 79 | Summary: Command line utilities for OsmoBSC's measurement reports |
| 80 | License: GPL-2.0-or-later |
| 81 | Group: Productivity/Telephony/Utilities |
| 82 | |
| 83 | %description meas-utils |
| 84 | This package contains utilities for handling OsmoBSC's measurement reports |
| 85 | * meas_json to convert measurement feed into a JSON feed |
| 86 | |
| 87 | %prep |
| 88 | %setup -q |
| 89 | |
| 90 | %build |
| 91 | echo "%{version}" >.tarball-version |
| 92 | autoreconf -fi |
| 93 | %configure \ |
| 94 | --docdir=%{_docdir}/%{name} \ |
| 95 | --with-systemdsystemunitdir=%{_unitdir} |
| 96 | make %{?_smp_mflags} |
| 97 | |
| 98 | %install |
| 99 | %make_install |
| 100 | |
Oliver Smith | 700a5a3 | 2020-05-14 11:39:37 +0200 | [diff] [blame] | 101 | %if 0%{?suse_version} |
Oliver Smith | 8b8ad33 | 2020-05-14 11:38:08 +0200 | [diff] [blame] | 102 | %preun |
| 103 | %service_del_preun %{name}.service |
| 104 | |
| 105 | %postun |
| 106 | %service_del_postun %{name}.service |
| 107 | |
| 108 | %pre |
| 109 | %service_add_pre %{name}.service |
| 110 | |
| 111 | %post |
| 112 | %service_add_post %{name}.service |
Oliver Smith | 700a5a3 | 2020-05-14 11:39:37 +0200 | [diff] [blame] | 113 | %endif |
Oliver Smith | 8b8ad33 | 2020-05-14 11:38:08 +0200 | [diff] [blame] | 114 | |
| 115 | %check |
| 116 | make %{?_smp_mflags} check || (find . -name testsuite.log -exec cat {} +) |
| 117 | |
| 118 | %files |
| 119 | %license COPYING |
| 120 | %doc AUTHORS README |
| 121 | %{_bindir}/osmo-bsc |
| 122 | %dir %{_docdir}/%{name}/examples |
| 123 | %dir %{_docdir}/%{name}/examples/osmo-bsc |
| 124 | %{_docdir}/%{name}/examples/osmo-bsc/osmo-bsc.cfg |
| 125 | %{_docdir}/%{name}/examples/osmo-bsc/osmo-bsc_custom-sccp.cfg |
| 126 | %{_docdir}/%{name}/examples/osmo-bsc/osmo-bsc-minimal.cfg |
Harald Welte | 01eedbf | 2020-07-19 12:47:08 +0200 | [diff] [blame] | 127 | %dir %{_docdir}/%{name}/examples/osmo-bsc/ericsson |
| 128 | %dir %{_docdir}/%{name}/examples/osmo-bsc/nokia |
| 129 | %dir %{_docdir}/%{name}/examples/osmo-bsc/siemens |
Harald Welte | 6b23d71 | 2020-07-17 13:21:32 +0200 | [diff] [blame] | 130 | %{_docdir}/%{name}/examples/osmo-bsc/*/osmo-bsc*.cfg |
Oliver Smith | 8b8ad33 | 2020-05-14 11:38:08 +0200 | [diff] [blame] | 131 | %dir %{_sysconfdir}/osmocom |
Harald Welte | e174c05 | 2020-06-22 14:19:37 +0200 | [diff] [blame] | 132 | %config(noreplace) %{_sysconfdir}/osmocom/osmo-bsc.cfg |
Oliver Smith | 8b8ad33 | 2020-05-14 11:38:08 +0200 | [diff] [blame] | 133 | %{_unitdir}/%{name}.service |
| 134 | |
| 135 | %files abisip-find |
| 136 | %{_bindir}/abisip-find |
| 137 | |
| 138 | %files ipaccess-utils |
| 139 | %{_bindir}/ipaccess-config |
| 140 | %{_bindir}/ipaccess-proxy |
| 141 | |
| 142 | %files bs11-utils |
| 143 | %{_bindir}/bs11_config |
| 144 | %{_bindir}/isdnsync |
| 145 | |
| 146 | %files meas-utils |
| 147 | %{_bindir}/meas_json |
| 148 | |
| 149 | %changelog |