blob: 8293c5195f8bf28b15e6332a26d7ec20e33fbec7 [file] [log] [blame]
Oliver Smith8b8ad332020-05-14 11:38:08 +02001#
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 Smith8b8ad332020-05-14 11:38:08 +020015## Disable LTO for now since it breaks compilation of the tests
16## https://osmocom.org/issues/4113
17%define _lto_cflags %{nil}
18
Oliver Smith8b8ad332020-05-14 11:38:08 +020019Name: osmo-bsc
Oliver Smith700a5a32020-05-14 11:39:37 +020020Version: @VERSION@
Oliver Smith8b8ad332020-05-14 11:38:08 +020021Release: 0
22Summary: OsmoBSC: Osmocom's Base Station Controller for 2G CS mobile networks
23License: AGPL-3.0-or-later AND GPL-2.0-or-later
24Group: Hardware/Mobile
Oliver Smith700a5a32020-05-14 11:39:37 +020025URL: https://osmocom.org/projects/osmobsc
Oliver Smith8b8ad332020-05-14 11:38:08 +020026Source: %{name}-%{version}.tar.xz
27BuildRequires: automake >= 1.9
28BuildRequires: libtool >= 2
29BuildRequires: pkgconfig >= 0.20
Oliver Smith700a5a32020-05-14 11:39:37 +020030%if 0%{?suse_version}
Oliver Smith8b8ad332020-05-14 11:38:08 +020031BuildRequires: systemd-rpm-macros
Oliver Smith700a5a32020-05-14 11:39:37 +020032%endif
Oliver Smith8b8ad332020-05-14 11:38:08 +020033BuildRequires: pkgconfig(libcrypto) >= 0.9.5
34BuildRequires: pkgconfig(libosmo-mgcp-client) >= 1.5.0
35BuildRequires: pkgconfig(libosmo-netif) >= 0.6.0
36BuildRequires: pkgconfig(libosmo-sccp) >= 0.10.0
37BuildRequires: pkgconfig(libosmo-sigtran) >= 0.10.0
38BuildRequires: pkgconfig(libosmoabis) >= 0.6.0
39BuildRequires: pkgconfig(libosmocore) >= 1.2.0
40BuildRequires: pkgconfig(libosmoctrl) >= 1.2.0
41BuildRequires: pkgconfig(libosmogb)
42BuildRequires: pkgconfig(libosmogsm) >= 1.2.0
43BuildRequires: pkgconfig(libosmovty) >= 1.2.0
44BuildRequires: pkgconfig(talloc)
45%{?systemd_requires}
46
47%description
48OsmoBSC: Osmocom's Base Station Controller for 2G circuit-switched mobile networks.
49
50%package abisip-find
51Summary: CLI utility to find ip.access compatible BTS
52License: GPL-2.0-or-later
53Group: Productivity/Telephony/Utilities
54
55%description abisip-find
56Command line utility to find ip.access compatible BTS.
57
58%package ipaccess-utils
59Summary: Command line utilities for ip.access nanoBTS
60License: GPL-2.0-or-later
61Group: Productivity/Telephony/Utilities
62
63%description ipaccess-utils
64This package contains utilities that are specific for nanoBTS when being
65used together with OpenBSC. It contains mainly two tools: ipaccess-config
66and ipaccess-proxy.
67
68%package bs11-utils
69Summary: Command line utilities for Siemens BS-11 BTS
70License: GPL-2.0-or-later
71Group: Productivity/Telephony/Utilities
72
73%description bs11-utils
74There is a tool in this package for configuring the Siemens BS-11 BTS.
75Additionally, it contains one tool for making use of an ISDN-card and the
76public telephone network as frequency standard for the E1 line.
77
78%package meas-utils
79Summary: Command line utilities for OsmoBSC's measurement reports
80License: GPL-2.0-or-later
81Group: Productivity/Telephony/Utilities
82
83%description meas-utils
84This 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
91echo "%{version}" >.tarball-version
92autoreconf -fi
93%configure \
94 --docdir=%{_docdir}/%{name} \
95 --with-systemdsystemunitdir=%{_unitdir}
96make %{?_smp_mflags}
97
98%install
99%make_install
100
Oliver Smith700a5a32020-05-14 11:39:37 +0200101%if 0%{?suse_version}
Oliver Smith8b8ad332020-05-14 11:38:08 +0200102%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 Smith700a5a32020-05-14 11:39:37 +0200113%endif
Oliver Smith8b8ad332020-05-14 11:38:08 +0200114
115%check
116make %{?_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 Welte01eedbf2020-07-19 12:47:08 +0200127%dir %{_docdir}/%{name}/examples/osmo-bsc/ericsson
128%dir %{_docdir}/%{name}/examples/osmo-bsc/nokia
129%dir %{_docdir}/%{name}/examples/osmo-bsc/siemens
Harald Welte6b23d712020-07-17 13:21:32 +0200130%{_docdir}/%{name}/examples/osmo-bsc/*/osmo-bsc*.cfg
Oliver Smith8b8ad332020-05-14 11:38:08 +0200131%dir %{_sysconfdir}/osmocom
Harald Weltee174c052020-06-22 14:19:37 +0200132%config(noreplace) %{_sysconfdir}/osmocom/osmo-bsc.cfg
Oliver Smith8b8ad332020-05-14 11:38:08 +0200133%{_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