Harald Welte | e051427 | 2022-11-06 12:26:45 +0100 | [diff] [blame] | 1 | # |
| 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 | |
| 15 | Name: osmo-uecups |
| 16 | Version: @VERSION@ |
| 17 | Release: 0 |
| 18 | Summary: OsmoUECUPS: UE/MME/SGW side GTP user plane daemon with control plane separation |
| 19 | License: GPL-2.0-or-later |
| 20 | Group: Productivity/Telephony/Utilities |
| 21 | URL: https://osmocom.org/projects/osmo-uecups |
| 22 | Source: %{name}-%{version}.tar.xz |
| 23 | BuildRequires: autoconf |
| 24 | BuildRequires: autoconf-archive |
| 25 | BuildRequires: automake |
| 26 | BuildRequires: libtool |
| 27 | BuildRequires: pkgconfig |
Pau Espin Pedrol | 3ea62fc | 2023-09-12 17:27:39 +0200 | [diff] [blame^] | 28 | BuildRequires: pkgconfig(libosmocore) >= 1.9.0 |
| 29 | BuildRequires: pkgconfig(libosmovty) >= 1.9.0 |
| 30 | BuildRequires: pkgconfig(libosmo-netif) >= 1.4.0 |
Harald Welte | e051427 | 2022-11-06 12:26:45 +0100 | [diff] [blame] | 31 | BuildRequires: pkgconfig(jansson) |
| 32 | BuildRequires: pkgconfig(libnl-route-3.0) |
| 33 | BuildRequires: lksctp-tools-devel |
| 34 | #BuildRequires: systemd-rpm-macros |
| 35 | |
| 36 | %description |
| 37 | OsmoUECUPS: UE/MME/SGW side GTP user plane daemon with control plane |
| 38 | separation. |
| 39 | |
| 40 | %prep |
| 41 | %setup -q |
| 42 | |
| 43 | %build |
| 44 | echo "%{version}" >.tarball-version |
| 45 | autoreconf -fiv |
| 46 | %configure \ |
| 47 | --docdir="%{_docdir}/%{name}" \ |
| 48 | --with-systemdsystemunitdir=%{_unitdir} |
| 49 | make %{?_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 |