blob: 9e970feeb4a7cc28acda422ccad42736eed868f7 [file] [log] [blame]
Harald Weltee0514272022-11-06 12:26:45 +01001#
2# spec file for package osmo-uecups
3#
4# Copyright (c) 2020, 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
15Name: osmo-uecups
16Version: @VERSION@
17Release: 0
18Summary: OsmoUECUPS: UE/MME/SGW side GTP user plane daemon with control plane separation
19License: GPL-2.0-or-later
20Group: Productivity/Telephony/Utilities
21URL: https://osmocom.org/projects/osmo-uecups
22Source: %{name}-%{version}.tar.xz
23BuildRequires: autoconf
24BuildRequires: autoconf-archive
25BuildRequires: automake
26BuildRequires: libtool
27BuildRequires: pkgconfig
Pau Espin Pedrol3ea62fc2023-09-12 17:27:39 +020028BuildRequires: pkgconfig(libosmocore) >= 1.9.0
29BuildRequires: pkgconfig(libosmovty) >= 1.9.0
30BuildRequires: pkgconfig(libosmo-netif) >= 1.4.0
Harald Weltee0514272022-11-06 12:26:45 +010031BuildRequires: pkgconfig(jansson)
32BuildRequires: pkgconfig(libnl-route-3.0)
33BuildRequires: lksctp-tools-devel
34#BuildRequires: systemd-rpm-macros
35
36%description
37OsmoUECUPS: UE/MME/SGW side GTP user plane daemon with control plane
38separation.
39
40%prep
41%setup -q
42
43%build
44echo "%{version}" >.tarball-version
45autoreconf -fiv
46%configure \
47 --docdir="%{_docdir}/%{name}" \
48 --with-systemdsystemunitdir=%{_unitdir}
49make %{?_smp_mflags}
50
51%install
52%make_install
53
54%check
55### FIXME - no checks atm
56#make %{?_smp_mflags} check || (find . -name testsuite.log -exec cat {} +)
57
58### FIXME - no service file atm
59#%%preun
60#%%service_del_preun %{name}.service
61#%
62#%%postun
63#%%service_del_postun %{name}.service
64#%
65#%%pre
66#%%service_add_pre %{name}.service
67#%
68#%%post
69#%%service_add_post %{name}.service
70
71%files
72### FIXME - no licence files included atm
73#%%license XXX
74%doc README.md
75%dir %{_docdir}/%{name}
76%dir %{_docdir}/%{name}/examples
77%{_docdir}/%{name}/examples/osmo-uecups-daemon.cfg
78%{_bindir}/osmo-uecups-daemon
79%dir %{_sysconfdir}/osmocom
80%config(noreplace) %{_sysconfdir}/osmocom/osmo-uecups-daemon.cfg
81#%%{_unitdir}/osmo-uecups.service
82
83%changelog