File osmo-trx.spec of Package osmo-trx (Revision 172)
Currently displaying revision 172 , Show latest
262
1
#
2
# spec file for package osmo-trx
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
15
Name: osmo-trx
16
Requires: osmocom-nightly = 202212120008
17
Version: 1.4.1.12.7d89.202212120008
18
Release: 0
19
Summary: SDR transceiver that implements Layer 1 of a GSM BTS
20
License: AGPL-3.0-or-later
21
Group: Productivity/Telephony/Servers
22
URL: https://osmocom.org/projects/osmotrx
23
Source: osmo-trx_1.4.1.12.7d89.202212120008.tar.xz
24
Source1: rpmlintrc
25
BuildRequires: autoconf
26
BuildRequires: automake
27
BuildRequires: fdupes
28
BuildRequires: gcc-c++
29
BuildRequires: libtool
30
BuildRequires: pkgconfig >= 0.20
31
%if 0%{?suse_version}
32
BuildRequires: systemd-rpm-macros
33
%endif
34
%if ! 0%{?centos_ver}
35
BuildRequires: pkgconfig(LimeSuite)
36
BuildRequires: pkgconfig(usrp) >= 3.3
37
%endif
38
BuildRequires: pkgconfig(fftw3f)
39
BuildRequires: pkgconfig(libosmocoding) >= 1.6.0
40
BuildRequires: pkgconfig(libosmocore) >= 1.6.0
41
BuildRequires: pkgconfig(libosmoctrl) >= 1.6.0
42
BuildRequires: pkgconfig(libosmovty) >= 1.6.0
43
BuildRequires: pkgconfig(libusb-1.0)
44
BuildRequires: pkgconfig(uhd)
45
%{?systemd_requires}
46
%if 0%{?suse_version} > 1325
47
BuildRequires: libboost_program_options-devel
48
BuildRequires: libboost_system-devel
49
BuildRequires: libboost_test-devel
50
BuildRequires: libboost_thread-devel
51
%else
52
BuildRequires: boost-devel
53
%endif
54
55
%description
56
OsmoTRX is a software-defined radio transceiver that implements the Layer 1
57
physical layer of a BTS comprising the following 3GPP specifications:
58
59
TS 05.01 "Physical layer on the radio path"
60
TS 05.02 "Multiplexing and Multiple Access on the Radio Path"
61
TS 05.04 "Modulation"
62
TS 05.10 "Radio subsystem synchronization"
63
64
In this context, BTS is "Base transceiver station". It's the stations that
65
connect mobile phones to the mobile network.
66
67
3GPP is the "3rd Generation Partnership Project" which is the collaboration
68
between different telecommunication associations for developing new
69
generations of mobile phone networks. (post-2G/GSM)
70
71
%package uhd
72
Requires: osmocom-nightly = 202212120008
73
Summary: SDR transceiver that implements Layer 1 of a GSM BTS (UHD)
74
Group: Productivity/Telephony/Servers
75
Requires: uhd-firmware
76
77
%description uhd
78
OsmoTRX is a software-defined radio transceiver that implements the Layer 1
79
physical layer of a BTS comprising the following 3GPP specifications:
80
81
TS 05.01 "Physical layer on the radio path"
82
TS 05.02 "Multiplexing and Multiple Access on the Radio Path"
83
TS 05.04 "Modulation"
84
TS 05.10 "Radio subsystem synchronization"
85
86
In this context, BTS is "Base transceiver station". It's the stations that
87
connect mobile phones to the mobile network.
88
89
3GPP is the "3rd Generation Partnership Project" which is the collaboration
90
between different telecommunication associations for developing new
91
generations of mobile phone networks. (post-2G/GSM)
92
93
%if ! 0%{?centos_ver}
94
%package usrp1
95
Requires: osmocom-nightly = 202212120008
96
Summary: SDR transceiver that implements Layer 1 of a GSM BTS (USRP1)
97
Group: Productivity/Telephony/Servers
98
99
%description usrp1
100
OsmoTRX is a software-defined radio transceiver that implements the Layer 1
101
physical layer of a BTS comprising the following 3GPP specifications:
102
103
TS 05.01 "Physical layer on the radio path"
104
TS 05.02 "Multiplexing and Multiple Access on the Radio Path"
105
TS 05.04 "Modulation"
106
TS 05.10 "Radio subsystem synchronization"
107
108
In this context, BTS is "Base transceiver station". It's the stations that
109
connect mobile phones to the mobile network.
110
111
3GPP is the "3rd Generation Partnership Project" which is the collaboration
112
between different telecommunication associations for developing new
113
generations of mobile phone networks. (post-2G/GSM)
114
115
%package lms
116
Requires: osmocom-nightly = 202212120008
117
Summary: SDR transceiver that implements Layer 1 of a GSM BTS (LimeSuite)
118
Group: Productivity/Telephony/Servers
119
120
%description lms
121
OsmoTRX is a software-defined radio transceiver that implements the Layer 1
122
physical layer of a BTS comprising the following 3GPP specifications:
123
124
TS 05.01 "Physical layer on the radio path"
125
TS 05.02 "Multiplexing and Multiple Access on the Radio Path"
126
TS 05.04 "Modulation"
127
TS 05.10 "Radio subsystem synchronization"
128
129
In this context, BTS is "Base transceiver station". It's the stations that
130
connect mobile phones to the mobile network.
131
132
3GPP is the "3rd Generation Partnership Project" which is the collaboration
133
between different telecommunication associations for developing new
134
generations of mobile phone networks. (post-2G/GSM)
135
%endif
136
137
%package ipc
138
Requires: osmocom-nightly = 202212120008
139
Summary: SDR transceiver that implements Layer 1 of a GSM BTS (IPC)
140
Group: Productivity/Telephony/Servers
141
142
%description ipc
143
OsmoTRX is a software-defined radio transceiver that implements the Layer 1
144
physical layer of a BTS comprising the following 3GPP specifications:
145
146
TS 05.01 "Physical layer on the radio path"
147
TS 05.02 "Multiplexing and Multiple Access on the Radio Path"
148
TS 05.04 "Modulation"
149
TS 05.10 "Radio subsystem synchronization"
150
151
In this context, BTS is "Base transceiver station". It's the stations that
152
connect mobile phones to the mobile network.
153
154
3GPP is the "3rd Generation Partnership Project" which is the collaboration
155
between different telecommunication associations for developing new
156
generations of mobile phone networks. (post-2G/GSM)
157
158
%package ipc-test
159
Requires: osmocom-nightly = 202212120008
160
Summary: SDR transceiver that implements Layer 1 of a GSM BTS (IPC) driver test utility
161
Group: Productivity/Telephony/Servers
162
163
%description ipc-test
164
OsmoTRX is a software-defined radio transceiver that implements the Layer 1
165
physical layer of a BTS comprising the following 3GPP specifications:
166
167
This package include the test tools for osmo-trx-ipc
168
169
%prep
170
%setup -n osmo-trx -q
171
172
%build
173
echo "%{version}" >.tarball-version
174
autoreconf -fi
175
176
%if 0%{?centos_ver}
177
%configure \
178
--docdir=%{_docdir}/%{name} \
179
--with-systemdsystemunitdir=%{_unitdir} \
180
--without-lms \
181
--with-uhd \
182
--without-usrp1 \
183
--with-ipc
184
%else
185
%configure \
186
--docdir=%{_docdir}/%{name} \
187
--with-systemdsystemunitdir=%{_unitdir} \
188
--with-lms \
189
--with-uhd \
190
--with-usrp1 \
191
--with-ipc
192
%endif
193
194
make %{?_smp_mflags} V=1
195
196
%check
197
make %{?_smp_mflags} check || (find . -name testsuite.log -exec cat {} +)
198
199
%install
200
%make_install
201
%fdupes -s %{buildroot}/%{_datadir}
202
203
%if 0%{?suse_version}
204
%pre lms %service_add_pre osmo-trx-lms.service
205
%post lms %service_add_post osmo-trx-lms.service
206
%preun lms %service_del_preun osmo-trx-lms.service
207
%postun lms %service_del_postun osmo-trx-lms.service
208
%pre uhd %service_add_pre osmo-trx-uhd.service
209
%post uhd %service_add_post osmo-trx-uhd.service
210
%preun uhd %service_del_preun osmo-trx-uhd.service
211
%postun uhd %service_del_postun osmo-trx-uhd.service
212
%pre usrp1 %service_add_pre osmo-trx-usrp1.service
213
%post usrp1 %service_add_post osmo-trx-usrp1.service
214
%preun usrp1 %service_del_preun osmo-trx-usrp1.service
215
%postun usrp1 %service_del_postun osmo-trx-usrp1.service
216
%pre ipc %service_add_pre osmo-trx-ipc.service
217
%post ipc %service_add_post osmo-trx-ipc.service
218
%preun ipc %service_del_preun osmo-trx-ipc.service
219
%postun ipc %service_del_postun osmo-trx-ipc.service
220
%endif
221
222
%files
223
%license COPYING
224
%doc README.md
225
%doc %{_docdir}/%{name}/examples
226
227
%if ! 0%{?centos_ver}
228
%files lms
229
%{_bindir}/osmo-trx-lms
230
%dir %{_sysconfdir}/osmocom
231
%config(noreplace) %{_sysconfdir}/osmocom/osmo-trx-lms.cfg
232
%{_unitdir}/osmo-trx-lms.service
233
%endif
234
235
%files uhd
236
%{_bindir}/osmo-trx-uhd
237
%dir %{_sysconfdir}/osmocom
238
%config(noreplace) %{_sysconfdir}/osmocom/osmo-trx-uhd.cfg
239
%{_unitdir}/osmo-trx-uhd.service
240
241
%if ! 0%{?centos_ver}
242
%files usrp1
243
%{_bindir}/osmo-trx-usrp1
244
%dir %{_datadir}/usrp
245
%dir %{_datadir}/usrp/rev2
246
%dir %{_datadir}/usrp/rev4
247
%{_datadir}/usrp/rev2/std_inband.rbf
248
%{_datadir}/usrp/rev4/std_inband.rbf
249
%{_unitdir}/osmo-trx-usrp1.service
250
%endif
251
252
%files ipc
253
%{_bindir}/osmo-trx-ipc
254
%dir %{_sysconfdir}/osmocom
255
%config(noreplace) %{_sysconfdir}/osmocom/osmo-trx-ipc.cfg
256
%{_unitdir}/osmo-trx-ipc.service
257
258
%files ipc-test
259
%{_bindir}/ipc-driver-test
260
261
%changelog
262